@font-face {
    font-family: "DM Sans";
    src: url("../theme/fonts/DMSans-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("../theme/fonts/DMSans-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("../theme/fonts/DMSans-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Outfit";
    src: url("../theme/fonts/Outfit-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent: #ed6c30;
    --accent-dark: #d5591f;
    --ink: #0c0c0c;
    --muted: #666b73;
    --paper: #f6f3ee;
    --panel: #ffffff;
    --line: #e4e5e9;
    --night: #111214;
    --night-2: #1d1f22;
    --shadow: 0 24px 70px rgba(12, 12, 12, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "DM Sans", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 28px clamp(22px, 5vw, 70px);
    color: #fff;
    background: transparent;
    transition: padding .25s ease, background .25s ease, box-shadow .25s ease;
}
.header-inner {
    width: min(1580px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.site-header::after {
    content: "";
    position: absolute;
    left: clamp(22px, 5vw, 70px);
    right: clamp(22px, 5vw, 70px);
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, .13);
    transition: opacity .25s ease;
}
.site-header.is-scrolled {
    padding-top: 15px;
    padding-bottom: 15px;
    background: rgba(0, 0, 0, .92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
    backdrop-filter: blur(16px);
}
.site-header.is-scrolled::after { opacity: 0; }
.brand {
    display: flex;
    align-items: center;
    min-width: 110px;
}
.brand img {
    width: 112px;
    max-height: 46px;
    object-fit: contain;
    height: auto;
}
.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(16px, 2vw, 30px);
    font-weight: 700;
    color: #fff;
}
.main-nav a {
    position: relative;
    white-space: nowrap;
    transition: color .2s ease, transform .2s ease;
}
.main-nav > a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.main-nav > a:not(.nav-cta):hover::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--accent); transform: translateY(-1px); }
.nav-cta, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 4px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.nav-cta, .btn-primary { background: var(--accent); color: #fff; }
.nav-cta:hover, .btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn:hover { transform: translateY(-2px); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: #fff; }
.menu-toggle svg { width: 30px; stroke: currentColor; stroke-width: 2; }

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 170px clamp(22px, 6vw, 92px) 190px;
    color: #fff;
    background: var(--hero-image) center/cover fixed;
    overflow: hidden;
}
.hero-bg-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-bg-slideshow span {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
    animation: heroFade 25s infinite;
    animation-delay: calc(var(--slide-index) * 5s);
}
.hero-bg-slideshow span:first-child { opacity: 1; }
.hero > *:not(.hero-bg-slideshow) { position: relative; z-index: 1; }
@keyframes heroFade {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    35% { opacity: 1; transform: scale(1.08); }
    45% { opacity: 0; transform: scale(1.11); }
    100% { opacity: 0; transform: scale(1.11); }
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 78% 20%, rgba(237, 108, 48, .22), transparent 30%), linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.55), rgba(0,0,0,.16)); }
.hero-content { position: relative; max-width: 820px; }
.eyebrow { color: var(--accent); text-transform: uppercase; font-weight: 900; letter-spacing: 0; margin: 0 0 14px; }
h1, h2, h3 { font-family: "Outfit", sans-serif; letter-spacing: 0; margin: 0; }
.hero h1 { font-size: clamp(54px, 8.6vw, 124px); line-height: .9; max-width: 980px; }
.hero p:not(.eyebrow) { max-width: 620px; color: rgba(255,255,255,.84); font-size: 20px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.video-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease;
}
.video-link:hover { color: var(--accent); transform: translateY(-2px); }
.video-link span {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #fff;
    color: var(--accent);
}
.video-link svg { width: 20px; fill: currentColor; }
.hero-strip {
    position: absolute;
    left: clamp(22px, 6vw, 92px);
    right: clamp(22px, 6vw, 92px);
    bottom: 26px;
    overflow: hidden;
    border-radius: 8px;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.hero-strip-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: heroSlideMarquee 26s linear infinite;
    will-change: transform;
}
.hero-strip:hover .hero-strip-track { animation-play-state: paused; }
.hero-strip-track article {
    flex: 0 0 clamp(310px, 30vw, 545px);
}
.hero-strip article { min-height: 148px; background-size: cover; background-position: center; border-radius: 8px; overflow: hidden; display: flex; align-items: end; box-shadow: var(--shadow); }
.hero-strip a { width: 100%; height: 100%; display: flex; align-items: end; }
.hero-strip span { width: 100%; padding: 18px; color: #fff; font-weight: 900; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
@keyframes heroSlideMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 8px)); }
}

