/* ==========================================================================
   SHAUN BOKOWSKI — PORTFOLIO
   Dark, premium software/developer aesthetic
========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --bg: #0a0c0e;
    --surface: #121519;
    --surface-2: #161b20;
    --surface-3: #1b2127;
    --border: #242a30;
    --border-strong: #303840;
    --text: #eceef1;
    --text-soft: #c4cbd2;
    --muted: #8f98a1;
    --accent: #7c5cff;
    --accent-hover: #9478ff;
    --accent-ink: #ffffff;
    --accent-soft: rgba(124, 92, 255, 0.12);
    --accent-soft-2: rgba(124, 92, 255, 0.07);
    --code-bg: #0d1013;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --max-w: 1200px;
    --header-h: 74px;
    --font-heading: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.42);
    --shadow-lg: 0 34px 70px rgba(0, 0, 0, 0.5);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text);
}

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

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

.container {
    width: min(var(--max-w), 92%);
    margin-inline: auto;
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 18px);
}

/* ---------- Reusable: eyebrow / headings ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section {
    padding: 112px 0;
}

.section-head {
    max-width: 620px;
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.5rem);
    margin-bottom: 16px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.06rem;
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 27px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform var(--ease) 0.2s, background 0.2s, border-color 0.2s,
        color 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.18);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(124, 92, 255, 0.26);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.86rem;
}

/* ---------- Header / navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(10, 12, 14, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s, background 0.25s;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 12, 14, 0.92);
}

.nav-wrap {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.03em;
    border-radius: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: color 0.2s;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

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

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: 4px;
}

.menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
}

.menu-button span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 110px 0 120px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.05rem);
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.lead {
    color: var(--text-soft);
    font-size: 1.12rem;
    max-width: 34rem;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.hero-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.meta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Hero chat card */
.hero-visual {
    position: relative;
}

.chat-card {
    position: relative;
    background: linear-gradient(145deg, var(--surface-3), var(--code-bg));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    animation: float 7s ease-in-out infinite;
}

.chat-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.chat-card__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 1.4rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.25);
}

.chat-card__header strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.chat-card__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--muted);
}

.chat-message {
    background: var(--surface-2);
    padding: 15px 17px;
    border-radius: 12px;
    margin-bottom: 14px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.chat-message--ai {
    border-left: 4px solid var(--accent);
    margin-left: auto;
}

.chat-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.86rem;
}

.chat-input__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.code-line {
    display: block;
}

.code-line::before {
    counter-increment: line;
    content: counter(line);
    display: inline-block;
    width: 1.6em;
    margin-right: 1.3em;
    color: #3a4148;
    text-align: right;
    -webkit-user-select: none;
    user-select: none;
}

/* Syntax token colours */
.tok-tag { color: #7dd3fc; }
.tok-attr { color: #c4b5fd; }
.tok-str { color: #86efac; }
.tok-punc { color: #59616b; }
.tok-comment { color: #59616b; font-style: italic; }

.hero-glow {
    position: absolute;
    inset: 12% -12% -12% 22%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.16), transparent 62%);
    filter: blur(24px);
    z-index: -1;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
    align-items: start;
}

.about-copy h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 22px;
}

.about-copy p {
    color: var(--text-soft);
    margin-bottom: 18px;
}

.about-copy p:last-of-type {
    margin-bottom: 26px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.info-card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: var(--shadow-md);
}

.info-card__top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-avatar {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.info-card h3 {
    font-size: 1.25rem;
}

.info-role {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 2px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.info-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.info-list span {
    color: var(--muted);
    font-size: 0.88rem;
}

.info-list strong {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

.info-card .btn {
    align-self: flex-start;
    margin-top: 4px;
}

/* ---------- Skills ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.skill-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 18px;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
}

.skill-card h3 {
    font-size: 1.06rem;
    margin-bottom: 8px;
}

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

/* ---------- Projects ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.project-media {
    aspect-ratio: 800 / 520;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.project-card:hover .project-media img {
    transform: scale(1.045);
}

.project-body {
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.project-body h3 {
    font-size: 1.3rem;
}

.project-body p {
    color: var(--muted);
    font-size: 0.95rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent);
    margin-top: 4px;
    transition: gap 0.2s var(--ease), color 0.2s;
}

.project-link:hover {
    gap: 12px;
    color: var(--accent-hover);
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    transition: transform 0.25s var(--ease), border-color 0.25s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
}

.service-card .skill-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

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

/* ---------- Code / editor section ---------- */
[hidden] {
    display: none !important;
}

.code-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.editor {
    max-width: 820px;
    margin-inline: auto;
    background: var(--code-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.editor-tabs {
    display: flex;
    gap: 2px;
    padding: 10px 12px 0;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.editor-tab {
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    transition: color 0.2s, background 0.2s;
}

.editor-tab:hover {
    color: var(--text-soft);
}

.editor-tab.is-active {
    background: var(--code-bg);
    color: var(--accent);
}

.editor-body {
    margin: 0;
    padding: 24px 26px 30px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--text-soft);
    overflow-x: auto;
    counter-reset: line;
}

/* ---------- Process ---------- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    transition: transform 0.25s var(--ease), border-color 0.25s;
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
}

.step-num {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: 0.87rem;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.contact-intro h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.5rem);
    margin-bottom: 18px;
}

.contact-intro p {
    color: var(--muted);
    font-size: 1.06rem;
    margin-bottom: 28px;
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-soft);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}

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

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-3);
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-status {
    margin-top: 16px;
    color: var(--accent);
    font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 16px;
    max-width: 30rem;
}

.footer-col h4 {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--muted);
    font-size: 0.92rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.86rem;
}

/* ---------- CTA band ---------- */
.cta-section {
    padding-top: 20px;
}

.cta-band {
    max-width: 1100px;
    margin-inline: auto;
    padding: 84px 30px;
    text-align: center;
    border-radius: 25px;
    background: linear-gradient(135deg, var(--accent), #3d8bfd);
    box-shadow: var(--shadow-lg);
}

.cta-band h2 {
    font-size: clamp(2rem, 4.5vw, 2.7rem);
    margin-bottom: 18px;
    color: var(--accent-ink);
}

.cta-band p {
    max-width: 640px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.06rem;
}

.btn-light {
    background: #ffffff;
    color: #14161a;
}

.btn-light:hover {
    background: #f2f2f4;
    transform: translateY(-2px);
}

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   RESPONSIVE
========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        max-width: 560px;
    }

    .hero {
        padding: 70px 0 90px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-card {
        position: static;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 900px) {
    .menu-button {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 16px 5% 24px;
        background: rgba(10, 12, 14, 0.98);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        opacity: 0;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
    }

    .main-nav.open {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav-link {
        padding: 12px 4px;
        border-bottom: 1px solid var(--border);
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        margin: 16px 0 6px;
        justify-content: center;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 56px 0 72px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }

    .hero-meta {
        gap: 16px;
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form {
        padding: 26px 22px;
    }

    .editor-body {
        font-size: 0.82rem;
        padding: 18px 16px;
    }

    .chat-card {
        padding: 24px 20px;
    }
}

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

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}






