:root {
    --primary: #171316;
    --primary-deep: #050405;
    --accent: #4a0718;
    --accent-bright: #6f1029;
    --accent-dark: #2b030d;
    --dark: #000000;
    --light: #f8f5f6;
    --paper: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f7f3f4;
    --muted: #686064;
    --text: #171316;
    --line: rgba(74, 7, 24, 0.14);
    --shadow: 0 24px 70px rgba(23, 19, 22, 0.14);
    --shadow-soft: 0 16px 45px rgba(23, 19, 22, 0.08);
    --radius: 8px;
    --transition: 260ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(circle at 10% 4%, rgba(74, 7, 24, 0.08), transparent 28%),
        var(--paper);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 3000;
    transform: translateY(-140%);
    background: var(--accent);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 12px 0;
    background:
        linear-gradient(180deg, rgba(5, 4, 5, 0.5), rgba(5, 4, 5, 0.2)),
        rgba(255, 255, 255, 0.04);
    color: white;
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
    transition: padding var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    padding: 8px 0;
    background:
        linear-gradient(180deg, rgba(5, 4, 5, 0.64), rgba(5, 4, 5, 0.36)),
        rgba(74, 7, 24, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.header-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 74px;
}

.header-container > .brand {
    position: absolute;
    left: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 0 0 auto;
}

.brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.brand-logo-header {
    height: clamp(46px, 5vw, 64px);
    max-width: min(310px, 30vw);
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

.brand-logo-footer {
    height: auto;
    width: min(100%, 190px);
    max-height: 150px;
}

.site-nav {
    width: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    flex-wrap: nowrap;
}

.site-nav li {
    min-width: 0;
}

.nav-link,
.dropdown-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
    transition: color var(--transition), transform var(--transition);
}

.nav-link::after,
.dropdown-menu a::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 5px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background:
        repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 12px),
        var(--accent);
    transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active,
.dropdown-menu a:hover {
    color: white;
}

.nav-link:hover::after,
.nav-link.active::after,
.dropdown-menu a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    position: absolute;
    top: 50%;
    right: 0;
    margin-left: 0;
    color: white;
    background: var(--accent);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(74, 7, 24, 0.28);
    transform: translateY(-50%);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(calc(-50% - 2px));
    background: var(--accent-bright);
}

.has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.has-dropdown .nav-link {
    white-space: nowrap;
}

.dropdown-toggle {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: -8px;
    border: 0;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    cursor: pointer;
    transition: transform var(--transition), color var(--transition);
}

.has-dropdown:hover .dropdown-toggle,
.has-dropdown.open .dropdown-toggle {
    color: white;
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 150px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px;
    background:
        linear-gradient(145deg, rgba(5, 4, 5, 0.68), rgba(74, 7, 24, 0.28)),
        rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.site-nav .dropdown-menu {
    display: grid;
    align-items: stretch;
    gap: 4px;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    width: 100%;
    white-space: nowrap;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: white;
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

section {
    position: relative;
    padding: 108px 0;
}

.section-alt {
    background:
        linear-gradient(180deg, rgba(248, 245, 246, 0.95), rgba(255, 255, 255, 0.98)),
        repeating-linear-gradient(135deg, rgba(74, 7, 24, 0.045) 0 2px, transparent 2px 16px);
}

.section-pattern::before {
    content: "";
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image:
        linear-gradient(30deg, transparent 45%, rgba(74, 7, 24, 0.68) 46%, rgba(74, 7, 24, 0.68) 48%, transparent 49%),
        linear-gradient(150deg, transparent 45%, rgba(255, 255, 255, 0.4) 46%, rgba(255, 255, 255, 0.4) 48%, transparent 49%);
    background-size: 70px 70px;
}

.hero {
    position: relative;
    min-height: max(100vh, 60.05vw);
    display: grid;
    align-items: center;
    padding: 150px 0 112px;
    color: white;
    overflow: hidden;
    background: #050405; /* fallback */
}

/* 🎬 VIDEO BACKGROUND */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;

    /* controls visibility */
    filter: brightness(0.42) contrast(1.1) saturate(1.05);
}

/* 🌑 DARK OVERLAY (makes text readable) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.65) 40%,
        rgba(0, 0, 0, 0.35) 100%
    );
}

/* 📝 KEEP TEXT ABOVE EVERYTHING */
.hero-container {
    position: relative;
    z-index: 2;
}

/* Optional: improve text readability */
.hero h1 {
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.85);
}

