/* =====================================================================
   Rafał Paluszak — BI & Data / Finance & Risk
   Design system: "Research Note"
   Ledger-white surface · deep petrol navy · disciplined emerald accent
   Type: Newsreader (display serif) · Inter (body) · IBM Plex Mono (data)
   ===================================================================== */

:root {
    /* Surfaces */
    --paper:        #eef1f0;   /* cool ledger off-white (page) */
    --surface:      #ffffff;   /* cards */
    --surface-2:    #f6f8f7;   /* tinted card / inset */

    /* Ink */
    --ink:          #16232c;   /* headings, primary text */
    --ink-soft:     #47585f;   /* body copy */
    --ink-muted:    #6b7b81;   /* captions, labels */

    /* Brand darks */
    --navy:         #10242f;   /* dark bands / footer */
    --navy-deep:    #0b1a22;

    /* Accent — emerald "in the black" */
    --accent:       #0f7a58;
    --accent-strong:#0b6247;
    --accent-tint:  #e4efe9;   /* soft emerald wash */
    --accent-line:  rgba(15, 122, 88, 0.28);

    /* Lines & shadows */
    --line:         #dbe1df;
    --line-soft:    #e7ebe9;
    --shadow-sm: 0 1px 2px rgba(16, 36, 47, 0.05),
                 0 4px 12px rgba(16, 36, 47, 0.06);
    --shadow-md: 0 2px 4px rgba(16, 36, 47, 0.06),
                 0 12px 28px rgba(16, 36, 47, 0.10);
    --shadow-lg: 0 6px 12px rgba(16, 36, 47, 0.08),
                 0 24px 56px rgba(16, 36, 47, 0.14);
    --shadow-accent: 0 12px 30px rgba(15, 122, 88, 0.18);

    /* Type */
    --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Metrics */
    --max-width: 1180px;
    --radius:    14px;
    --radius-sm: 9px;
    --section-y: clamp(4.5rem, 9vw, 7.5rem);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

/* offset for sticky header when jumping to #anchors */
:target,
section[id] { scroll-margin-top: 84px; }

body {
    font-family: var(--font-sans);
    line-height: 1.65;
    margin: 0;
    color: var(--ink-soft);
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ------------------------------------------------------- Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.12;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.1rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-strong); }

strong { color: var(--ink); font-weight: 600; }

/* Eyebrow / mono label used across sections */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    margin: 0 0 1.1rem;
}
.eyebrow::before {
    content: "";
    width: 1.8rem;
    height: 1px;
    background: var(--accent-line);
}

/* Section intro paragraph */
.section-lead {
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 62ch;
    margin: 0 0 3rem;
}

/* --------------------------------------------------------- Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
                background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
    background-color: var(--accent-strong);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 122, 88, 0.26);
}

.btn--secondary {
    background-color: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--secondary:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
    transform: translateY(-2px);
}

/* on dark bands */
.on-dark .btn--secondary {
    color: #eaf1ee;
    border-color: rgba(255, 255, 255, 0.28);
}
.on-dark .btn--secondary:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

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

/* ---------------------------------------------------- Header / Nav */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(238, 241, 240, 0.82);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav__logo {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
}
.nav__logo:hover { color: var(--ink); }
.nav__logo::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-tint);
}

.nav__links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 2rem;
}
.nav__links a {
    position: relative;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }

/* Mobile nav toggle */
.nav__toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 42px; height: 38px;
    cursor: pointer;
    padding: 0;
    color: var(--ink);
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
    content: "";
    display: block;
    width: 18px; height: 2px;
    background: currentColor;
    margin: 0 auto;
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
.nav[data-open="true"] .nav__toggle span { background: transparent; }
.nav[data-open="true"] .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------- Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0 var(--section-y);
    background:
        radial-gradient(60% 55% at 88% 8%, rgba(15, 122, 88, 0.10), transparent 60%),
        radial-gradient(50% 45% at 6% 100%, rgba(16, 36, 47, 0.06), transparent 60%),
        var(--paper);
}
/* faint grain for depth */
.hero::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero__ticker {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0 0 1.6rem;
}
.hero__ticker b { color: var(--accent); font-weight: 600; }

