@import url('../assets/local-fonts/fonts.css');

@font-face {
    font-family: "Golos Text";
    src: url('../assets/local-fonts/noto-sans.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Golos Text";
    src: url('../assets/local-fonts/noto-sans-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Unbounded";
    src: url('../assets/local-fonts/noto-sans-display-semibold.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Unbounded";
    src: url('../assets/local-fonts/noto-sans-display-black.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #fbfaf8;
    --bg-soft: rgba(255, 255, 252, 0.88);
    --card: rgba(255, 255, 253, 0.9);
    --card-solid: #fffdfb;
    --panel: #17110f;
    --panel-soft: rgba(23, 17, 15, 0.76);
    --ink: #1a1310;
    --muted: #705f55;
    --line: rgba(26, 19, 16, 0.07);
    --accent: #ff6b2c;
    --accent-deep: #d84f16;
    --accent-soft: rgba(255, 107, 44, 0.12);
    --shadow: 0 28px 70px rgba(24, 17, 15, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --shell: min(1180px, calc(100vw - 40px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Golos Text", sans-serif;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 107, 44, 0.045), transparent 23%),
        radial-gradient(circle at 84% 10%, rgba(92, 80, 71, 0.035), transparent 18%),
        radial-gradient(circle at 80% 84%, rgba(255, 171, 129, 0.065), transparent 22%),
        linear-gradient(180deg, #fbfaf8 0%, #f4f0ea 100%);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.46), transparent 88%);
    pointer-events: none;
    z-index: -2;
}

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

button,
input,
textarea {
    font: inherit;
}

.shell {
    width: var(--shell);
    margin: 0 auto;
}

.container {
    width: var(--shell);
    margin: 0 auto;
}

.page-glow {
    position: fixed;
    inset: auto auto 0 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.65;
    z-index: -3;
    pointer-events: none;
}

.page-glow--left {
    left: -140px;
    top: 12%;
    background: rgba(255, 107, 44, 0.12);
}

.page-glow--right {
    right: -140px;
    top: 44%;
    background: rgba(92, 80, 71, 0.08);
}

.main-header {
    width: var(--shell);
    margin: 0 auto;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 12px;
    z-index: 30;
    margin-bottom: clamp(1.25rem, 2vw, 2rem);
    border: 1px solid rgba(46, 29, 20, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 252, 0.84);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(49, 30, 19, 0.05);
}

.logo {
    max-width: 220px;
    flex: 0 0 auto;
}

.logo a {
    display: block;
}

.logo img {
    width: clamp(150px, 16vw, 220px);
    height: auto;
    display: block;
    mix-blend-mode: normal;
}

.main-header nav {
    display: flex;
    align-items: center;
    gap: clamp(1.3rem, 3vw, 2.7rem);
}

.main-header nav a {
    position: relative;
    color: #665c56;
    font-family: 'noto-sans', 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.24s ease;
}

.main-header nav a::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 6px;
    background: #f05a28;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.24s ease;
}

.main-header nav a:hover,
.main-header nav a:focus-visible {
    color: #f05a28;
}

.main-header nav a:hover::after,
.main-header nav a:focus-visible::after {
    transform: scaleX(1);
}

.cta-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0.95rem 1.45rem;
    border: 1px solid rgba(240, 90, 40, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #d4491a;
    font-family: 'noto-sans-bold', 'noto-sans', 'Segoe UI', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: background-color 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.cta-mini::after {
    display: none;
}

.cta-mini:hover,
.cta-mini:focus-visible {
    background: #f05a28;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(240, 90, 40, 0.18);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(46, 29, 20, 0.08);
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(49, 30, 19, 0.06);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #171310;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 25;
    padding: 7.5rem 1.5rem 3rem;
    background:
        radial-gradient(circle at top center, rgba(240, 90, 40, 0.12), transparent 35%),
        rgba(255, 253, 250, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    width: min(100%, 420px);
    padding: 1rem 1.2rem;
    border: 1px solid rgba(46, 29, 20, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    color: #171310;
    font-family: 'noto-sans', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    box-shadow: 0 24px 64px rgba(49, 30, 19, 0.08);
}

.mobile-nav .cta-mini {
    margin-top: 0.4rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0 0;
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    background: rgba(255, 249, 242, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(28, 19, 16, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 107, 44, 1), rgba(255, 168, 113, 0.92));
    color: #fff;
    font-family: "Unbounded", sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong,
.section-head h2,
.impact-card--dark h2,
.contact-copy h2,
.process-card h3,
.case-card h3,
.hero-copy h1 {
    font-family: "Unbounded", sans-serif;
}

.brand-copy strong {
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.84rem;
}

.site-nav {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.site-nav a,
.toolbar-meta,
.hero-text,
.section-lead,
.impact-card p,
.process-card p,
.case-copy p,
.case-copy li,
.contact-copy p,
.contact-meta {
    color: var(--muted);
}

.site-nav a {
    position: relative;
    font-size: 0.96rem;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ff8e52);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 18px 36px rgba(255, 107, 44, 0.24);
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(255, 107, 44, 0.28);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.5);
    color: var(--ink);
    border-color: rgba(26, 19, 16, 0.1);
    box-shadow: none;
}

.button--ghost:hover,
.button--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.78);
}

.badge-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 107, 44, 0.16);
    background: rgba(255, 252, 248, 0.8);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-button {
    white-space: nowrap;
}

@media (max-width: 980px) {
    .main-header {
        top: 4px;
        padding: 0.85rem 1rem;
        margin-bottom: 1rem;
    }

    .main-header nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
        padding-top: 6rem;
    }
}

.hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 42px;
    padding: 72px 0 34px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent-deep);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 640px;
    margin: 22px 0 0;
    font-size: 1.12rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 0;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 34px 0 0;
}

.metric {
    margin: 0;
    padding: 20px;
    background: rgba(255, 252, 248, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.metric dt {
    font-family: "Unbounded", sans-serif;
    font-size: 1.3rem;
}

.metric dd {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.hero-stage {
    position: relative;
    min-height: 620px;
}

.stage-window {
    position: relative;
    padding: 16px;
    border-radius: 36px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 241, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 32px 80px rgba(24, 17, 15, 0.14);
    overflow: hidden;
}

.stage-window::after {
    content: "";
    position: absolute;
    inset: auto -80px -90px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 107, 44, 0.18);
    filter: blur(12px);
}

.stage-window__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(20, 14, 12, 0.86);
    color: rgba(255, 255, 255, 0.78);
}

.stage-window__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.34);
}

.stage-window__bar p {
    margin: 0 0 0 8px;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.stage-window__body {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 6px 6px;
}

.stage-panel {
    min-height: 180px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.62);
}

.stage-panel--accent {
    background: linear-gradient(155deg, rgba(255, 119, 63, 0.94), rgba(255, 166, 111, 0.92));
    color: #fff;
}

.stage-label {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.83rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.82;
}

.stage-panel strong,
.float-card strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1.45;
}

.stage-graph {
    position: relative;
    min-height: 220px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(28, 20, 18, 0.9);
    overflow: hidden;
}

.graph-line {
    height: 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.62));
}