/* CTA spacing stays nice */
.hero-cta {
    margin-top: 28px;
}

.hero-cta .btn {
    font-weight: 400;
}

.color-stream {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.color-stream span {
    position: absolute;
    width: min(58vw, 760px);
    height: 2px;
    border-radius: 999px;
    opacity: 0.42;
    filter: blur(0.4px);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), rgba(74, 7, 24, 0.84), transparent);
    box-shadow: 0 0 26px rgba(74, 7, 24, 0.34);
    animation: colorStream 9s ease-in-out infinite;
}

.color-stream span:nth-child(1) {
    left: -18%;
    top: 24%;
}

.color-stream span:nth-child(2) {
    left: 24%;
    top: 52%;
    animation-delay: 1.8s;
    background: linear-gradient(90deg, transparent, rgba(74, 7, 24, 0.78), rgba(255, 255, 255, 0.58), transparent);
}

.color-stream span:nth-child(3) {
    left: -12%;
    bottom: 18%;
    animation-delay: 3.2s;
}

.color-stream span:nth-child(4) {
    right: -18%;
    top: 72%;
    animation-delay: 4.6s;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.54), rgba(74, 7, 24, 0.82), transparent);
}

.star-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.star-field span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.56), 0 0 34px rgba(74, 7, 24, 0.42);
    opacity: 0.55;
    animation: starDrift 7s ease-in-out infinite;
}

.star-field span::before,
.star-field span::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    transform: translate(-50%, -50%);
}

.star-field span::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.star-field span:nth-child(1) {
    left: 9%;
    top: 28%;
}

.star-field span:nth-child(2) {
    left: 18%;
    top: 74%;
    animation-delay: 1.1s;
}

.star-field span:nth-child(3) {
    left: 48%;
    top: 18%;
    animation-delay: 2.2s;
    background: rgba(74, 7, 24, 0.84);
}

.star-field span:nth-child(4) {
    right: 18%;
    top: 38%;
    animation-delay: 0.7s;
}

.star-field span:nth-child(5) {
    right: 10%;
    bottom: 22%;
    animation-delay: 1.8s;
    background: rgba(255, 255, 255, 0.78);
}

.star-field span:nth-child(6) {
    left: 58%;
    bottom: 16%;
    animation-delay: 2.8s;
}

.star-field span:nth-child(7) {
    left: 31%;
    top: 42%;
    width: 4px;
    height: 4px;
    animation-delay: 3.4s;
    animation-duration: 5.2s;
}

.star-field span:nth-child(8) {
    right: 34%;
    top: 68%;
    width: 5px;
    height: 5px;
    animation-delay: 4.1s;
    animation-duration: 7.2s;
    background: rgba(74, 7, 24, 0.74);
}

.star-field span:nth-child(9) {
    right: 6%;
    top: 13%;
    width: 4px;
    height: 4px;
    animation-delay: 2.4s;
    animation-duration: 4.8s;
}

.star-field span:nth-child(10) {
    left: 38%;
    bottom: 8%;
    width: 5px;
    height: 5px;
    animation-delay: 0.4s;
    animation-duration: 6.8s;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: clamp(0.98rem, 1.18vw, 1.12rem);
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.04;
    overflow-wrap: anywhere;
}

h1,
h2 {
    font-family: "Playfair Display", serif;
}

h1 {
    max-width: 820px;
    font-size: clamp(2.15rem, 4.1vw, 4rem);
    font-weight: 700;
}

.two-line-heading span {
    display: block;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    white-space: nowrap;
}

.page-hero .two-line-heading {
    max-width: 100%;
    margin-inline: auto;
}

.page-hero-work .two-line-heading {
    font-size: clamp(2.15rem, 4vw, 3.35rem);
}

.hero h1 {
    max-width: none;
    margin: 0 auto;
    color: white;
    font-size: clamp(2.1rem, 3.25vw, 3.55rem);
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.72);
}

.hero h1 span {
    display: block;
    white-space: nowrap;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 4.15rem);
    font-weight: 700;
}

h3 {
    color: var(--text);
    font-size: 1.18rem;
}

