/* =============================================
   Sketchmatter — Main Stylesheet
   ============================================= */

/* ── Custom font ── */
@font-face {
    font-family: 'Parabole';
    src: url('../fonts/Parabole.woff2') format('woff2');
    font-weight: 100 900;   /* covers all weights so no synthetic bold */
    font-style: normal;
    font-display: swap;
}

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

:root {
    --orange:        #E84010;
    --orange-dark:   #C83508;
    --bg:            #0f0f0f;
    --card-bg:       #1a1a1a;
    --card-bg-2:     #222222;
    --border:        #2a2a2a;
    --text:          #ffffff;
    --text-sec:      #888888;
    --text-muted:    #4a4a4a;
    --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading:  'Parabole', 'Inter', -apple-system, sans-serif;
    --nav-h:         100px;
}

html { scroll-behavior: smooth; }

/* ── Parabole: all display headings + logo ── */
.nav__logo-text,
.section-heading,
.hero__heading,
.stats__number,
.service-card__title,
.final-cta__heading,
.case-hero__title,
.case-h2,
.case-h3,
.case-cta__heading,
.case-block__heading {
    font-family: var(--font-heading);
}

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

/* ── Grain overlay ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 8000;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
    opacity: 0.045;
}
[data-theme="light"] body::before {
    opacity: 0.022;
}

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

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

.text-orange { color: var(--orange); }

/* ── Container ── */
.container {
    width: 100%;
    padding: 0 clamp(24px, 4vw, 80px);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
    white-space: nowrap;
    text-decoration: none;
}

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

.btn--primary {
    background: var(--orange);
    color: #fff;
    transition: background 0.18s, box-shadow 0.22s, transform 0.12s;
}
.btn--primary:hover {
    background: var(--orange-dark);
    box-shadow: 0 0 22px rgba(232,64,16,0.45), 0 0 6px rgba(232,64,16,0.3);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.btn--ghost:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.04);
}

.btn--dark-inv {
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 13px 28px;
}
.btn--dark-inv:hover { background: #1a1a1a; }

/* ── Section shared ── */
.section-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 18px;
}