.hero__title {
    font-size: clamp(2.7rem, 6.4vw, 4.3rem);
    margin: 0 0 1.4rem;
    color: var(--ink);
}
.hero__title-sub {
    display: block;
    font-style: italic;
    color: var(--accent);
}

.hero__subtitle {
    font-size: 1.18rem;
    color: var(--ink-soft);
    max-width: 52ch;
    margin: 0 0 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Signature: factsheet / key-figures ledger card */
.factsheet {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.factsheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: var(--navy);
    color: #cfe0d9;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.factsheet__head span:last-child { color: #6fbf9e; }
.factsheet__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line-soft);
}
.factsheet__row:last-child { border-bottom: 0; }
.factsheet__key {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    white-space: nowrap;
}
.factsheet__val {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--ink);
    text-align: right;
    line-height: 1.3;
}
.factsheet__val .big {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 0.15em;
}

/* --------------------------------------------------------- Sections */
section { position: relative; }

.about-section,
.tech-stack-section,
.contact-section { background: var(--surface); }
.about-section,
.process-section,
.tech-stack-section,
.portfolio-section { padding: var(--section-y) 0; }

.process-section { background: var(--paper); }
.portfolio-section { background: var(--paper); }

/* -------------------------------------------------------- About */
.about__content {
    display: grid;
    grid-template-columns: minmax(340px, 420px) 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}
.about__image {
    width: 100%;
    height: clamp(400px, 34vw, 520px);
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}
.about__text p { font-size: 1.08rem; }
.about__text p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------ Approach */
.process__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}
.step {
    background: var(--surface);
    padding: 1.75rem 1.5rem 1.9rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
                border-color 0.28s ease;
}
.step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-line);
}
.step__num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6em;
}
.step__num::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.step__icon-container {
    width: 46px; height: 46px;
    border-radius: 11px;
    background: var(--accent-tint);
    color: var(--accent-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.step__icon-container i { width: 24px; height: 24px; stroke-width: 1.6px; }
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; margin: 0; }

/* ---------------------------------------------------- Tech stack */
.tech-stack__groups {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}
.tech-group {
    background: var(--surface-2);
    padding: 1.5rem 1.4rem 1.7rem;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
    transition: box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
}
.tech-group:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.tech-group h3 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-muted);
    margin-bottom: 1.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
}
.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 1.4rem;
    align-items: center;
}
.tech-items img {
    height: 30px;
    width: auto;
    filter: grayscale(100%) opacity(0.72);
    transition: filter 0.25s ease, transform 0.25s var(--ease);
}
.tech-items img:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-3px);
}