.section-kicker {
    margin-top: 18px;
    color: var(--accent);
    font-size: clamp(1.28rem, 2vw, 1.75rem);
    line-height: 1.22;
}

.hero-content p {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.96rem, 1.35vw, 1.08rem);
    line-height: 1.72;
}

.hero-content .hero-tagline {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
}

.hero-cta {
    margin-top: 28px;
}

.page-hero {
    min-height: 54vh;
    display: grid;
    align-items: end;
    padding: 154px 0 74px;
    color: white;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 22%, rgba(74, 7, 24, 0.46), transparent 30%),
        linear-gradient(135deg, #000000 0%, #0b0a0b 56%, #17040a 100%);
}

.page-hero-about {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.36)),
        url("../images/hero-about-us.jpg");
    background-position: center;
    background-size: cover;
}

.page-hero-work {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22)),
        url("../images/hero-our-work.jpg");
    background-position: center;
    background-size: cover;
}

.page-hero-craft {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.26)),
        url("../images/hero-our-craft.jpg");
    background-position: center;
    background-size: cover;
}

.page-hero-products {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2)),
        url("../images/hero-products.jpg");
    background-position: center;
    background-size: cover;
}

.page-hero-team {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22)),
        url("../images/hero-team.jpg");
    background-position: center;
    background-size: cover;
}

.page-hero-contact {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18)),
        url("../images/contact-telephone-booth.jpg");
    background-position: center;
    background-size: cover;
}

.page-hero .section-heading {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.page-hero .section-heading .eyebrow {
    justify-content: center;
}

.page-description,
.page-hero p {
    color: #ffffff;
}

.preview-section {
    background: var(--paper);
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: var(--radius);
    font-weight: 900;
    font-size: 0.92rem;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
    transition: transform 580ms ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn:hover::before {
    transform: translateX(110%);
}

.btn-primary {
    background: var(--accent);
    box-shadow: 0 18px 36px rgba(74, 7, 24, 0.28);
}

.btn-primary:hover {
    background: var(--accent-bright);
}

.btn-ghost {
    border: 1px solid rgba(74, 7, 24, 0.18);
    color: var(--accent);
    background: rgba(74, 7, 24, 0.06);
    backdrop-filter: blur(10px);
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    color: var(--accent);
    background: transparent;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.split-grid,
.product-container,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    align-items: center;
    justify-items: center;
    gap: 64px;
}

.section-copy {
    width: 100%;
    max-width: 720px;
    text-align: center;
}

.section-copy .eyebrow {
    justify-content: center;
}

.section-copy h1,
.section-copy h2,
.section-copy h3,
.section-copy p {
    margin-left: auto;
    margin-right: auto;
}

.section-copy p,
.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.page-hero .page-description {
    color: #ffffff;
}

.section-copy p {
    margin-top: 20px;
}

.section-heading {
    max-width: 790px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading .eyebrow {
    justify-content: center;
}

.craft-panel {
    display: grid;
    gap: 14px;
}

.about-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.about-image-card {
    position: relative;
    min-height: 220px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--surface-soft);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.about-image-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.22));
}

.about-image-card img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 520ms ease, filter 520ms ease;
}

.about-image-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 7, 24, 0.32);
    box-shadow: var(--shadow);
}

.about-image-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.05) contrast(1.04);
}

.why-work-section {
    width: min(100%, 1040px);
    margin: 72px auto 0;
    padding: clamp(34px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 245, 246, 0.9)),
        repeating-linear-gradient(135deg, rgba(74, 7, 24, 0.035) 0 2px, transparent 2px 18px);
    box-shadow: var(--shadow-soft);
}

.why-work-section .section-heading {
    margin-bottom: 32px;
}

.why-work-section .section-heading h2 {
    margin-bottom: 16px;
}

.why-work-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.why-work-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 16px;
    border: 1px solid rgba(74, 7, 24, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(20, 16, 18, 0.04);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.why-work-item:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 7, 24, 0.24);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.why-work-item i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: white;
    background: var(--primary);
    transition: transform var(--transition), background var(--transition);
}

.why-work-item:hover i {
    transform: scale(1.06);
    background: var(--accent);
}

.why-work-item span:last-child {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
}