.section-heading {
    font-size: clamp(30px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}

.section-desc {
    font-size: 15px;
    color: var(--text-sec);
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 52px;
}

/* ================================================
   NAVIGATION
   ================================================ */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    background: rgba(15,15,15,0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.35s, border-color 0.35s;
}

.nav__container {
    width: 100%;
    padding: 0 clamp(24px, 4vw, 80px);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 0;
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scrolled state */
.nav--scrolled {
    background: rgba(15,15,15,0.88);
    border-bottom-color: rgba(255,255,255,0.06);
}
.nav--scrolled .nav__container {
    height: 62px;
}
.nav--scrolled .nav__logo-mark svg {
    height: 28px;
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav--scrolled .nav__logo-text {
    font-size: 22px;
    transition: font-size 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    margin-right: auto;
}

.nav__logo-text {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
}

.nav__logo-mark {
    height: 38px;
    width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav__logo-mark svg {
    height: 38px;
    width: auto;
    display: block;
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 28px;
    margin-right: 28px;
}

.nav__links a {
    position: relative;
    color: var(--text-sec);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.18s;
    padding-bottom: 3px;
}

/* Sliding underline */
.nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

.nav__links a:hover,
.nav__links a.active { color: #fff; }

.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-right: 8px;
}

.lang-btn {
    padding: 5px 9px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    border: 1px solid transparent;
    transition: all 0.18s;
    line-height: 1;
}

.lang-btn:hover { color: var(--text-sec); }
.lang-btn.active {
    color: #fff;
    background: var(--orange);
    border-color: var(--orange);
}

/* ================================================
   HERO
   ================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-h);
}

/* Ambient orange glow blobs */
@keyframes blob-float {
    0%, 100% { transform: scale(1)   translate(0,    0);    }
    28%       { transform: scale(1.07) translate(-1.2%, -2%); }
    60%       { transform: scale(0.94) translate(1.8%,  1.4%); }
}

.hero::before {
    content: '';
    position: absolute;
    top: -5%;
    right: -4%;
    width: 780px;
    height: 780px;
    background: radial-gradient(circle, rgba(232,64,16,0.42) 0%, rgba(232,64,16,0.18) 38%, rgba(232,64,16,0.05) 62%, transparent 72%);
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: blob-float 13s ease-in-out infinite;
    transform-origin: center center;
}

/* Secondary smaller warm glow bottom-left */
.hero .hero__bg::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -5%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255,140,40,0.22) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
}

/* Grain / noise texture overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.055;
    pointer-events: none;
    z-index: 6;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: var(--bg);
    z-index: 0;
    overflow: hidden;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    filter: brightness(0.80) saturate(0.90);
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(15,15,15,0.82) 0%,
        rgba(15,15,15,0.65) 25%,
        rgba(15,15,15,0.25) 50%,
        rgba(15,15,15,0.0)  68%
    );
    z-index: 1;
}

.hero__bg-label {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px dashed var(--border);
    padding: 10px 20px;
    white-space: nowrap;
    pointer-events: none;
}

/* Diamond bar decoration */
.hero__diamond {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}

.hero__diamond span {
    display: block;
    height: 9px;
    background: var(--orange);
    opacity: 0.85;
    border-radius: 1px;
}

.hero__logo-mark {
    position: absolute;
    top: calc(var(--nav-h) + 48px);
    right: 60px;
    z-index: 4;
    width: 340px;
    opacity: 0.92;
    pointer-events: none;
}

.hero__logo-mark svg {
    width: 100%;
    height: auto;
    display: block;
}

.hero__content {
    position: relative;
    z-index: 3;
    padding: 80px clamp(24px, 4vw, 80px) 80px clamp(24px, 4vw, 80px);
    max-width: 760px;
}

.hero__label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 24px;
}

.hero__label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    flex-shrink: 0;
    animation: dot-pulse 2.2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ── Word-by-word heading reveal ── */
.word {
    display: inline-block;
    vertical-align: bottom;
}
.word__inner {
    display: inline-block;
    transform: perspective(600px) rotateX(72deg);
    transform-origin: bottom center;
    opacity: 0;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--wd, 0ms),
                opacity   0.55s cubic-bezier(0.16, 1, 0.3, 1) var(--wd, 0ms);
    will-change: transform, opacity;
}
.word__inner--exit-up {
    transform: perspective(600px) rotateX(-60deg);
    opacity: 0;
}
.word__inner--visible {
    transform: perspective(600px) rotateX(0deg);
    opacity: 1;
}

.hero__heading {
    font-size: clamp(52px, 8.5vw, 100px);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

/* Gradient fill on the accent word ("matter." / "massa.") */
.hero__heading .text-orange {
    background: linear-gradient(110deg, #E84010 0%, #FF6B35 40%, #FFB347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent !important;
    display: inline-block; /* required for background-clip: text to work on inline elements */
}

.hero__subtitle {
    font-size: 15px;
    color: var(--text-sec);
    max-width: 440px;
    line-height: 1.75;
    margin-bottom: 40px;
}

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

/* ── Hero content entrance stagger ── */
@keyframes hero-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

/* Label fades in first, before the scramble kicks in at 500ms */
.hero__label {
    animation: hero-fade-up 0.45s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}

/* Subtitle appears as the heading words finish landing */
.hero__subtitle {
    animation: hero-fade-up 0.55s cubic-bezier(0.16,1,0.3,1) 0.85s both;
}

/* Buttons follow right after */
.hero__actions {
    animation: hero-fade-up 0.55s cubic-bezier(0.16,1,0.3,1) 1.05s both;
}

/* ================================================
   STATS
   ================================================ */
.stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.stats__item {
    display: flex;
    flex-direction: column;
    padding: 28px 48px;
    border-right: 1px solid var(--border);
}

.stats__item:last-child { border-right: none; }

.stats__number {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 6px;
}

.stats__suffix {
    font-size: 0.75em;
    font-weight: 900;
}

.stats__label {
    font-size: 10px;
    color: var(--text-sec);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
}

/* ================================================
   THREE STEPS
   ================================================ */
.steps {
    padding: 108px 0;
}

.steps__grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 52px;
}

.step-card {
    background: var(--bg);
    padding: 52px 44px 48px;
    transition: background 0.2s;
}

.step-card:hover { background: #141414; }

.step-card__number {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
}

.step-card__title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.step-card__desc {
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.7;
}

/* ── Video Placeholder ── */
.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--card-bg);
    border: 1px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-placeholder:hover .vp-btn { transform: scale(1.08); }

.video-placeholder__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    pointer-events: none;
}

