/* ============================================================
   Colada Systems — műhelyes, editorial, mérnöki esztétika
   ============================================================ */

:root {
    /* light — meleg krém papír, mély tinta */
    --paper: #eee7d8;
    --paper-2: #e6dec8;
    --ink: #16140f;
    --ink-2: #2a2722;
    --mute: #6b6557;
    --rule: #20201b;
    --accent: #b13a1c;
    --accent-2: #94301a;
    --good: #2f7a3a;
    --grain-blend: multiply;
    --grain-opacity: 0.07;

    --font-display: "Fraunces", "Times New Roman", serif;
    --font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

    --max: 1320px;
    --pad: clamp(20px, 4vw, 56px);

    color-scheme: light;
}

/* explicit dark — warm night, same workshop after hours */
:root[data-theme="dark"] {
    --paper: #15130f;
    --paper-2: #1d1a14;
    --ink: #ece5d2;
    --ink-2: #d2cab6;
    --mute: #8a8273;
    --rule: #3a342a;
    --accent: #d44729;
    --accent-2: #b53d22;
    --good: #5fb072;
    --grain-blend: screen;
    --grain-opacity: 0.055;
    color-scheme: dark;
}

/* system dark when user hasn't picked a side */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #15130f;
        --paper-2: #1d1a14;
        --ink: #ece5d2;
        --ink-2: #d2cab6;
        --mute: #8a8273;
        --rule: #3a342a;
        --accent: #d44729;
        --accent-2: #b53d22;
        --good: #5fb072;
        --grain-blend: screen;
        --grain-opacity: 0.055;
        color-scheme: dark;
    }
}

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    font-feature-settings: "ss01", "ss02", "cv11";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}
img,
svg {
    display: block;
}

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

/* faint paper grain */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: var(--grain-opacity);
    mix-blend-mode: var(--grain-blend);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ----------------------------------------------- NAV */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}
.nav__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px var(--pad);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}
.nav__tools {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
@keyframes pulse {
    50% {
        box-shadow: 0 0 0 8px color-mix(in srgb, var(--good) 0%, transparent);
    }
}

.theme-toggle {
    --size: 36px;
    width: var(--size);
    height: var(--size);
    display: inline-grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
    background: color-mix(in srgb, var(--paper) 60%, transparent);
    border-radius: 50%;
    cursor: pointer;
    color: var(--ink);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.25s ease;
}
.theme-toggle:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.theme-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.theme-toggle .icon-sun {
    display: none;
}
.theme-toggle .icon-moon {
    display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon {
    /* override per resolved theme below */
}
/* show sun in dark, moon in light — uses computed colour scheme via media + attr */
:root[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: block;
    }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: none;
    }
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}
.brand__mark {
    color: var(--accent);
    display: inline-flex;
}
.brand__name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.01em;
}
.brand__dot {
    color: var(--accent);
}

.menu {
    justify-self: center;
    display: flex;
    gap: 28px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.01em;
}
.menu a {
    position: relative;
    padding: 6px 2px;
    color: var(--ink-2);
    transition: color 0.2s ease;
}
.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.menu a:hover,
.menu a.is-active {
    color: var(--ink);
}
.menu a.is-active::after,
.menu a:hover::after {
    transform: scaleX(1);
}

@media (max-width: 900px) {
    .nav__inner {
        grid-template-columns: auto auto;
    }
    .menu {
        display: none;
    }
}

/* ----------------------------------------------- HERO */
.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(40px, 8vw, 96px) var(--pad) 0;
}
.hero__rule {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 10px 0;
    margin-bottom: clamp(40px, 7vw, 72px);
}
.hero__rule span:nth-child(n + 3) {
    display: none;
}
@media (min-width: 800px) {
    .hero__rule span {
        display: inline !important;
    }
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: end;
}
@media (max-width: 900px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }
}