.image-upload-placeholder {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: white;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(5, 5, 6, 0.96), rgba(23, 19, 22, 0.9)),
        repeating-linear-gradient(45deg, rgba(74, 7, 24, 0.48) 0 10px, transparent 10px 16px);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.image-upload-placeholder::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
}

.image-upload-placeholder:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 7, 24, 0.42);
    box-shadow: var(--shadow);
}

.image-upload-placeholder i,
.image-upload-placeholder span {
    position: relative;
    z-index: 1;
}

.image-upload-placeholder i {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 2rem;
}

.image-upload-placeholder span {
    display: block;
    font-weight: 900;
}

.large-placeholder {
    grid-column: 1 / -1;
    min-height: 280px;
}

.craft-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.craft-row:hover {
    transform: translateX(8px);
    border-color: rgba(74, 7, 24, 0.34);
    box-shadow: var(--shadow);
}

.craft-row > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    color: white;
    background: var(--primary);
    font-weight: 900;
}

.craft-row p,
.team-card p,
.service-card p,
.project-card p,
.site-footer p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.team-grid,
.services-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 420px));
    justify-content: center;
    gap: 22px;
}

.team-grid {
    grid-template-columns: repeat(3, 1fr);
}

.services-grid {
    grid-template-columns: repeat(3, minmax(260px, 320px));
    justify-content: center;
}

.services:not(.preview-section) .services-grid {
    grid-template-columns: repeat(3, minmax(260px, 320px));
    width: min(100%, 1040px);
    margin: 0 auto;
}

.services .service-card {
    text-align: center;
}

.services .service-icon {
    margin-inline: auto;
}

.projects-grid {
    grid-template-columns: repeat(2, minmax(320px, 420px));
    justify-content: center;
}

.project-showcase {
    display: grid;
    gap: 0;
    width: min(100%, 1040px);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.team-card,
.service-card,
.project-card,
.contact-form {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.team-card {
    width: 100%;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.detail-modal-trigger {
    width: 100%;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.card-link {
    display: block;
    color: inherit;
}

.card-link:focus-visible,
.team-card:focus-visible,
.detail-modal-trigger:focus-visible {
    outline: 3px solid rgba(74, 7, 24, 0.34);
    outline-offset: 4px;
}

.team-card::before,
.service-card::before,
.project-card::before,
.contact-form::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(135deg, rgba(74, 7, 24, 0.08), transparent 38%);
    transition: opacity var(--transition);
}

.team-card:hover,
.service-card:hover,
.project-card:hover {
    transform: translateY(-9px);
    border-color: rgba(74, 7, 24, 0.34);
    box-shadow: var(--shadow);
}

.team-card:hover::before,
.service-card:hover::before,
.project-card:hover::before,
.contact-form:focus-within::before {
    opacity: 1;
}

.team-card,
.service-card {
    padding: 28px;
}

.team-photo-wall {
    overflow: hidden;
    background: var(--surface);
}

.team-photo-wall img {
    width: 100%;
    height: auto;
}

.team-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    justify-items: center;
    gap: 24px;
    width: min(100%, 760px);
    margin: 0 auto;
}

.team-photo-placeholder {
    position: relative;
    display: block;
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    background:
        linear-gradient(135deg, rgba(74, 7, 24, 0.08), transparent 44%),
        #e8e8e8;
    box-shadow: none;
    transition: outline-color var(--transition);
}

.team-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-placeholder::after {
    content: attr(data-name);
    position: absolute;
    inset: auto 0 0;
    padding: 14px 12px;
    color: white;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition);
}

.team-photo-placeholder:hover::after,
.team-photo-placeholder:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.team-photo-placeholder:focus-visible {
    outline: 3px solid rgba(74, 7, 24, 0.34);
    outline-offset: 4px;
}

.modal-portrait {
    width: 150px;
    aspect-ratio: 1 / 1;
    margin-bottom: 22px;
    border-radius: 0;
    overflow: hidden;
    background: var(--surface-soft);
}

.modal-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-modal {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.68);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.team-modal.open {
    opacity: 1;
    visibility: visible;
}

.team-modal-panel {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100svh - 48px);
    overflow-y: auto;
    padding: clamp(28px, 5vw, 42px);
    border: 1px solid rgba(74, 7, 24, 0.18);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, #ffffff, rgba(248, 245, 246, 0.96)),
        repeating-linear-gradient(135deg, rgba(74, 7, 24, 0.045) 0 2px, transparent 2px 18px);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
    transform: translateY(18px) scale(0.98);
    transition: transform var(--transition);
}