.graph-line--long {
    width: 78%;
}

.graph-line--mid {
    width: 58%;
}

.graph-line--short {
    width: 38%;
}

.graph-points {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.graph-points span {
    width: 18%;
    border-radius: 18px 18px 6px 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 107, 44, 0.5));
}

.graph-points span:nth-child(1) {
    height: 36%;
}

.graph-points span:nth-child(2) {
    height: 62%;
}

.graph-points span:nth-child(3) {
    height: 48%;
}

.graph-points span:nth-child(4) {
    height: 82%;
}

.float-card {
    position: absolute;
    max-width: 260px;
    padding: 18px 20px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    animation: float 7s ease-in-out infinite;
}

.float-card p {
    margin: 0 0 10px;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.float-card--dark {
    top: 62px;
    right: -28px;
    background: rgba(18, 14, 12, 0.92);
    color: rgba(255, 255, 255, 0.88);
}

.float-card--light {
    left: -26px;
    bottom: 44px;
    background: rgba(255, 252, 248, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.62);
    animation-delay: -2.5s;
}

.impact {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 18px;
    padding: 34px 0 82px;
}

.impact-card,
.process-card,
.case-card,
.contact-card {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.impact-card {
    padding: 26px;
}

.impact-card--dark {
    background: linear-gradient(145deg, rgba(21, 16, 14, 0.96), rgba(41, 31, 27, 0.92));
    color: rgba(255, 255, 255, 0.92);
}

.impact-card span,
.process-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: 18px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-weight: 700;
}

.impact-card--dark .eyebrow {
    color: rgba(255, 173, 137, 0.94);
}

.impact-card--dark h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    line-height: 1.25;
}