.vp-btn {
    width: 68px;
    height: 68px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.vp-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-left: 3px;
}

.video-placeholder__text {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ================================================
   FDM FARM
   ================================================ */
.fdm {
    padding: 108px 0;
    border-top: 1px solid var(--border);
}

.fdm__grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--card-bg);
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
}

.service-card__img {
    width: 50%;
    aspect-ratio: 3/4;
    overflow: hidden;
    margin: 0 auto 24px;
    flex-shrink: 0;
}

.service-card__img img,
.service-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: 20px
}

.service-card__img--placeholder {
    background: #141414;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card__img--placeholder span {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-card__img--metal {
    background: #111;
}

.service-card__icon {
    height: 52px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.service-card__badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid;
    margin-bottom: 20px;
    align-self: flex-start;
}

.service-card__title {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 14px;
}

.service-card__desc {
    font-size: 14px;
    color: var(--text-sec);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card__specs {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    padding: 0;
}

.spec {
    background: var(--card-bg-2);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec__label {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
}

.spec__val {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.service-card__points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: auto;
}

.service-card__points li {
    font-size: 13px;
    color: var(--text-sec);
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.4;
}

.service-card__points li.orange { color: var(--orange); }

.service-card__points .arrow {
    flex-shrink: 0;
    color: var(--orange);
    font-size: 12px;
}

/* ── Service card hover expand (pointer devices only) ── */
.fdm__grid {
    transition: grid-template-columns 0.45s ease;
}

@media (hover: hover) and (min-width: 901px) {
    .fdm__grid:has(.service-card:nth-child(1):hover) {
        grid-template-columns: 1.4fr 0.8fr 0.8fr;
    }
    .fdm__grid:has(.service-card:nth-child(2):hover) {
        grid-template-columns: 0.8fr 1.4fr 0.8fr;
    }
    .fdm__grid:has(.service-card:nth-child(3):hover) {
        grid-template-columns: 0.8fr 0.8fr 1.4fr;
    }
}

.service-card { cursor: pointer; }

/* Collapse wrappers */
.sc-expand {
    display: grid;
    grid-template-rows: 0fr;
    min-height: 0;
    overflow: hidden;
}

.sc-expand__inner {
    min-height: 0;
    overflow: hidden;
}

/* Staggered reveal transitions */
.sc-expand--badge  { transition: grid-template-rows 0.38s ease; }
.sc-expand--bottom { transition: grid-template-rows 0.42s ease 0.08s; }

/* Expanded state */
.service-card:hover .sc-expand {
    grid-template-rows: 1fr;
}

/* ================================================
   SIX LINES
   ================================================ */
.lines {
    padding: 108px 0;
    border-top: 1px solid var(--border);
}

.lines__grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.line-card {
    background: var(--card-bg);
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.line-card__tag {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.line-card__title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.line-card__desc {
    font-size: 12px;
    color: var(--text-sec);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 18px;
}

.line-card__time {
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 0.01em;
}

/* ================================================
   MATERIALS
   ================================================ */
.materials {
    padding: 108px 0;
    border-top: 1px solid var(--border);
}

.materials__grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    align-items: start;
    column-gap: 1px;
    row-gap: 12px;
    background: transparent;
    border: none;
    margin-bottom: 14px;
}

.material-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
}

@media (hover: hover) and (min-width: 901px) {
    .material-card:hover {
        border-color: var(--orange);
    }
    .material-card:hover .material-card__name {
        color: var(--orange);
    }
}

.material-card__swatch {
    width: 100%;
    aspect-ratio: 4/5;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.material-card__swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (min-width: 901px) {
    .material-card:hover .material-card__swatch img {
        transform: scale(1.07);
    }
}

.material-card__bullets {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1) 100ms,
                margin-top        0.4s cubic-bezier(0.16, 1, 0.3, 1) 100ms;
    margin-top: 0;
}

.material-card__bullets > ul {
    overflow: hidden;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.material-card:hover .material-card__bullets {
    grid-template-rows: 1fr;
    margin-top: 12px;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                margin-top        0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.material-card__bullets li {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-sec);
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.4;
}

.material-card__bullets li::before {
    content: '→';
    color: var(--orange);
    flex-shrink: 0;
    font-size: 12px;
}

.material-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,0.25);
}

.material-card__body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.material-card__name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color 0.3s ease;
}