.team-modal.open .team-modal-panel {
    transform: translateY(0) scale(1);
}

#teamModal .team-member-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    width: min(100%, 1120px);
    min-height: min(78vh, 620px);
    max-height: calc(100svh - 48px);
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    background: #f3f3f3;
}

#teamModal .team-modal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(44px, 7vw, 92px);
}

#teamModal .team-modal-info h2 {
    max-width: 360px;
    color: #0b3446;
    font-family: "Inter", sans-serif;
    font-size: clamp(2.35rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.12;
    text-transform: uppercase;
}

#teamModal .team-modal-info .eyebrow {
    margin: 18px 0 0;
    color: var(--text);
    font-size: 0.92rem;
    text-transform: none;
}

#teamModal .team-modal-info > p {
    max-width: 430px;
    margin-top: 34px;
    color: #2b3033;
    font-size: 0.96rem;
    line-height: 1.85;
}

#teamModal .modal-focus {
    max-width: 430px;
    margin-top: 24px;
}

#teamModal .team-modal-social {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-top: 34px;
    color: white;
    background: #4f585d;
    border-radius: 4px;
    font-size: 1.05rem;
    transition: transform var(--transition), background var(--transition);
}

#teamModal .team-modal-social:hover,
#teamModal .team-modal-social:focus-visible {
    transform: translateY(-3px);
    background: var(--accent);
}

#teamModal .modal-portrait {
    width: 100%;
    height: 100%;
    min-height: inherit;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
}

#teamModal .modal-portrait img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

#teamModal .modal-close {
    top: clamp(28px, 5vw, 54px);
    right: calc(50% + clamp(28px, 5vw, 72px));
    width: auto;
    height: 44px;
    padding: 0 16px;
    border-color: rgba(0, 0, 0, 0.16);
    border-radius: 999px;
    color: #111111;
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(74, 7, 24, 0.16);
    border-radius: 999px;
    color: var(--accent);
    background: white;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.88rem;
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

.modal-close i {
    font-size: 0.9rem;
}

.modal-close:hover {
    transform: translateY(-2px);
    color: white;
    background: var(--accent);
}

.modal-avatar {
    margin-bottom: 22px;
}

.team-modal h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.team-modal p {
    color: var(--muted);
}

.modal-detail-content {
    display: grid;
    gap: 14px;
}

.modal-focus {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
}

.modal-focus strong {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
}

.modal-focus ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.modal-focus li {
    line-height: 1.5;
}

.modal-action {
    margin-top: 24px;
}

.avatar-placeholder {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    color: white;
    background:
        linear-gradient(135deg, var(--primary), #08080a),
        repeating-linear-gradient(45deg, transparent 0 8px, rgba(74, 7, 24, 0.28) 8px 10px);
    font-size: 1.8rem;
}

.team-card span {
    display: inline-flex;
    margin: 9px 0 12px;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 900;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    color: white;
    background: var(--accent);
    border-radius: var(--radius);
    font-size: 1.25rem;
    box-shadow: 0 14px 28px rgba(74, 7, 24, 0.28);
}

.service-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--accent);
    font-weight: 900;
}

.service-card a i {
    color: var(--accent);
    transition: transform var(--transition);
}

.service-card a:hover i {
    transform: translateX(5px);
}

.project-card {
    overflow: hidden;
}

.project-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
    min-height: 340px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: inherit;
    text-align: left;
    box-shadow: none;
}

.project-feature:last-child {
    border-bottom: 0;
}

.project-feature.is-reversed .project-content {
    order: 2;
}

.project-feature.is-reversed .project-image-panel {
    order: 1;
}

.project-feature:hover {
    transform: none;
    box-shadow: none;
}

.project-feature .project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 340px;
    padding: clamp(28px, 4vw, 54px);
}

.project-feature .project-content h3 {
    max-width: 520px;
    font-size: clamp(1.45rem, 2.3vw, 2.15rem);
}