.section-head {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 410px);
    gap: 28px;
    align-items: end;
    margin-bottom: 28px;
}

.section-head h2,
.contact-copy h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.faq-section {
    padding: 5.5rem 0 !important;
}

.faq-section > .badge-mini {
    display: flex;
    width: fit-content;
    margin: 0 auto 1rem;
}

.faq-section .section-title {
    margin: 0 0 1rem;
    text-align: center;
}

.faq-section > p {
    max-width: 760px;
    margin: 0 auto 2rem !important;
    color: var(--muted) !important;
    text-align: center !important;
    font-size: 1.05rem;
    line-height: 1.65;
}

.faq-details {
    margin: 0;
    border: 1px solid rgba(26, 19, 16, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 253, 0.9);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.faq-details + .faq-details {
    margin-top: 0.95rem;
}

.faq-details[open] {
    border-color: rgba(255, 107, 44, 0.18);
    background: rgba(255, 248, 243, 0.92);
}

.faq-summary {
    position: relative;
    display: block;
    padding: 1.25rem 4.2rem 1.25rem 1.4rem;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
    font-size: 1.16rem;
    font-weight: 600;
    line-height: 1.42;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1.2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 107, 44, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.faq-details[open] .faq-summary::after {
    transform: translateY(-50%) rotate(45deg);
    background: rgba(255, 107, 44, 0.08);
    border-color: rgba(255, 107, 44, 0.22);
}

.faq-answer {
    padding: 0 1.4rem 1.35rem;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.portfolio {
    padding: 20px 0 100px;
}

.portfolio-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-button {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(26, 19, 16, 0.08);
    background: rgba(255, 250, 245, 0.72);
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(255, 107, 44, 0.96), rgba(255, 156, 104, 0.92));
    color: #fff;
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.case-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.95fr);
    gap: 22px;
    padding: 24px;
    overflow: hidden;
}

.case-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.48), transparent 42%);
    pointer-events: none;
}

.case-copy {
    position: relative;
    z-index: 1;
}

.case-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.case-sector,
.case-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-sector {
    background: rgba(23, 17, 15, 0.08);
}

.case-chip {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(26, 19, 16, 0.08);
}

.case-card h3 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    line-height: 1.24;
}

.case-copy p {
    margin: 0;
    line-height: 1.65;
}

.case-list {
    display: grid;
    gap: 12px;
    padding: 18px 0 0;
    margin: 0;
    list-style: none;
}

.case-list li {
    position: relative;
    padding-left: 18px;
    line-height: 1.55;
}

.case-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.case-preview {
    position: relative;
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 18px;
    border-radius: 28px;
    min-height: 100%;
    background: rgba(20, 14, 12, 0.92);
    color: rgba(255, 255, 255, 0.9);
}

.case-preview::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.case-preview > * {
    position: relative;
    z-index: 1;
}

.case-preview__kicker {
    display: inline-flex;
    width: fit-content;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-preview__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
}

.case-preview__lines {
    display: grid;
    gap: 10px;
}

.case-preview__lines span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.case-preview__lines span:nth-child(1) {
    width: 88%;
}

.case-preview__lines span:nth-child(2) {
    width: 62%;
}

.case-preview__lines span:nth-child(3) {
    width: 74%;
}

.case-preview__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-preview__stack span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
}

.case-shot {
    position: relative;
    grid-column: 1 / -1;
    margin: 2px 0 0;
    overflow: hidden;
    isolation: isolate;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: #160f0d;
    box-shadow: 0 26px 56px rgba(24, 17, 15, 0.1);
}

.case-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(18, 13, 11, 0.18)),
        linear-gradient(135deg, rgba(255, 107, 44, 0.1), rgba(18, 13, 11, 0.1));
    pointer-events: none;
    z-index: 1;
}

.case-shot img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.45s ease;
}

.case-card:hover .case-shot img,
.case-card:focus-within .case-shot img {
    transform: scale(1.04);
}