.material-card__desc {
    font-size: 14px;
    color: var(--text-sec);
    line-height: 1.55;
}

.materials__note strong {
    font-weight: 700;
    color: var(--text);
}
.materials__note {
    font-size: clamp(13px, 1.4vw, 20px);
    color: var(--text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    border: 1.5px solid var(--orange);
    border-radius: 6px;
    margin-top: 40px;
    padding: 22px 40px;
    letter-spacing: 0.03em;
}

/* ================================================
   QUOTE / CTA
   ================================================ */
.quote-section {
    padding: 108px 0;
    border-top: 1px solid var(--border);
}

.quote-cta {
    background: var(--orange);
    padding: 80px 0;
}

.quote-cta__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: center;
}

.quote-cta__heading {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.025em;
    margin-bottom: 20px;
    color: #fff;
}

.quote-cta__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 380px;
}

.quote-cta__note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    color: rgba(255,255,255,0.72);
    margin-bottom: 28px;
    line-height: 1.55;
}

.quote-cta__note-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    flex-shrink: 0;
    margin-top: 5px;
}

/* ── Quote Form ── */
.quote-form {
    background: #fff;
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qf-dropzone {
    border: 1.5px dashed #d4d4d4;
    background: #f8f8f8;
    padding: 22px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    position: relative;
    overflow: hidden;
}

.qf-dropzone:hover {
    border-color: #E84010;
    background: #fff5f2;
}

.qf-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

.qf-dropzone__icon {
    color: #bbb;
    margin-bottom: 4px;
}

.qf-dropzone__main {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.qf-dropzone__sub {
    font-size: 11px;
    color: #aaa;
    text-align: center;
}

.qf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.qf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.qf-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #999;
}

.qf-select,
.qf-input {
    appearance: none;
    -webkit-appearance: none;
    background: #f4f4f4;
    border: 1px solid #e4e4e4;
    color: #111;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    padding: 9px 12px;
    outline: none;
    width: 100%;
    transition: border-color 0.18s;
    border-radius: 0;
}

.qf-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    padding-right: 30px;
    cursor: pointer;
}

.qf-select:focus,
.qf-input:focus { border-color: #E84010; }

.qf-input::placeholder { color: #c0c0c0; }

.qf-submit {
    background: #111;
    color: #fff;
    border: none;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 14px 20px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: background 0.18s;
    margin-top: 2px;
}

.qf-submit:hover { background: #E84010; }

.qf-note {
    font-size: 10px;
    color: #bbb;
    text-align: center;
    letter-spacing: 0.03em;
    margin-top: -4px;
}

/* ================================================
   SHOWCASE
   ================================================ */
.showcase {
    padding: 108px 0;
    border-top: 1px solid var(--border);
}

.showcase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.showcase-card {
    background: var(--card-bg);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.28s ease;
}
.showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(232,64,16,0.18), 0 2px 12px rgba(0,0,0,0.4);
}

.showcase-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
}

.showcase-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform 0.5s ease;
}
.showcase-card:hover .showcase-card__img img { transform: scale(1.04); }

/* dark overlay on hover */
.showcase-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.28s ease;
    z-index: 2;
}
.showcase-card:hover .showcase-card__overlay { background: rgba(0,0,0,0.38); }

.showcase-card__arrow {
    font-size: 28px;
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}
.showcase-card:hover .showcase-card__arrow {
    opacity: 1;
    transform: translateY(0);
}

/* tech tag pill */
.showcase-card__tag {
    position: absolute;
    bottom: 12px;
    left: 14px;
    z-index: 3;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    backdrop-filter: blur(4px);
}

.showcase-card__body { padding: 22px 26px 26px; }