.hero__meta {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.tag {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 6px 12px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    border-radius: 999px;
}
.tag--ghost {
    background: transparent;
    color: var(--ink);
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 350;
    font-size: clamp(44px, 8vw, 124px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 0;
    font-variation-settings:
        "SOFT" 30,
        "opsz" 144;
}
.hero__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}
.hero__title .line {
    display: block;
}
.hero__title .line:nth-child(2) {
    padding-left: clamp(20px, 6vw, 96px);
}
.hero__title .line:nth-child(4) {
    padding-left: clamp(40px, 12vw, 200px);
}

.hero__sidebar {
    border-top: 1px solid var(--rule);
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 380px;
}
.hero__kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
    margin: 0;
}
.hero__lead {
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.45;
    font-weight: 350;
    margin: 0;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 14px 22px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
    border: 1px solid var(--ink);
    border-radius: 999px;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}
.cta:hover {
    background: var(--accent);
    border-color: var(--accent);
}
.cta--lg {
    padding: 18px 28px;
    font-size: 15px;
}
.cta--ghost {
    background: transparent;
    color: var(--ink);
}
.cta--ghost:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

/* ticker */
.ticker {
    margin-top: clamp(48px, 8vw, 96px);
    overflow: hidden;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.ticker__track {
    display: flex;
    gap: 28px;
    padding: 14px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--ink-2);
    white-space: nowrap;
    animation: ticker 38s linear infinite;
    width: max-content;
}
.ticker__track span:nth-child(2n) {
    color: var(--accent);
}
@keyframes ticker {
    to {
        transform: translateX(-50%);
    }
}

/* ----------------------------------------------- SECTION HEADS */
.section__head {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(72px, 12vw, 140px) var(--pad) clamp(28px, 5vw, 56px);
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    align-items: end;
    border-bottom: 1px solid var(--rule);
}
.section__num {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--accent);
    align-self: start;
    padding-top: 12px;
}
.section__title {
    font-family: var(--font-display);
    font-weight: 350;
    font-size: clamp(34px, 5.5vw, 72px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
    grid-column: 2;
}
.section__title--tight {
    font-size: clamp(30px, 4.4vw, 56px);
}
.section__lede {
    grid-column: 2;
    max-width: 56ch;
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink-2);
    font-weight: 350;
    margin: 0;
}

/* ----------------------------------------------- CASES */
.works {
    padding-bottom: clamp(60px, 10vw, 120px);
}

.cases {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: var(--max);
    margin: 0 auto;
}
.case {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) minmax(0, 280px);
    gap: clamp(24px, 4vw, 56px);
    padding: clamp(36px, 5vw, 56px) var(--pad);
    border-bottom: 1px solid var(--rule);
    align-items: start;
    transition: background 0.2s ease;
}
.case:hover {
    background: color-mix(in srgb, var(--paper-2) 60%, transparent);
}
@media (max-width: 900px) {
    .case {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.case__link {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--mute);
    align-self: start;
    padding-top: 8px;
    word-break: break-all;
    border-left: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
    padding-left: 18px;
    line-height: 1.7;
}
.case__link a {
    color: var(--ink);
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}
.case__link a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.case__link--none {
    color: var(--mute);
    font-style: italic;
}
@media (max-width: 900px) {
    .case__link {
        border-left: 0;
        padding-left: 0;
        padding-top: 0;
    }
}

.case__rail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
}
.case__id {
    color: var(--ink);
}

.case__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 3.8vw, 48px);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.case__title a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid transparent;
    transition:
        border-color 0.2s ease,
        color 0.2s ease;
}
.case__title a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.case__title a svg {
    width: 22px;
    height: 22px;
    opacity: 0.55;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}
.case__title a:hover svg {
    transform: translate(2px, -2px);
    opacity: 1;
}