.case-card[data-theme="ember"] {
    background: linear-gradient(155deg, rgba(255, 248, 243, 0.92), rgba(255, 233, 224, 0.92));
}

.case-card[data-theme="ash"] {
    background: linear-gradient(155deg, rgba(248, 245, 242, 0.92), rgba(236, 232, 228, 0.9));
}

.case-card[data-theme="sand"] {
    background: linear-gradient(155deg, rgba(255, 251, 246, 0.94), rgba(244, 238, 231, 0.92));
}

.case-card[data-theme="stone"] {
    background: linear-gradient(155deg, rgba(246, 243, 240, 0.94), rgba(231, 225, 219, 0.9));
}

.case-card[data-theme="flare"] {
    background: linear-gradient(155deg, rgba(255, 242, 235, 0.96), rgba(255, 223, 205, 0.92));
}

.case-card[data-theme="graphite"] {
    background: linear-gradient(155deg, rgba(248, 245, 241, 0.94), rgba(224, 219, 214, 0.94));
}

.process {
    padding: 0 0 100px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.process-card {
    padding: 24px;
}

.process-card h3 {
    margin: 0 0 12px;
    font-size: 1.18rem;
    line-height: 1.35;
}

.contact {
    padding: 0 0 88px;
}

.contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 28px;
    padding: 34px;
    background: linear-gradient(150deg, rgba(24, 17, 15, 0.96), rgba(44, 33, 28, 0.92));
    color: rgba(255, 255, 255, 0.92);
}

.contact-card .eyebrow,
.contact-card p,
.contact-card .contact-meta {
    color: rgba(255, 255, 255, 0.72);
}

.contact-actions {
    display: grid;
    align-content: start;
    gap: 14px;
}

.contact-actions--form {
    gap: 18px;
}

.contact-form-shell {
    display: grid;
    gap: 16px;
}

.contact-copy {
    display: grid;
    align-content: start;
    gap: 14px;
}

.contact-copy h2 {
    margin: 0;
}

.contact-copy > p {
    margin: 0;
}

.contact-actions .button--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.contact-meta {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.94rem;
}

.contact-card .contact-meta a {
    color: rgba(255, 255, 255, 0.92);
}

.contact-links-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-links-panel a {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
    line-height: 1.4;
    transition: color 0.24s ease, transform 0.24s ease;
}

.contact-links-panel a:hover,
.contact-links-panel a:focus-visible {
    color: #ffb08a;
    transform: translateX(2px);
}

.contact-card .form-title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.form-intro {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
}