.showcase-card__title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.showcase-card__desc {
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.65;
}

/* ================================================
   TESTIMONIAL
   ================================================ */
.testimonial {
    padding: 108px 0;
    border-top: 1px solid var(--border);
}

.testimonial__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.testimonial__quote {
    font-size: clamp(17px, 2.2vw, 24px);
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 36px;
    color: var(--text);
}

.testimonial__quote::before { content: '\201C'; }
.testimonial__quote::after  { content: '\201D'; }

.testimonial__author {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.testimonial__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card-bg-2);
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial__name {
    font-size: 13px;
    font-weight: 600;
    display: block;
}

.testimonial__role {
    font-size: 12px;
    color: var(--text-sec);
    display: block;
}

/* ================================================
   FINAL CTA
   ================================================ */
.final-cta {
    position: relative;
    overflow: hidden;
    padding: 128px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

/* Glow blob centred */
.final-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(232,64,16,0.32) 0%, rgba(232,64,16,0.10) 45%, transparent 68%);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

/* Noise overlay */
.final-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}

/* Keep content above pseudo-elements */
.final-cta > * { position: relative; z-index: 1; }

.final-cta__heading {
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.final-cta__desc {
    font-size: 14px;
    color: var(--text-sec);
    margin-bottom: 40px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 56px;
}

.footer__tagline {
    font-size: 12px;
    color: #999995;
    margin-top: 14px;
    line-height: 1.7;
    max-width: 260px;
}
[data-theme="light"] .footer__tagline { color: #666662; }

.footer__col h4,
.footer__heading {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6e6e6a;
    margin-bottom: 20px;
}
[data-theme="light"] .footer__col h4,
[data-theme="light"] .footer__heading { color: var(--text-muted); }

.footer__col ul,
.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__col a,
.footer__grid div a {
    font-size: 13px;
    color: #b0b0aa;
    transition: color 0.18s;
}
[data-theme="light"] .footer__col a,
[data-theme="light"] .footer__grid div a { color: var(--text-sec); }

.footer__col a:hover,
.footer__grid div a:hover { color: #fff; }
[data-theme="light"] .footer__col a:hover,
[data-theme="light"] .footer__grid div a:hover { color: #111; }

.footer__note {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__bottom p {
    font-size: 11px;
    color: #666662;
}

.footer__brand {
    font-size: 11px;
    color: #666662;
}

.footer__brand strong {
    color: #fff;
    font-weight: 700;
}


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1100px) {
    .lines__grid {
        grid-template-columns: repeat(3,1fr);
    }
}


@media (max-width: 900px) {
    .container { padding: 0 24px; }
    .nav__container { padding: 0 24px; }

    .hero__diamond { display: none; }

    .stats__grid { grid-template-columns: repeat(2,1fr); }
    .stats__item:nth-child(2) { border-right: none; }
    .stats__item:nth-child(3) { border-top: 1px solid var(--border); }
    .stats__item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

    .steps__grid,
    .fdm__grid {
        grid-template-columns: 1fr;
    }
    .showcase__grid {
        grid-template-columns: 1fr;
    }

    /* Service card: full-width, natural height — no cropping */
    .service-card__img {
        width: 100%;
        aspect-ratio: auto;
        height: auto;
        margin-bottom: 20px;
    }
    .service-card__img img,
    .service-card__video {
        width: 100%;
        height: auto;
        object-fit: fill;
    }
    .fdm__grid { transition: none; }

    /* Always show all card content on touch/mobile */
    .sc-expand { grid-template-rows: 1fr; }
    .sc-expand--badge,
    .sc-expand--bottom { transition: none; }

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

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

    .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer__grid > :first-child { grid-column: 1 / -1; }
    .footer__grid > :nth-child(4) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .nav__container { padding: 0 20px; }
    .nav__links { display: none; }

    /* ── Nav ── */
    .nav__actions .btn { padding: 7px 13px; font-size: 12px; letter-spacing: 0.04em; }

    /* ── Hero ── */
    .hero__logo-mark { display: none; }
    .hero__content { padding: 40px 20px 56px; }

    /* ── Service cards ── */
    .fdm__grid { grid-template-columns: 1fr; }
    .service-card { padding: 20px 18px 24px; }
    .service-card__title { font-size: 28px; }
    .service-card__specs { grid-template-columns: repeat(3,1fr); }

    /* ── Section vertical rhythm ── */
    .steps, .fdm, .lines, .materials,
    .showcase, .testimonial, .quote-section { padding-top: 64px; padding-bottom: 64px; }
    .quote-cta { padding: 56px 0; }

    /* ── Stats ── */
    .stats__grid { grid-template-columns: repeat(2,1fr); }

    /* ── Lines / Materials ── */
    .lines__grid { grid-template-columns: repeat(2,1fr); }
    .materials__grid { grid-template-columns: repeat(2,1fr); }

    /* ── Footer ── */
    .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .nav__logo-text { display: none; }
}

/* ================================================
   CASE ARTICLE PAGE
   ================================================ */

/* ── Hero ── */
.case-hero {
    position: relative;
    height: 580px;
    margin-top: var(--nav-h);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.case-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.case-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.case-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.38) 55%, rgba(0,0,0,0.12) 100%);
}

.case-hero__content {
    position: relative;
    z-index: 2;
    padding: 0 0 56px;
    width: 100%;
}
.case-hero__content .container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.case-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}
.case-hero__back:hover { color: #fff; }
.case-hero__back svg { width: 14px; height: 14px; }

.case-hero__tag {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    align-self: flex-start;
}

.case-hero__title {
    font-size: clamp(30px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    max-width: 820px;
}

.case-hero__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.72);
    max-width: 640px;
    line-height: 1.6;
}

/* ── Article body ── */
.case-article {
    padding: 80px 0 120px;
}

.case-article__inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 48px;
}