.case__badge {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
    color: var(--mute);
    vertical-align: middle;
    align-self: center;
    margin-top: 6px;
}
.case__badge--public {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.case__role {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    margin: 0 0 18px;
}
.case__copy {
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0 0 22px;
    max-width: 48ch;
}
.case__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.case__tags li {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
    border-radius: 999px;
    color: var(--ink-2);
}

/* ----------------------------------------------- APPROACH */
.approach {
    padding-bottom: clamp(72px, 12vw, 140px);
}
.principles {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-left: 1px solid var(--rule);
}
@media (max-width: 1000px) {
    .principles {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .principles {
        grid-template-columns: 1fr;
    }
}

.p {
    padding: clamp(28px, 3.6vw, 44px);
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    transition: background 0.25s ease;
}
.p:hover {
    background: var(--paper-2);
}
.p__num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.08em;
}
.p__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
    max-width: 22ch;
}
.p__copy {
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
    max-width: 38ch;
}

/* ----------------------------------------------- DEVELOPERS */
.devs {
    padding-bottom: clamp(72px, 12vw, 140px);
}
.devs__grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
@media (max-width: 760px) {
    .devs__grid {
        grid-template-columns: 1fr;
    }
}

.dev {
    position: relative;
    padding: clamp(32px, 4vw, 52px);
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(20px, 3vw, 32px);
    align-items: start;
    transition: background 0.25s ease;
}
.dev:hover {
    background: var(--paper-2);
}

.dev__avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 34px;
    letter-spacing: -0.02em;
    border: 1px solid var(--ink);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--paper) 8%, transparent);
}
.dev:nth-child(1) .dev__avatar {
    background: var(--accent);
    border-color: var(--accent);
}

.dev__body {
    min-width: 0;
}
.dev__name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}
.dev__aka {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--mute);
    text-transform: lowercase;
    font-style: italic;
}
.dev__aka::before {
    content: "·";
    margin-right: 10px;
    color: color-mix(in srgb, var(--mute) 60%, transparent);
    font-style: normal;
}
.dev__role {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin: 0 0 14px;
    text-transform: uppercase;
}
.dev__copy {
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0 0 14px;
    max-width: 42ch;
}
.dev__tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dev__tags li {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 4px 9px;
    border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
    border-radius: 999px;
    color: var(--ink-2);
}

/* ----------------------------------------------- STUDIO */
.studio {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(72px, 10vw, 140px) var(--pad);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
@media (max-width: 900px) {
    .studio {
        grid-template-columns: 1fr;
    }
}

.studio__copy {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.55;
    font-weight: 350;
    color: var(--ink);
    margin: 18px 0 0;
    max-width: 52ch;
}
.studio__col .section__num {
    display: inline-block;
    padding: 0 0 12px;
}
.studio__col .section__title {
    padding-top: 0;
}

.studio__facts {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 4px 0;
}
.studio__facts dl {
    display: grid;
    grid-template-columns: minmax(110px, 30%) 1fr;
    margin: 0;
}
.studio__facts dt,
.studio__facts dd {
    margin: 0;
    padding: 16px 4px;
    border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
    font-family: var(--font-mono);
    font-size: 13px;
}
.studio__facts dt {
    color: var(--mute);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 11.5px;
    padding-top: 18px;
}
.studio__facts dd {
    color: var(--ink);
}
.studio__facts dt:first-of-type,
.studio__facts dt:first-of-type + dd {
    border-top: none;
}

/* ----------------------------------------------- CONTACT
   contact follows the current theme — a slightly tinted
   variant of the page paper so it still reads as a distinct
   block without inverting the colour scheme. */
.contact {
    --c-bg: var(--paper-2);
    --c-fg: var(--ink);
    background: var(--c-bg);
    color: var(--c-fg);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--rule);
}
.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
        to right,
        color-mix(in srgb, var(--c-fg) 10%, transparent) 1px,
        transparent 1px
    );
    background-size: 80px 100%;
    pointer-events: none;
    opacity: 0.25;
}
.contact__inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(80px, 12vw, 160px) var(--pad);
}
.contact .section__num {
    color: color-mix(in srgb, var(--c-fg) 70%, transparent);
}
.contact__title {
    font-family: var(--font-display);
    font-weight: 350;
    font-size: clamp(40px, 6.4vw, 96px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 24px 0 24px;
    max-width: 18ch;
}
.contact__title em {
    font-style: italic;
    color: color-mix(in srgb, var(--c-fg) 60%, var(--accent));
}
.contact__copy {
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.5;
    color: color-mix(in srgb, var(--c-fg) 78%, transparent);
    max-width: 52ch;
    margin: 0 0 36px;
}
.contact__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.contact .cta {
    background: var(--c-fg);
    color: var(--c-bg);
    border-color: var(--c-fg);
}
.contact .cta:hover {
    background: var(--accent);
    color: var(--c-fg);
    border-color: var(--accent);
}
.contact .cta--ghost {
    background: transparent;
    color: var(--c-fg);
    border-color: color-mix(in srgb, var(--c-fg) 40%, transparent);
}
.contact .cta--ghost:hover {
    background: var(--c-fg);
    color: var(--c-bg);
    border-color: var(--c-fg);
}

/* ----------------------------------------------- FOOT */
.foot {
    background: var(--paper-2);
    border-top: 1px solid var(--rule);
}
.foot__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) var(--pad) 28px;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: clamp(28px, 5vw, 64px);
}
@media (max-width: 800px) {
    .foot__inner {
        grid-template-columns: 1fr;
    }
}