/* ----------------------------------------------------- Portfolio */
.portfolio__featured-item {
    display: block;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
    color: inherit;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.portfolio__featured-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.portfolio__featured-image {
    background: linear-gradient(150deg, #12303f, #0b1a22);
    display: flex;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
}
.portfolio__featured-image img {
    width: 100%;
    max-width: 880px;
    border-radius: 6px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.portfolio__featured-content {
    padding: clamp(2rem, 4vw, 3.25rem);
    max-width: 820px;
    display: flex;
    flex-direction: column;
}
.portfolio__meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}
.portfolio__status {
    color: var(--accent-strong);
    background: var(--accent-tint);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}
.portfolio__status::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.portfolio__featured-content h3 { font-size: 1.7rem; margin-bottom: 0.8rem; }
.portfolio__featured-content > p { margin-bottom: 1.4rem; }
.portfolio__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.8rem;
}
.tag {
    font-family: var(--font-mono);
    background: var(--surface-2);
    color: var(--ink-soft);
    padding: 0.32rem 0.75rem;
    border-radius: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    border: 1px solid var(--line);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tag:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.portfolio__featured-content .btn { align-self: flex-start; }

/* ------------------------------------------------------- Contact */
.contact-section {
    background: var(--navy);
    color: #cfdcd7;
    text-align: center;
    padding: var(--section-y) 0;
    position: relative;
    overflow: hidden;
}
.contact-section::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(50% 70% at 50% 0%, rgba(15, 122, 88, 0.22), transparent 65%);
    pointer-events: none;
}
.contact-section .container { position: relative; }
.contact-section .eyebrow { color: #6fbf9e; }
.contact-section .eyebrow::before { background: rgba(111, 191, 158, 0.4); }
.contact-section h2 { color: #fff; }
.contact__description {
    font-size: 1.15rem;
    max-width: 60ch;
    margin: 0 auto 2.4rem;
    color: #b3c4bd;
}
.contact__description strong { color: #fff; }
.contact__links {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* -------------------------------------------------------- Footer */
.footer {
    background: var(--navy-deep);
    color: #9fb0aa;
    padding: 4.5rem 0 2.5rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__col h3 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}
.footer__col p { color: #9fb0aa; line-height: 1.7; margin-bottom: 0.35rem; }
.footer__col a { color: #cbd6d2; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.footer__privacy p {
    font-size: 0.78rem;
    line-height: 1.6;
    color: #7d8f89;
    margin: 0;
}
.footer__privacy strong { color: #b9c7c2; }
.footer__copyright p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin: 0;
    color: #7d8f89;
}

/* =====================================================================
   Case Study page
   ===================================================================== */
.case-study-hero {
    padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
    background: var(--paper);
    text-align: center;
}
.case-study-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.case-study__meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}
.case-study-hero .hero__subtitle {
    margin: 0 auto;
    color: var(--ink-soft);
    text-align: center;
}
.report-section { padding: 2rem 0 0; background: var(--paper); }

.container--wide {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

.report-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}
.report-container iframe {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: none;
}
.report-instruction {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--ink-muted);
}

.hint-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}
.fullscreen-hint-below {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--surface);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.hint-text {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--accent-strong);
}
.hint-arrow-up {
    stroke: var(--accent);
    width: 18px; height: 18px;
    transform: rotate(-55deg);
    animation: nudge 1.8s infinite ease-in-out;
}
@keyframes nudge {
    0%, 100% { transform: rotate(-55deg) translateX(0); }
    50%      { transform: rotate(-55deg) translateX(3px); }
}

.case-study-details { background: var(--surface); }
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    padding: var(--section-y) 0;
}
.details-grid h2 { font-size: 1.7rem; }
.brief-info {
    margin-top: 1.75rem;
    background: var(--surface-2);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
}
.info-item { margin-bottom: 1rem; display: flex; flex-direction: column; }
.info-item:last-child { margin-bottom: 0; }
.info-item strong {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    margin-bottom: 0.3rem;
}
.pipeline-step {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 1.6rem;
}
.pipeline-step:last-child { margin-bottom: 0; }
.pipeline-step::before {
    content: "";
    position: absolute;
    left: 0; top: 0.45rem;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-tint);
}
.pipeline-step strong {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--accent-strong);
    display: block;
    margin-bottom: 0.3rem;
}
.pipeline-step p { margin: 0; font-size: 0.95rem; }

/* =====================================================================
   Scroll reveal
   ===================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; }
    .factsheet { max-width: 460px; }
    .process__steps { grid-template-columns: repeat(2, 1fr); }
    .tech-stack__groups { grid-template-columns: repeat(2, 1fr); }
    .details-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .nav__toggle { display: block; }
    .nav__links {
        position: absolute;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem 24px 1rem;
        box-shadow: var(--shadow-md);
        display: none;
    }
    .nav[data-open="true"] .nav__links { display: flex; }
    .nav__links li { width: 100%; }
    .nav__links a { display: block; padding: 0.75rem 0; }
    .nav__links a::after { display: none; }

    .about__content { grid-template-columns: 1fr; }
    .about__image { max-width: 340px; height: 380px; margin: 0 auto; }
    .about__text { text-align: left; }
    .process__steps,
    .tech-stack__groups { grid-template-columns: 1fr; }
    .hero__actions .btn,
    .contact__links .btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
    .container, .container--wide { padding: 0 18px; }
    .factsheet { max-width: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