.case-intro {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255,255,255,0.88);
    margin-bottom: 44px;
    border-left: 3px solid var(--orange);
    padding-left: 24px;
}

.case-p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.72);
    margin-bottom: 32px;
}

.case-h2 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 52px 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.case-h3 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 32px 0 12px;
}

.case-list {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.case-list li {
    font-size: 14px;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    padding-left: 20px;
    position: relative;
}
.case-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-size: 12px;
    top: 2px;
}

/* ── Highlights row ── */
.case-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin: 44px 0;
}

.case-highlight {
    background: var(--card-bg);
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.case-highlight__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-sec);
}

.case-highlight__value {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

/* ── Closing ── */
.case-closing {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,0.72);
    margin-top: 40px;
    padding: 28px 28px 26px;
    background: var(--card-bg);
    border-left: 3px solid var(--orange);
}

/* ── Case block (NFC sub-cases) ── */
.case-block {
    margin: 52px 0;
    padding: 36px 36px 32px;
    background: var(--card-bg);
    border-top: 2px solid var(--orange);
}

.case-block__tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.case-block__heading {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 16px;
}

.case-block__body {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

.case-block__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.case-block__stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 90px;
}

.case-block__stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-sec);
}

.case-block__stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

/* ── Gallery ── */
.case-gallery {
    padding: 0 0 80px;
    border-top: 1px solid var(--border);
}

.case-gallery .container {
    padding-top: 64px;
}

.case-gallery__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-sec);
    margin-bottom: 28px;
}

.case-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2px;
}

.case-gallery__item {
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}
.case-gallery__item--landscape {
    grid-column: span 2;
    aspect-ratio: 16/9;
}
.case-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}
.case-gallery__item:hover img { transform: scale(1.05); }

/* ── Videos ── */
.case-videos {
    padding: 64px 0;
    border-top: 1px solid var(--border);
}

.case-videos__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-sec);
    margin-bottom: 28px;
}

.case-videos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.case-video video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #000;
    display: block;
}

/* ── Case CTA ── */
.case-cta {
    padding: 80px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    text-align: center;
}

.case-cta__heading {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 16px;
}
.case-cta__heading span { color: var(--orange); }

.case-cta__desc {
    font-size: 15px;
    color: var(--text-sec);
    margin-bottom: 36px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

/* ── Lightbox ── */
.lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.93);
    align-items: center;
    justify-content: center;
}
.lb--open { display: flex; }

.lb__img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    opacity: 0;
    transition: opacity 0.22s ease;
    user-select: none;
    -webkit-user-drag: none;
}
.lb__img--loaded { opacity: 1; }