.project-feature .project-content p {
    max-width: 660px;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.project-actions .detail-modal-trigger {
    width: auto;
    text-align: center;
    color: #ffffff;
}

.project-actions .detail-modal-trigger:hover,
.project-actions .detail-modal-trigger:focus-visible {
    color: #ffffff;
}

.project-image-panel {
    min-height: 340px;
    overflow: hidden;
    background: var(--primary-deep);
}

.project-image-panel img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 620ms ease, filter 620ms ease;
}

.project-feature:hover .project-image-panel img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.04);
}

.project-image-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    min-height: 0;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 25% 20%, rgba(74, 7, 24, 0.74), transparent 30%),
        linear-gradient(135deg, var(--primary-deep), var(--primary));
}

.project-image-placeholder img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 520ms ease, filter 520ms ease;
}

.project-card:hover .project-image-placeholder img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.04);
}

.project-image-contain {
    padding: 18px;
    background:
        radial-gradient(circle at 18% 16%, rgba(74, 7, 24, 0.5), transparent 32%),
        linear-gradient(135deg, #111111, #2a2427);
}

.project-image-contain img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.project-card:hover .project-image-contain img {
    transform: scale(1.025);
}

.project-image-placeholder i {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.65rem;
}

.project-content {
    padding: 24px;
}

.project-content > span {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.project-content h3 {
    margin: 9px 0 12px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.about-team-cta {
    margin-top: 44px;
}

/* Products Page Background Fix */
.product-section {
    background: #ffffff;
    color: #171316;
    padding: 100px 0;
}

.product-section h2,
.product-section p,
.product-section .eyebrow {
    color: #171316;
}

/* Keep existing button colours */
.product-section .btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.product-section .btn-ghost {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
}
/* Force readable text on Products page */
.product-section .section-copy,
.product-section .section-copy h2,
.product-section .section-copy p,
.product-section .section-copy span {
    color: #171316 !important;
}
#homeschooling {
    margin-bottom: 34px;
}

.product-section .section-copy p {
    color: rgba(255, 255, 255, 0.72);
}

.product-section h2 {
    color: white;
}

.product-visual {
    min-height: 440px;
    display: grid;
    place-items: center;
}

.magazine-frame {
    position: relative;
    display: block;
    width: min(100%, 360px);
    aspect-ratio: 683 / 1024;
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: #000000;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.26);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.magazine-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease, filter 420ms ease;
}

.magazine-frame:hover {
    transform: translateY(-8px) rotate(-1deg);
    border-color: rgba(74, 7, 24, 0.58);
    box-shadow: 0 38px 95px rgba(0, 0, 0, 0.34);
}

.magazine-frame:hover img {
    transform: scale(1.035);
    filter: saturate(1.08) contrast(1.04);
}

.magazine-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.24));
}

.magazine-frame span {
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
}

.magazine-frame strong {
    display: block;
    max-width: 260px;
    margin-top: 24px;
    color: white;
    font-family: "Playfair Display", serif;
    font-size: 3.3rem;
    line-height: 0.96;
}

.magazine-frame small {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 230px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.magazine-lines {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 40px;
    display: grid;
    gap: 12px;
}

.magazine-lines span {
    display: block;
    height: 10px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.22);
}

.magazine-lines span:nth-child(2) {
    width: 78%;
}

.magazine-lines span:nth-child(3) {
    width: 54%;
}

.testimonials-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 8%, rgba(74, 7, 24, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff, #f8f5f6);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.testimonial-card {
    position: relative;
    display: grid;
    align-content: space-between;
    min-height: 340px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, #ffffff, rgba(248, 245, 246, 0.9)),
        repeating-linear-gradient(135deg, rgba(74, 7, 24, 0.045) 0 2px, transparent 2px 18px);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.testimonial-card::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(74, 7, 24, 0.08);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 7, 24, 0.3);
    box-shadow: var(--shadow);
}

.quote-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: var(--radius);
    color: white;
    background: var(--accent);
    box-shadow: 0 14px 28px rgba(74, 7, 24, 0.28);
}

.testimonial-card p {
    position: relative;
    z-index: 1;
    color: var(--text);
    font-size: 1.04rem;
    line-height: 1.78;
}

.testimonial-person {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.testimonial-person strong,
.testimonial-person span {
    display: block;
}

.testimonial-person strong {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 900;
}

.testimonial-person span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.45;
}