.partner-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: center;
    gap: clamp(22px, 4vw, 60px);
    padding: 56px clamp(22px, 6vw, 92px);
    background: #fff;
}
.partner-logo {
    display: grid;
    place-items: center;
    min-height: 70px;
}
.partner-logo img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    opacity: .72;
    filter: grayscale(1);
    transition: opacity .2s ease, filter .2s ease, transform .2s ease;
}
.partner-logo:hover img {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-2px);
}
.section, .split-section, .contact-grid, .faq-list, .content-page { padding: 108px clamp(22px, 6vw, 92px); }
.split-section { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(34px, 7vw, 96px); align-items: center; background: #fff; }
.about-media { position: relative; min-height: 420px; }
.about-media img { position: absolute; width: 58%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.about-media img:first-child { left: 0; top: 0; }
.about-media img:last-child { right: 0; bottom: 0; }
.mission-panel { margin-top: 38px; }
.mission-panel h3 { max-width: 760px; font-size: clamp(30px, 4vw, 58px); line-height: 1; }
.value-stack { display: grid; gap: 18px; margin-top: 28px; }
.value-panel { display: grid; grid-template-columns: .7fr 1fr; gap: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.value-panel strong { color: var(--accent); font: 800 clamp(42px, 6vw, 78px) "Outfit", sans-serif; line-height: .9; }
.value-panel p { margin: 0; }
.about-closing { font-family: "Outfit", sans-serif; color: var(--ink) !important; font-size: clamp(30px, 4vw, 58px) !important; line-height: 1.04 !important; margin-top: 36px; }
.split-copy h2, .section-head h2, .cta-section h2 { font-size: clamp(38px, 5.4vw, 78px); line-height: .98; }
.split-copy p, .section-head p, .content-page p { color: var(--muted); font-size: 18px; line-height: 1.75; }
.split-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.text-link { color: var(--accent); font-weight: 900; }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 48px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: clamp(28px, 3vw, 44px); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.service-card:hover, .news-card:hover, .project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card:hover { background: #fffaf6; }
.service-card img { width: 64px; margin-bottom: 28px; }
.service-card h3, .project-card h3, .news-card h3 { font-size: 25px; margin-bottom: 12px; }
.service-card p, .project-card p, .news-card p { color: var(--muted); line-height: 1.65; }
.dark-section { background: #0e0f10; color: #fff; }
.dark-section .section-head h2 { color: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 20px; overflow-x: auto; padding-bottom: 8px; }
.project-card { position: relative; background: var(--night-2); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; min-width: 250px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.project-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .45s ease; }
.project-card:hover img { transform: scale(1.06); }
.news-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease; }
.news-card:hover img { transform: scale(1.04); }
.project-card div, .news-card { padding: 22px; }
.project-card p { color: rgba(255,255,255,.68); }
.project-intro { max-width: 860px; color: rgba(255,255,255,.76); font-size: 22px; line-height: 1.55; margin: -20px 0 38px; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0 0 24px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.news-card time { display: block; margin: 20px 22px 10px; color: var(--accent); font-weight: 900; }
.news-card h3, .news-card p, .news-card .text-link { margin-left: 22px; margin-right: 22px; }
.news-card h3 a { transition: color .2s ease; }
.news-card h3 a:hover { color: var(--accent); }
.page-hero {
    position: relative;
    min-height: 62vh;
    display: grid;
    align-items: end;
    padding: 150px clamp(22px, 6vw, 92px) 80px;
    background: var(--page-hero-image) center/cover fixed;
    color: #fff;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    transform: scale(1.04);
    animation: pageHeroZoom 11s ease-out forwards;
}
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.44), rgba(0,0,0,.14)); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: .95; max-width: 980px; }
.page-hero p:last-child { max-width: 720px; color: rgba(255,255,255,.78); font-size: 19px; }
@keyframes pageHeroZoom {
    from { transform: scale(1.12); }
    to { transform: scale(1.03); }
}
.article-page { padding: 96px clamp(22px, 6vw, 92px); background: #fff; }
.article-page > img { width: min(1120px, 100%); max-height: 620px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); margin: 0 auto 46px; }
.article-body { width: min(860px, 100%); margin: 0 auto; color: var(--muted); font-size: 19px; line-height: 1.85; }
.article-body .lead { color: var(--ink); font-size: 24px; font-family: "Outfit", sans-serif; line-height: 1.35; }
.faq-list { max-width: 980px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; padding: 22px 26px; }
.faq-item summary { cursor: pointer; font: 800 22px "Outfit", sans-serif; }
.faq-item p { color: var(--muted); line-height: 1.7; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }
.contact-panel, .contact-form { background: #fff; border-radius: 8px; border: 1px solid var(--line); padding: 32px; }
.contact-form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; font-weight: 800; }
input, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 16px;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(237,108,48,.14); }
.flash { padding: 14px 16px; background: #fff1e9; border: 1px solid #ffd1bd; border-radius: 6px; font-weight: 800; }
.cta-section { padding: 92px clamp(22px, 6vw, 92px); background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-section h2 { max-width: 980px; font-size: clamp(38px, 5.4vw, 78px); }
.cta-section .btn-primary { background: #111; }
.site-footer { background: #e4e5e9; color: #0c0c0c; padding: 0 clamp(22px, 6vw, 92px); }
.footer-inner { width: min(1360px, 100%); margin: 0 auto; padding: 76px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(30px, 7vw, 120px); align-items: start; }
.site-footer h3 { font-size: clamp(24px, 3vw, 42px); line-height: 1.08; margin-bottom: 12px; }
.site-footer p { color: #555b62; line-height: 1.55; font-size: 18px; margin: 0; }
.footer-top-underline { height: 1px; background: #c5c9cf; margin-top: 62px; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 18px; color: #555b62; }
.footer-bottom a { color: #0c0c0c; font-weight: 800; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-color-scheme: dark) {
    body { background: #121315; color: #f4f1ec; }
    .section:not(.dark-section), .split-section, .contact-panel, .contact-form, .service-card, .news-card, .faq-item { background: #191b1f; border-color: #2c3035; }
    .partner-strip { background: #fff; }
    .site-header { color: #fff; }
    .site-header:not(.is-scrolled) { background: transparent; }
    .site-footer { background: #e4e5e9; color: #0c0c0c; }
}

@media (max-width: 1024px) {
    .site-header { padding: 16px 24px; }
    .header-inner { gap: 18px; }
    .main-nav { gap: 14px; font-size: 14px; }
    .nav-cta { padding: 0 16px; }
    .service-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-strip { grid-template-columns: repeat(4, 1fr); }
    .split-section, .contact-grid, .value-panel { grid-template-columns: 1fr; }
    .about-media { min-height: 520px; }
}
@media (max-width: 768px) {
    .menu-toggle { display: inline-flex; color: inherit; }
    .main-nav { position: fixed; inset: 76px 16px auto; max-height: calc(100vh - 96px); overflow-y: auto; display: none; flex-direction: column; align-items: stretch; background: #101112; color: #fff; padding: 20px; border-radius: 8px; box-shadow: var(--shadow); }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 12px 4px; }
    .main-nav > a:not(.nav-cta)::after { bottom: 4px; }
    .hero-strip { left: 16px; right: 16px; bottom: 18px; mask-image: none; }
    .hero-strip-track article { flex-basis: 76vw; }
    .hero-strip article { min-height: 118px; }
    .hero { min-height: 92vh; padding-top: 118px; padding-bottom: 180px; background-attachment: scroll; }
    .page-hero { min-height: 48vh; padding-top: 118px; padding-bottom: 54px; background-attachment: scroll; }
    .hero p:not(.eyebrow) { font-size: 17px; }
    .video-link { width: 100%; justify-content: center; }
    .project-grid { grid-template-columns: 1fr; overflow-x: visible; }
    .project-card { min-width: 0; }
    .service-grid, .news-grid, .footer-grid { grid-template-columns: 1fr; }
    .partner-strip { grid-template-columns: repeat(2, 1fr); padding-top: 36px; padding-bottom: 36px; }
    .section-head, .cta-section, .footer-bottom { align-items: start; flex-direction: column; }
    .section, .split-section, .contact-grid, .faq-list, .content-page { padding-top: 64px; padding-bottom: 64px; }
    .about-media { min-height: 380px; }
    .about-media img { width: 72%; }
}
@media (max-width: 375px) {
    .site-header { padding: 14px 16px; }
    .brand img { width: 86px; }
    .hero h1, .page-hero h1 { font-size: 38px; }
    .split-copy h2, .section-head h2, .cta-section h2 { font-size: 30px; }
    .nav-cta, .btn { width: 100%; }
    .contact-panel, .contact-form, .service-card { padding: 22px; }
}