.lb__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s ease;
    z-index: 2;
}
.lb__close:hover { color: #fff; }

.lb__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
    z-index: 2;
}
.lb__nav:hover { background: rgba(255,255,255,0.18); }
.lb__nav--prev { left: 20px; }
.lb__nav--next { right: 20px; }

.lb__counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
    pointer-events: none;
}

/* ── Responsive case page ── */
@media (max-width: 900px) {
    .case-hero { height: 440px; }
    .case-article { padding: 64px 0 100px; }
    .case-article__inner { padding: 0 28px; }
    .case-block { padding: 28px 24px 24px; }
    .case-gallery__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 640px) {
    /* Hero */
    .case-hero { height: 320px; }
    .case-hero__content { padding: 0 0 28px; }
    .case-hero__title { font-size: clamp(22px, 7vw, 34px); }
    .case-hero__subtitle { font-size: 14px; }

    /* Article */
    .case-article { padding: 40px 0 72px; }
    .case-article__inner { padding: 0 20px; }
    .case-intro { font-size: 16px; padding-left: 16px; margin-bottom: 32px; }
    .case-h2 { font-size: 20px; margin: 36px 0 14px; }
    .case-h3 { font-size: 15px; margin: 24px 0 10px; }
    .case-p { font-size: 14px; margin-bottom: 24px; }

    /* Highlights */
    .case-highlights { grid-template-columns: repeat(2, 1fr); margin: 28px 0; }
    .case-highlight { padding: 16px; }
    .case-highlight__value { font-size: 15px; }

    /* Closing quote */
    .case-closing { padding: 20px 18px; font-size: 14px; }

    /* Case blocks */
    .case-block { padding: 20px 16px 18px; margin: 36px 0; }
    .case-block__heading { font-size: 17px; }
    .case-block__highlights { gap: 8px; }

    /* Gallery */
    .case-gallery .container { padding-top: 40px; }
    .case-gallery__grid { grid-template-columns: 1fr 1fr; gap: 2px; }
    .case-gallery__item { aspect-ratio: 4/3; }

    /* Videos */
    .case-videos { padding: 40px 0; }
    .case-videos__grid { grid-template-columns: 1fr; }

    /* CTA */
    .case-cta { padding: 52px 20px; }
    .case-cta__desc { font-size: 14px; }
}

/* ================================================
   THEME TOGGLE BUTTON
   ================================================ */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-sec);
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
    flex-shrink: 0;
}
.theme-toggle:hover {
    color: var(--text);
    border-color: rgba(232,64,16,0.5);
    background: rgba(232,64,16,0.06);
}
/* Sun shown in dark mode, moon in light mode */
.theme-toggle .tt-sun  { display: block; }
.theme-toggle .tt-moon { display: none; }
[data-theme="light"] .theme-toggle .tt-sun  { display: none; }
[data-theme="light"] .theme-toggle .tt-moon { display: block; }

/* ================================================
   LIGHT THEME
   ================================================ */

/* ── Variables ── */
[data-theme="light"] {
    --bg:         #f5f4f0;
    --card-bg:    #ffffff;
    --card-bg-2:  #eeede8;
    --border:     #dddcd5;
    --text:       #111111;
    --text-sec:   #66665e;
    --text-muted: #aaa9a2;
}

/* ── Nav ── */
[data-theme="light"] .nav {
    background: rgba(245,244,240,0.75);
    border-bottom-color: rgba(0,0,0,0.09);
}
[data-theme="light"] .nav--scrolled {
    background: rgba(245,244,240,0.92);
    border-bottom-color: rgba(0,0,0,0.09);
}
[data-theme="light"] .btn--ghost {
    color: #111;
    border-color: rgba(0,0,0,0.25);
}
[data-theme="light"] .btn--ghost:hover {
    border-color: rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.05);
}

/* Logo swap: dark theme shows SVG, light theme shows logo-light.svg */
.nav__logo-light { display: none; }
.nav__logo-mark svg { display: inline-block; }