.foot__tag {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--mute);
    margin: 10px 0 0;
}
.foot__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 600px) {
    .foot__cols {
        grid-template-columns: 1fr 1fr;
    }
}
.foot__head {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mute);
    margin: 0 0 12px;
}
.foot__cols a,
.foot__addr {
    display: block;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--ink);
    padding: 5px 0;
    border-bottom: 1px solid transparent;
    width: max-content;
}
.foot__cols a:hover {
    border-bottom-color: var(--ink);
}

.foot__bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--mute);
    flex-wrap: wrap;
    gap: 12px;
}

/* reveal-on-load: kicsi, finom megjelenés */
.hero__title .line,
.hero__lead,
.hero__meta,
.cta {
    opacity: 0;
    transform: translateY(8px);
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero__meta {
    animation-delay: 0.05s;
}
.hero__title .line:nth-child(1) {
    animation-delay: 0.1s;
}
.hero__title .line:nth-child(2) {
    animation-delay: 0.18s;
}
.hero__title .line:nth-child(3) {
    animation-delay: 0.26s;
}
.hero__title .line:nth-child(4) {
    animation-delay: 0.34s;
}
.hero__title .line:nth-child(5) {
    animation-delay: 0.42s;
}
.hero__lead {
    animation-delay: 0.48s;
}
.cta {
    animation-delay: 0.56s;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    .ticker__track {
        animation: none;
    }
}

/* ----------------------------------------------- METRICS STRIP */
.metrics {
    max-width: var(--max);
    margin: clamp(36px, 6vw, 64px) auto 0;
    padding: 0 var(--pad);
}
.metrics__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
@media (max-width: 760px) {
    .metrics__row {
        grid-template-columns: repeat(2, 1fr);
    }
}
.metric {
    padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2vw, 28px);
    border-right: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.metric:last-child {
    border-right: none;
}
@media (max-width: 760px) {
    .metric:nth-child(2) {
        border-right: none;
    }
    .metric:nth-child(1),
    .metric:nth-child(2) {
        border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
    }
}
.metric__num {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--ink);
    font-variation-settings:
        "SOFT" 30,
        "opsz" 144;
}
.metric__num em {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}
.metric__label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mute);
}

/* ----------------------------------------------- CAPABILITIES (reuses .principles) */
.caps {
    padding-bottom: clamp(60px, 10vw, 120px);
}