.contact-card .form-group {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.contact-card .form-group:focus-within {
    border-bottom-color: rgba(255, 143, 91, 0.92);
}

.contact-card .form-group input,
.contact-card .form-group textarea {
    color: #fff;
}

.contact-card .form-group input::placeholder,
.contact-card .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.contact-card .btn-magnetic {
    width: 100%;
    background: linear-gradient(135deg, #ff8f5b, #ff6b2c);
    box-shadow: 0 20px 42px rgba(255, 107, 44, 0.24);
}

.contact-card .btn-magnetic:hover,
.contact-card .btn-magnetic:focus-visible {
    background: linear-gradient(135deg, #ff9c6d, #ff7440);
    box-shadow: 0 22px 48px rgba(255, 107, 44, 0.3);
}

.contact-card .accent-text {
    color: #ffb08a;
}

.main-footer {
    width: var(--shell);
    margin: 0 auto 88px;
    padding: 18px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(255, 107, 44, 0.1), transparent 28%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(246, 240, 234, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.footer-container {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(300px, 1.06fr);
    gap: 18px;
    align-items: start;
}

.footer-form,
.footer-grid {
    min-width: 0;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(26, 19, 16, 0.08);
}

.footer-form {
    background:
        radial-gradient(circle at top left, rgba(255, 107, 44, 0.18), transparent 32%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(247, 239, 232, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.footer-grid {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(26, 19, 16, 0.08);
}

.form-title {
    margin: 0 0 22px;
    font-family: "Unbounded", "Segoe UI", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

#contact-form,
#cases-contact-form {
    display: grid;
    gap: 16px;
}

.form-group {
    border-bottom: 1px solid rgba(26, 19, 16, 0.12);
    transition: border-color 0.2s ease;
}

.form-group:focus-within {
    border-bottom-color: rgba(255, 107, 44, 0.7);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(44, 34, 28, 0.48);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.btn-magnetic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 16px 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #231915, #40302a);
    color: #fff;
    font-family: "Golos Text", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(31, 20, 15, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-magnetic:hover,
.btn-magnetic:focus-visible {
    background: linear-gradient(135deg, #ff8f5b, #ff6b2c);
    box-shadow: 0 20px 42px rgba(255, 107, 44, 0.22);
}

.btn-magnetic:disabled {
    opacity: 0.7;
    cursor: wait;
}

.btn-magnetic span {
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.hidden {
    display: none !important;
}

.af-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10005;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.af-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.af-modal-container {
    width: min(90vw, 500px);
    padding: 3rem;
    background: #111;
    border: 1px solid rgba(255, 95, 31, 0.2);
    color: #fff;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.af-modal-overlay.active .af-modal-container {
    transform: scale(1) translateY(0);
}

.af-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
}

.af-modal-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.af-modal-message {
    margin: 0 0 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-line;
}

.af-modal-close {
    min-width: 140px;
}

.af-modal-success .af-modal-container {
    border-color: #22c55e;
}

.af-modal-success .af-modal-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.af-modal-error .af-modal-container {
    border-color: #ef4444;
}

.af-modal-error .af-modal-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.af-modal-blocked .af-modal-container {
    border-color: var(--accent);
}

.af-modal-blocked .af-modal-icon {
    color: var(--accent);
    background: rgba(255, 107, 44, 0.1);
}

.footer-logo {
    display: block;
    width: min(220px, 44vw);
    height: auto;
    margin-bottom: 18px;
}

.footer-info > p {
    max-width: 560px;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}

.footer-links a {
    padding: 4px 0;
    color: var(--ink);
    font-size: 0.95rem;
    opacity: 0.76;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-meta a:hover,
.footer-meta a:focus-visible {
    color: var(--accent-deep);
    opacity: 1;
}

.footer-meta {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.94rem;
    font-style: normal;
}

.footer-bottom {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(26, 19, 16, 0.08);
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-delay {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.18s;
}

.reveal-delay-3 {
    transition-delay: 0.26s;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1080px) {
    .header-shell,
    .hero,
    .impact,
    .section-head,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .header-shell {
        border-radius: 28px;
    }

    .site-header {
        position: static;
        padding-top: 14px;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-stage {
        min-height: 0;
    }

    .float-card--dark {
        right: 18px;
    }

    .float-card--light {
        left: 18px;
        bottom: 18px;
    }

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

    .hero-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .header-shell {
        display: grid;
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 14px;
    }

    .site-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        font-size: 0.94rem;
    }

    .site-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 12px;
        background: rgba(255, 255, 255, 0.54);
        border: 1px solid rgba(26, 19, 16, 0.06);
        border-radius: 14px;
    }

    .site-nav a::after {
        display: none;
    }

    .header-button {
        width: 100%;
    }

    .hero,
    .impact,
    .portfolio,
    .process,
    .contact {
        padding-bottom: 72px;
    }

    .main-footer {
        margin-bottom: 72px;
        padding: 14px;
    }

    .case-card,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-links-panel {
        grid-template-columns: 1fr;
    }

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

    .stage-window__body {
        grid-template-columns: 1fr;
    }

    .float-card {
        position: static;
        max-width: none;
        margin-top: 14px;
    }

    .hero-stage {
        display: grid;
        gap: 14px;
    }

    .section-head {
        margin-bottom: 24px;
    }

    .footer-grid {
        padding: 24px;
    }

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

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

@media (max-width: 560px) {
    :root {
        --shell: calc(100vw - 24px);
    }

    .brand {
        align-items: flex-start;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .hero-copy h1,
    .section-head h2,
    .contact-copy h2,
    .impact-card--dark h2 {
        letter-spacing: -0.05em;
    }

    .button,
    .filter-button {
        width: 100%;
    }

    .hero-actions,
    .filter-group {
        display: grid;
    }

    .metric,
    .impact-card,
    .process-card,
    .case-card,
    .contact-card {
        border-radius: 24px;
    }

    .stage-window {
        border-radius: 28px;
    }
}