[data-theme="light"] .nav__logo-light       { display: inline-block; }
[data-theme="light"] .nav__logo-mark svg    { display: none; }
[data-theme="light"] .nav__logo-light {
    height: 36px;
    width: auto;
}
[data-theme="light"] .nav--scrolled .nav__logo-light { height: 28px; }

[data-theme="light"] .nav__logo-text { color: #111; }
[data-theme="light"] .nav__links a      { color: #444440; }
[data-theme="light"] .nav__links a:hover,
[data-theme="light"] .nav__links a.active { color: #111; }
[data-theme="light"] .lang-btn          { color: #444440; border-color: #ccccc5; }
[data-theme="light"] .lang-btn.active   { color: #111; border-color: #111; }

/* ── Hero ── */
[data-theme="light"] .hero__bg img {
    filter: brightness(1.0) saturate(0.72);
}
[data-theme="light"] .hero__bg::after {
    background: linear-gradient(
        to right,
        rgba(245,244,240,0.95) 0%,
        rgba(245,244,240,0.80) 28%,
        rgba(245,244,240,0.38) 55%,
        transparent 72%
    );
}
/* Glow blobs: screen → multiply so they show on light bg */
[data-theme="light"] .hero::before {
    mix-blend-mode: multiply;
    opacity: 0.22;
}
[data-theme="light"] .hero .hero__bg::before {
    mix-blend-mode: multiply;
    opacity: 0.14;
}

/* ── Steps ── */
[data-theme="light"] .step-card:hover { background: var(--card-bg); }

/* ── Service cards ── */
[data-theme="light"] .service-card__img--placeholder { background: var(--card-bg-2) !important; }
[data-theme="light"] .service-card__img--metal       { background: #d5d4cc !important; }

/* ── Showcase ── */
[data-theme="light"] .showcase-card { background: var(--card-bg); }
[data-theme="light"] .showcase-card:hover {
    box-shadow: 0 8px 40px rgba(232,64,16,0.14), 0 2px 12px rgba(0,0,0,0.1);
}

/* ── Final CTA glow (on light bg, use multiply) ── */
[data-theme="light"] .final-cta::before {
    mix-blend-mode: multiply;
    opacity: 0.28;
}

/* ── Quote form ── */
[data-theme="light"] .qf-submit {
    background: #111;
    color: #fff;
}

/* ── Footer ── */
[data-theme="light"] .footer {
    background: #e8e7e0;
    border-top-color: #d5d4cc;
}
[data-theme="light"] .footer__bottom p,
[data-theme="light"] .footer__brand { color: #888880; }
[data-theme="light"] .footer__brand strong { color: #111; }

/* ── Case page — article body text ── */
[data-theme="light"] .case-intro              { color: rgba(0,0,0,0.82); }
[data-theme="light"] .case-p                  { color: rgba(0,0,0,0.65); }
[data-theme="light"] .case-h2                 { color: #111; }
[data-theme="light"] .case-h3                 { color: #111; }
[data-theme="light"] .case-list li            { color: rgba(0,0,0,0.65); }
[data-theme="light"] .case-closing            { color: rgba(0,0,0,0.65); border-left-color: var(--orange); }
[data-theme="light"] .case-block              { background: var(--card-bg); border-top-color: var(--orange); }
[data-theme="light"] .case-block__heading     { color: #111; }
[data-theme="light"] .case-block__body        { color: rgba(0,0,0,0.65); }
[data-theme="light"] .case-block__stat-value  { color: #111; }
[data-theme="light"] .case-highlights__label  { color: rgba(0,0,0,0.5); }
[data-theme="light"] .case-highlights__value  { color: #111; }
[data-theme="light"] .case-highlight__label   { color: rgba(0,0,0,0.5); }
[data-theme="light"] .case-highlight__value   { color: #111; }
[data-theme="light"] .case-cta__heading       { color: #111; }

/* ── Page transition overlay ── */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: var(--bg);
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-transition--hidden {
    transform: translateY(-100%);
    pointer-events: none;
}
.pt-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.pt-logo-mark {
    width: 64px !important;
    height: 64px !important;
}
.pt-logo-mark svg {
    width: 64px;
    height: 64px;
}
[data-theme="light"] .pt-logo-mark .nav__logo-light {
    height: 64px !important;
    width: auto;
}
.pt-logo {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
}