/* override default 3-col on caps so 6 items lay nicely */
.caps .principles {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1000px) {
    .caps .principles {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .caps .principles {
        grid-template-columns: 1fr;
    }
}

.p__tags {
    list-style: none;
    margin: auto 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.p__tags li {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    padding: 4px 9px;
    border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
    border-radius: 999px;
    color: var(--mute);
}

/* ----------------------------------------------- PROCESS (also reuses .principles) */
.process {
    padding-bottom: clamp(60px, 10vw, 120px);
}
.process .principles {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) {
    .process .principles {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .process .principles {
        grid-template-columns: 1fr;
    }
}

.process__antilist {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 48px) var(--pad) 0;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
}
@media (max-width: 760px) {
    .process__antilist {
        grid-template-columns: 1fr;
    }
}
.process__antilist h3 {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 6px 0 0;
}
.process__antilist ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 28px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 350;
    color: var(--ink-2);
}
@media (max-width: 760px) {
    .process__antilist ul {
        grid-template-columns: 1fr;
    }
}
.process__antilist li {
    position: relative;
    padding-left: 26px;
    line-height: 1.5;
}
.process__antilist li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-family: var(--font-mono);
}

/* ----------------------------------------------- FAQ */
.faq {
    padding-bottom: clamp(72px, 12vw, 140px);
}
.faq__list {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
    border-top: 1px solid var(--rule);
}
.faq__item {
    border-bottom: 1px solid var(--rule);
}
.faq__summary {
    display: grid;
    grid-template-columns: 60px 1fr 28px;
    gap: 20px;
    align-items: center;
    padding: clamp(22px, 2.6vw, 30px) 0;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 0.2s ease;
}
.faq__summary::-webkit-details-marker {
    display: none;
}
.faq__summary:hover {
    color: var(--accent);
}
.faq__num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--mute);
}
.faq__q {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0;
}
.faq__plus {
    width: 24px;
    height: 24px;
    position: relative;
    justify-self: end;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.faq__plus::before,
.faq__plus::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--ink);
    transition: background 0.2s ease;
}
.faq__plus::before {
    width: 14px;
    height: 1px;
    transform: translate(-50%, -50%);
}
.faq__plus::after {
    width: 1px;
    height: 14px;
    transform: translate(-50%, -50%);
    transition:
        transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
        background 0.2s ease;
}
.faq__item[open] .faq__plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.faq__summary:hover .faq__plus::before,
.faq__summary:hover .faq__plus::after {
    background: var(--accent);
}

.faq__answer {
    display: grid;
    grid-template-columns: 60px 1fr 28px;
    gap: 20px;
    padding: 0 0 clamp(24px, 2.8vw, 32px);
}
.faq__answer p {
    grid-column: 2;
    max-width: 62ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 350;
    color: var(--ink-2);
}
.faq__answer p + p {
    margin-top: 12px;
}

/* ----------------------------------------------- CONTACT additions */
.contact__meta {
    margin-top: clamp(40px, 6vw, 64px);
    padding-top: 24px;
    border-top: 1px solid color-mix(in srgb, var(--c-fg) 18%, transparent);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 760px) {
    .contact__meta {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
.contact__meta dt {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--c-fg) 55%, transparent);
    margin: 0 0 6px;
}
.contact__meta dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.4;
    font-weight: 350;
    color: color-mix(in srgb, var(--c-fg) 92%, transparent);
}

/* ----------------------------------------------- FOOTER REWRITE */
.foot__legal {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--mute);
    margin: 14px 0 0;
    max-width: 42ch;
    line-height: 1.55;
}
.foot__meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 36px);
}
@media (max-width: 720px) {
    .foot__meta {
        grid-template-columns: 1fr 1fr;
    }
}
.foot__col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
    margin: 0 0 12px;
    font-weight: 500;
}
.foot__col p,
.foot__col a {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink);
    margin: 4px 0;
    line-height: 1.5;
    display: block;
    border-bottom: 1px solid transparent;
    width: max-content;
    max-width: 100%;
}
.foot__col a:hover {
    border-bottom-color: var(--ink);
}