.contributors-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 42px;
}

.contributor-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: center;
    gap: 20px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.contributor-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 7, 24, 0.48);
    background: rgba(255, 255, 255, 0.12);
}

.contributor-card h3 {
    color: white;
}

.contributor-card p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 700;
}

.contributor-image-placeholder {
    display: grid;
    place-items: center;
    width: 112px;
    aspect-ratio: 1;
    border-radius: var(--radius);
    color: white;
    background:
        radial-gradient(circle at 28% 18%, rgba(74, 7, 24, 0.74), transparent 32%),
        linear-gradient(135deg, rgba(95, 15, 36, 0.9), rgba(5, 5, 6, 0.94));
    font-size: 2rem;
}

.partners-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.partner-card {
    display: grid;
    place-items: center;
    min-height: 116px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: var(--surface);
    font-weight: 900;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), color var(--transition), border-color var(--transition);
}

.partner-card:hover {
    transform: translateY(-6px);
    color: var(--accent);
    border-color: rgba(74, 7, 24, 0.3);
}

.partners-showcase-section {
    padding: 0;
    background: var(--surface);
}

.partners-showcase {
    display: grid;
    grid-template-columns: minmax(300px, 0.86fr) minmax(420px, 1fr);
    align-items: center;
    gap: 54px;
    min-height: 294px;
    padding-block: 46px;
}

.partners-copy h2 {
    font-family: "Inter", sans-serif;
    color: #000000;
    font-size: clamp(1.65rem, 3vw, 2.05rem);
    font-weight: 900;
    line-height: 1.15;
}

.partners-copy h2 span {
    color: #b30012;
}

.partners-copy p {
    max-width: 620px;
    margin-top: 22px;
    color: #000000;
    font-size: 1rem;
    line-height: 1.78;
}

.partners-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    align-items: center;
    gap: 28px 30px;
}

.partner-logo {
    display: grid;
    place-items: center;
    min-height: 64px;
    color: #1d1d1d;
    text-align: center;
    font-weight: 900;
    transition: transform var(--transition), filter var(--transition), opacity var(--transition);
}

.partner-logo:hover {
    transform: translateY(-4px);
    filter: saturate(1.15);
}

.partner-logo span,
.partner-logo small {
    display: block;
    line-height: 1;
}

.partner-logo small {
    margin-top: 3px;
    font-size: 0.68rem;
    font-weight: 900;
}

.partner-logo-taya {
    color: #78736f;
    letter-spacing: 0.08em;
    font-size: 1.04rem;
}

.partner-logo-taya small {
    color: #a81c2a;
    font-size: 1.18rem;
}

.partner-logo-civic {
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 8px;
    color: #4d9b57;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.partner-logo-civic i {
    color: #2f9f5b;
    font-size: 2rem;
}

.partner-logo-aws {
    color: #283247;
    font-size: 2rem;
    text-transform: lowercase;
}

.partner-logo-aws i {
    margin-top: -8px;
    color: #ff9900;
    font-size: 1.55rem;
    transform: rotate(8deg);
}

.partner-logo-riis {
    color: #191919;
    font-size: 2rem;
    font-style: italic;
}

.partner-logo-inx {
    color: #2525c9;
    font-size: 2rem;
    letter-spacing: 0.04em;
}

.partner-logo-inx small {
    color: #6b3fd1;
    font-style: italic;
}

.partner-logo-daily {
    color: #343434;
    font-family: "Playfair Display", serif;
    font-size: 0.92rem;
    font-weight: 700;
}

.partner-logo-mg {
    color: #111111;
    font-size: 1.6rem;
}

.partner-logo-mg span::first-letter {
    color: #b30012;
}

/* =========================
   CLIENTS SECTION
========================= */

.clients-section {
    overflow: hidden;
    background:
        linear-gradient(180deg, #ffffff, #f8f5f6);
    padding: 90px 0;
}

.clients-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.clients-slider::before,
.clients-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-slider::before {
    left: 0;
    background: linear-gradient(to right, #f8f5f6, transparent);
}

.clients-slider::after {
    right: 0;
    background: linear-gradient(to left, #f8f5f6, transparent);
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: scrollClients 28s linear infinite;
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 110px;
    padding: 24px;
    border: 1px solid rgba(74, 7, 24, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.client-logo:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 7, 24, 0.35);
    box-shadow: var(--shadow);
}

.client-logo img {
    max-width: 140px;
    max-height: 52px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition:
        filter var(--transition),
        opacity var(--transition),
        transform var(--transition);
}

.client-logo:hover img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.05);
}

@keyframes scrollClients {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.contact-grid {
    align-items: start;
    justify-items: stretch;
}

.contact-grid .contact-form {
    width: 100%;
}

.contact-points {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.contact-points a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
}

.contact-points i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    color: white;
    background: var(--accent);
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    color: var(--text);
    font-weight: 900;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(74, 7, 24, 0.18);
    border-radius: var(--radius);
    padding: 14px 15px;
    color: var(--text);
    background: rgba(74, 7, 24, 0.035);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-row textarea {
    resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(74, 7, 24, 0.14);
}

.form-row.invalid input,
.form-row.invalid select,
.form-row.invalid textarea {
    border-color: #c62828;
}

.error-message {
    display: none;
    color: #c62828;
    font-size: 0.8rem;
    font-weight: 800;
}

.form-row.invalid .error-message {
    display: block;
}

.form-status {
    min-height: 24px;
    color: var(--accent-dark);
    font-weight: 900;
}

.map-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: stretch;
    gap: 24px;
    margin-top: 56px;
}

.map-copy,
.map-frame {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.map-copy {
    padding: 28px;
    background:
        linear-gradient(145deg, #ffffff, rgba(248, 245, 246, 0.92)),
        repeating-linear-gradient(135deg, rgba(74, 7, 24, 0.045) 0 2px, transparent 2px 18px);
}

.map-copy h2 {
    font-size: clamp(1.65rem, 3vw, 2.55rem);
}

.map-frame {
    min-height: 390px;
    overflow: hidden;
    background: var(--primary-deep);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.map-frame:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 7, 24, 0.3);
    box-shadow: var(--shadow);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
    border: 0;
    filter: grayscale(18%) contrast(1.04);
}

.site-footer {
    color: rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(21, 21, 24, 0.98)),
        repeating-linear-gradient(45deg, rgba(74, 7, 24, 0.16) 0 2px, transparent 2px 18px);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) minmax(145px, 0.65fr) minmax(170px, 0.72fr);
    align-items: start;
    gap: clamp(18px, 3vw, 34px);
    padding: 34px 0 26px;
}

.footer-brand {
    color: white;
    margin-bottom: 10px;
    width: fit-content;
}

.site-footer h3 {
    margin-bottom: 8px;
    color: white;
    font-size: 0.92rem;
}

.site-footer a:not(.brand) {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-top: 6px;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
    transition: color var(--transition), transform var(--transition);
}

.site-footer a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-address {
    max-width: 230px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.55;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    font-size: 0.82rem;
}

.footer-bottom-inner p:last-child {
    color: var(--accent);
    font-weight: 900;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatSoft {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitPulse {
    0%,
    100% {
        opacity: 0.28;
        box-shadow: 0 0 0 rgba(74, 7, 24, 0);
    }
    50% {
        opacity: 0.62;
        box-shadow: 0 0 42px rgba(74, 7, 24, 0.28);
    }
}

@keyframes heroSignalSweep {
    0%,
    100% {
        transform: translateX(-8%);
        opacity: 0.18;
    }
    45% {
        opacity: 0.38;
    }
    60% {
        transform: translateX(8%);
        opacity: 0.26;
    }
}

@keyframes colorStream {
    0%,
    100% {
        transform: translateX(-12%) translateY(0) scaleX(0.7);
        opacity: 0;
    }
    18% {
        opacity: 0.75;
    }
    52% {
        transform: translateX(28%) translateY(-18px) scaleX(1);
        opacity: 0.5;
    }
    76% {
        opacity: 0.18;
    }
}

@keyframes patternGlide {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 120px 0, 180px 0, 0 120px;
    }
}

@keyframes starDrift {
    0%,
    100% {
        opacity: 0.35;
        transform: translateY(0) scale(0.8);
    }
    45% {
        opacity: 1;
        transform: translateY(-14px) scale(1.2);
    }
    70% {
        opacity: 0.58;
        transform: translateY(6px) scale(0.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
