/* =========================================================
   YSC BRAND PALETTE - change colours ONLY here
   ========================================================= */
:root {
    --black: #000000;
    --black-soft: #0b0b0b;
    --red: #e31212;
    --red-dark: #7a0606;
    --white: #ffffff;
    --white-dim: rgba(255, 255, 255, 0.65);
    --line: rgba(255, 255, 255, 0.18);

    --font: 'Inter', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font);
    overflow-x: hidden;
}

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

/* =========================================================
   HEADER / NAV
   ========================================================= */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 40px;
    transition: padding 0.3s, background 0.3s;
    animation: dropIn 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.nav.scrolled {
    padding: 14px 40px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    gap: 6px;
}

.brand-pill {
    padding: 9px 16px;
    font-weight: 900;
    font-size: 1rem;
    border-radius: 18px;
    transition: transform 0.3s;
}

.brand-white {
    background: var(--white);
    color: var(--black);
    border-bottom-left-radius: 2px;
}

.brand-red {
    background: var(--red);
    color: var(--white);
}

.brand:hover .brand-white { transform: rotate(-6deg) translateY(-2px); }
.brand:hover .brand-red   { transform: rotate(6deg) translateY(2px); }

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a,
.nav-cta {
    padding: 9px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}

.nav-links a:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-3px) rotate(-2deg);
}

.nav-cta {
    padding: 12px 28px;
    border-color: var(--white);
    font-size: 1.05rem;
}

.nav-cta:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-3px) scale(1.04);
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    overflow: hidden;
}

/* moving grid background */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridMove 12s linear infinite;
}

.hero-glow {
    position: absolute;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 18, 18, 0.28), transparent 65%);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
}

/* anything with data-depth follows the mouse, anything with data-drag can be dragged
   (script.js sets these variables) */
[data-depth] {
    --px: 0px;
    --py: 0px;
    --dx: 0px;
    --dy: 0px;
    translate: calc(var(--px) + var(--dx)) calc(var(--py) + var(--dy));
}

/* ---- big headline ---- */
.hero-title {
    position: relative;
    text-align: center;
    font-weight: 900;
    font-size: clamp(3.2rem, 14.5vw, 13rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    user-select: none;
}

.line {
    display: block;
    white-space: nowrap;
    color: var(--white);
    --extrude: var(--red-dark);
    text-shadow:
        0.012em 0.012em 0 var(--extrude),
        0.024em 0.024em 0 var(--extrude),
        0.036em 0.036em 0 var(--extrude),
        0.048em 0.048em 0 var(--extrude),
        0.060em 0.060em 0 var(--extrude),
        0.072em 0.072em 0 var(--extrude),
        0.084em 0.084em 0 var(--extrude);
}

.line-red {
    color: var(--red);
}

/* each letter (wrapped by script.js) */
.char {
    display: inline-block;
    animation: rise 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
    animation-delay: calc(var(--i) * 0.05s + 0.2s);
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.6);
}

.char:hover {
    transform: translateY(-0.09em) rotate(-5deg);
}

.hero-tagline {
    position: relative;
    margin-top: 34px;
    font-weight: 600;
    font-size: clamp(0.75rem, 1.4vw, 1.05rem);
    letter-spacing: 0.55em;
    color: var(--white-dim);
    animation: fadeUp 1s 1.4s both;
}

.hero-tagline i {
    color: var(--red);
    font-style: normal;
}

/* ---- floating glass cards ---- */
.card {
    position: absolute;
    z-index: 5;
    cursor: grab;
    touch-action: none;
    animation: popIn 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

.card:active {
    cursor: grabbing;
}

.card-1 { left: 20%; top: 40%; --tilt: -12deg; animation-delay: 1.1s; }
.card-2 { right: 21%; top: 30%; --tilt: 10deg; animation-delay: 1.3s; }

.card-inner {
    width: clamp(150px, 19vw, 270px);
    aspect-ratio: 1 / 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 15%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
    animation: float 6s ease-in-out infinite;
}

.card-2 .card-inner {
    animation-duration: 7s;
    animation-delay: -3s;
}

.card-icon {
    width: 42%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.card-icon-white {
    background: var(--white);
    color: var(--red);
    border-color: var(--red);
}

.card-icon svg {
    width: 52%;
}

.card strong {
    font-size: clamp(1rem, 1.8vw, 1.6rem);
    font-weight: 700;
}

.card small {
    font-size: clamp(0.75rem, 1.1vw, 1rem);
    color: var(--white-dim);
}

/* ---- hand-drawn arrows ---- */
.arrow {
    position: absolute;
    z-index: 4;
    stroke: var(--red);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    animation: wiggle 4s ease-in-out infinite;
}

.arrow path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 5s ease-in-out 1.6s infinite;
}

.arrow-1 { left: 12%; bottom: 14%; width: clamp(80px, 11vw, 160px); }
.arrow-2 { right: 12%; top: 26%; width: clamp(60px, 8vw, 115px); animation-delay: -2s; }

/* ---- rotating badge ---- */
.badge {
    position: absolute;
    z-index: 6;
    right: 16%;
    bottom: 9%;
    width: clamp(110px, 13vw, 180px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    box-shadow: 0 0 50px rgba(227, 18, 18, 0.6);
    transition: scale 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.6);
    animation: popIn 0.9s 1.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

.badge:hover {
    scale: 1.12;
}

.badge-ring {
    position: absolute;
    inset: 0;
    animation: spin 12s linear infinite;
}

.badge:hover .badge-ring {
    animation-duration: 4s;
}

.badge-ring text {
    fill: var(--white);
    font-size: 17.5px;
    font-weight: 900;
    letter-spacing: 2.2px;
}

.badge-arrow {
    width: 30%;
    transition: transform 0.3s;
}

.badge:hover .badge-arrow {
    transform: translate(4px, -4px);
}

/* =========================================================
   STORY - stacking scroll cards
   Each card sticks to the top; the next one slides up tilted
   and straightens as it covers it (script.js sets --p from 1 to 0)
   ========================================================= */
.story {
    position: relative;
    overflow-x: clip;
}

.story-card {
    position: sticky;
    top: 0;
    min-height: 100vh;
    --p: 0;
}

.story-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 110px 6vw 70px;
    transform-origin: top left;
    transform: translateX(calc(var(--p) * 7vw)) rotate(calc(var(--p) * 7deg));
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
    will-change: transform;
}

.panel-red   { background: var(--red);   color: var(--white); --accent: var(--white); --muted: rgba(255, 255, 255, 0.85); }
.panel-black { background: var(--black); color: var(--white); --accent: var(--red);   --muted: var(--white-dim); }
.panel-white { background: var(--white); color: var(--black); --accent: var(--red);   --muted: rgba(0, 0, 0, 0.7); }

.story-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 4vh;
}

.story-title {
    font-weight: 900;
    font-size: clamp(3rem, 11vw, 10rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.story-lead {
    max-width: 760px;
    margin-top: 5vh;
    font-size: clamp(1.1rem, 2vw, 1.7rem);
    line-height: 1.5;
    color: var(--muted);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 50px;
    margin-top: 6vh;
}

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

.story-grid h3 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 10px;
    padding-top: 14px;
    border-top: 3px solid var(--accent);
}

.story-grid p {
    line-height: 1.6;
    color: var(--muted);
}

.story-btn {
    align-self: flex-start;
    margin-top: 5vh;
    padding: 18px 44px;
    border-radius: 999px;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
    font-size: 1.15rem;
    box-shadow: 0 0 40px rgba(227, 18, 18, 0.5);
    transition: scale 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.6), background 0.3s, color 0.3s;
}

.story-btn:hover {
    scale: 1.08;
    background: var(--white);
    color: var(--black);
}

/* content fades up once its card has arrived */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.in .reveal {
    opacity: 1;
    transform: translateY(0);
}

.in .reveal:nth-child(2) { transition-delay: 0.1s; }
.in .reveal:nth-child(3) { transition-delay: 0.2s; }
.in .reveal:nth-child(4) { transition-delay: 0.3s; }
.in .story-grid .reveal:nth-child(1) { transition-delay: 0.25s; }
.in .story-grid .reveal:nth-child(2) { transition-delay: 0.35s; }
.in .story-grid .reveal:nth-child(3) { transition-delay: 0.45s; }
.in .story-grid .reveal:nth-child(4) { transition-delay: 0.55s; }

@media (max-width: 860px) {
    .story-panel {
        padding: 90px 22px 50px;
    }

    .story-title {
        font-size: 17vw;
    }

    .story-grid,
    .story-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
}

/* =========================================================
   GALLERY - the stage sticks while you scroll through photos
   (script.js sets the section height and the active photo)
   ========================================================= */
.gallery {
    position: relative;
    background: var(--black);
}

.gallery-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-bg,
.gallery-bg div,
.gallery-tint {
    position: absolute;
    inset: 0;
}

/* big background photo: black & white, then washed in brand red */
.gallery-bg div {
    background-size: cover;
    background-position: center;
    filter: grayscale(1) contrast(1.1) brightness(1.3);
    opacity: 0;
    scale: 1.15;
    transition: opacity 0.9s, scale 6s ease-out;
}

.gallery-bg div.active {
    opacity: 1;
    scale: 1;
}

.gallery-tint {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 45%, rgba(0, 0, 0, 0.7)),
        linear-gradient(var(--red), var(--red-dark));
    mix-blend-mode: multiply;
}

.gallery-label {
    position: absolute;
    top: 100px;
    left: 3vw;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
}

.gallery-info {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 6vw;
    padding: 0 3vw 22px;
}

.gallery-title {
    max-width: 4em;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.gallery-by,
.gallery-tags,
.gallery-count {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.gallery-tags {
    margin-left: auto;
    display: flex;
    gap: 5vw;
}

/* text slides up each time the photo changes */
.gallery-info.swap > * {
    animation: fadeUp 0.6s both;
}

.gallery-info.swap > :nth-child(2) { animation-delay: 0.08s; }
.gallery-info.swap > :nth-child(3) { animation-delay: 0.16s; }

/* ---- thumbnail strip ---- */
.thumbs {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    height: 21vw;
    width: max-content;
    transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.thumb {
    flex: none;
    width: 15vw;
    height: 10vw;
    border: 0;
    padding: 0;
    cursor: pointer;
    background-color: var(--black-soft);
    background-size: cover;
    background-position: center;
    filter: grayscale(0.7) brightness(0.75);
    transition: height 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2), filter 0.4s, translate 0.3s;
}

.thumb:hover {
    filter: none;
    translate: 0 -6px;
}

.thumb.active {
    height: 20vw;
    filter: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* ---- counter + progress bar ---- */
.gallery-progress {
    position: absolute;
    left: 3vw;
    bottom: 40px;
    width: min(300px, 60vw);
}

.gallery-count {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.gallery-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.gallery-bar span {
    display: block;
    height: 100%;
    background: var(--white);
    transition: width 0.6s, margin-left 0.6s;
}

@media (max-width: 860px) {
    .gallery-info {
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .gallery-tags {
        width: 100%;
        margin-left: 0;
        gap: 20px;
    }

    .thumbs { height: 52vw; }
    .thumb { width: 34vw; height: 24vw; }
    .thumb.active { height: 50vw; }
}

/* =========================================================
   TEAM - cards tilt towards the mouse (script.js sets --rx / --ry)
   ========================================================= */
.team {
    position: relative;
    background: var(--black);
    padding: 130px 5vw 120px;
    text-align: center;
}

.team-pill {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.team-title {
    margin: 22px 0 70px;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 26px;
    max-width: 1500px;
    margin: 0 auto;
}

.member-tilt {
    perspective: 800px;
}

.member-photo {
    --rx: 0deg;
    --ry: 0deg;
    aspect-ratio: 4 / 5;
    display: grid;
    place-items: end center;
    overflow: hidden;
    background-size: cover;
    background-position: center top;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.25s ease-out, border-radius 0.5s, scale 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.5);
}

.member:hover .member-photo {
    scale: 1.04;
}

.bg-red   { background-color: var(--red);   color: var(--red-dark); }
.bg-white { background-color: var(--white); color: #c9c9c9; }

.shape-two   { clip-path: url(#shapeTwo); }
.shape-three { clip-path: url(#shapeThree); }
.shape-arch  { border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.shape-oval  { border-radius: 50%; }

/* the two simple shapes swap when hovered */
.member:hover .shape-arch { border-radius: 50%; }
.member:hover .shape-oval { border-radius: 50% 50% 0 0 / 40% 40% 0 0; }

/* placeholder person icon */
.member-photo svg {
    width: 85%;
    transition: translate 0.4s;
}

.member:hover .member-photo svg {
    translate: 0 -4%;
}

/* team posters: zoomed in on the person (hides the poster text) and shown
   in black & white so the poster's own colours don't break the brand palette */
.has-photo {
    background-color: var(--black-soft);
    background-size: 125% auto;
    background-position: 50% 21%;
    filter: grayscale(1) contrast(1.08);
}

.shape-leaf { border-radius: 50% 0 50% 0 / 40% 0 40% 0; }
.member:hover .shape-leaf { border-radius: 0 50% 0 50% / 0 40% 0 40%; }

.member small {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--red);
}

.in .reveal:nth-child(5) { transition-delay: 0.4s; }

.member h3 {
    margin-top: 28px;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s;
}

.member:hover h3 {
    color: var(--red);
}

.member > p {
    margin-top: 8px;
    color: var(--white-dim);
}

/* "View Portfolio" link - its ::after stretches over the whole card so the card is clickable */
.member {
    position: relative;
}

.member-portfolio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white-dim);
    border-bottom: 1px solid var(--line);
    padding-bottom: 3px;
    transition: color 0.3s, border-color 0.3s;
}

.member-portfolio::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 18px;
}

.member-portfolio svg {
    width: 14px;
    transition: translate 0.3s;
}

.member:hover .member-portfolio {
    color: var(--red);
    border-color: var(--red);
}

.member:hover .member-portfolio svg {
    translate: 2px -2px;
}

.member-portfolio:focus-visible {
    outline: none;
    color: var(--red);
}

.member-portfolio:focus-visible::after {
    outline: 2px solid var(--red);
    outline-offset: 8px;
}

/* the member's own social icons sit above the stretched card link */
.member-links {
    position: relative;
    z-index: 2;
}

.member-links a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
    border-radius: 4px;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
}

.member-links a {
    width: 26px;
    transition: color 0.25s, transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.8);
}

.member-links a:hover {
    color: var(--red);
    transform: translateY(-5px) scale(1.2);
}

@media (max-width: 860px) {
    .team {
        padding: 90px 22px 80px;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 18px;
    }

    .member h3 {
        font-size: 1.15rem;
    }
}

/* =========================================================
   GET IN TOUCH
   ========================================================= */
.contact {
    background: var(--white);
    color: var(--black);
    padding: 130px 22px 120px;
}

.contact-head {
    text-align: center;
}

.contact-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    animation: bob 3s ease-in-out infinite;
}

.contact-icon svg {
    width: 26px;
}

.contact-title {
    margin-top: 20px;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.contact-sub {
    margin-top: 14px;
    font-size: 1.15rem;
    color: rgba(0, 0, 0, 0.6);
}

.contact-card {
    max-width: 680px;
    margin: 50px auto 0;
    padding: 44px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 22px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.4s;
}

.contact-card:focus-within {
    box-shadow: 0 30px 70px rgba(227, 18, 18, 0.22);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.field {
    display: block;
    margin-bottom: 22px;
}

.field span {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.25s;
}

.field:focus-within span {
    color: var(--red);
}

.field input,
.field textarea {
    width: 100%;
    padding: 15px 18px;
    font: inherit;
    font-size: 1.05rem;
    color: var(--black);
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    outline: none;
    resize: vertical;
    transition: border-color 0.25s, box-shadow 0.25s, translate 0.25s;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(227, 18, 18, 0.15);
    translate: 0 -2px;
}

.field [aria-invalid="true"] {
    border-color: var(--red);
}

.contact-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--black);
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s, scale 0.2s;
}

.contact-btn svg {
    width: 20px;
    transition: translate 0.3s;
}

.contact-btn:hover {
    background: var(--red);
}

.contact-btn:hover svg {
    translate: 8px 0;
}

.contact-btn:active {
    scale: 0.97;
}

.contact-status {
    margin-top: 16px;
    text-align: center;
    font-weight: 600;
    color: var(--red);
}

.contact-status:empty {
    display: none;
}

.contact-notes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
}

.contact-notes span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-notes svg {
    width: 18px;
}

.note-red {
    color: var(--red);
}

@media (max-width: 860px) {
    .contact {
        padding: 90px 16px 80px;
    }

    .contact-card {
        padding: 26px 20px;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@keyframes bob {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -8px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    position: relative;
    overflow: hidden;
    background: var(--black);
    padding-top: 70px;
}

.footer-glow {
    position: absolute;
    left: 50%;
    top: 30%;
    width: 900px;
    max-width: 100vw;
    aspect-ratio: 1;
    translate: -50% -30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 18, 18, 0.22), transparent 65%);
    animation: pulse 6s ease-in-out infinite;
    pointer-events: none;
}

/* ---- tilted moving strip ---- */
.marquee {
    position: relative;
    width: 110%;
    margin-left: -5%;
    padding: 20px 0;
    rotate: -2deg;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 70px;
    width: max-content;
    padding-right: 70px;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: var(--white-dim);
    animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    transition: color 0.3s, scale 0.3s;
}

.marquee-track span:hover {
    color: var(--white);
    scale: 1.15;
}

.marquee-track i {
    color: var(--red);
    font-style: normal;
    font-size: 1.4em;
    animation: spin 6s linear infinite;
}

/* ---- main call to action ---- */
.footer-main {
    position: relative;
    z-index: 2;
    padding: 110px 20px 60px;
    text-align: center;
}

.footer-title {
    display: inline-block;
    font-size: clamp(2.6rem, 9vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.05;
    background: linear-gradient(100deg, var(--white) 40%, var(--red) 50%, var(--white) 60%) 0 0 / 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 5s linear infinite;
    transition: scale 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.5), rotate 0.4s;
}

.footer-title:hover {
    scale: 1.05;
    rotate: -1.5deg;
}

.footer-buttons,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.footer-links {
    margin-top: 40px;
}

/* anything with data-magnet is pulled towards the mouse (script.js sets --mx / --my) */
[data-magnet] {
    --mx: 0px;
    --my: 0px;
    translate: var(--mx) var(--my);
}

.footer-btn,
.footer-links a,
.footer-credit,
.to-top {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    transition: translate 0.2s ease-out, background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 44px;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-btn svg {
    width: 28px;
    transition: rotate 0.4s, scale 0.4s;
}

.footer-btn:hover {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 50px rgba(227, 18, 18, 0.6);
}

.footer-btn:hover svg {
    rotate: -12deg;
    scale: 1.2;
}

.footer-links a {
    padding: 14px 30px;
    color: var(--white-dim);
}

.footer-links a:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}

/* ---- giant faded word ---- */
.footer-word {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.2em;
    text-align: center;
    font-size: 17.5vw;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    background: linear-gradient(rgba(255, 255, 255, 0.14), transparent 85%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    pointer-events: none;
    transition: translate 0.4s ease-out;
}

/* ---- bottom row ---- */
.footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 9vw 4vw 40px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--white-dim);
}

.footer-credit {
    padding: 16px 28px;
    background: rgba(0, 0, 0, 0.6);
}

.footer-credit strong {
    color: var(--white);
    letter-spacing: 0;
    font-size: 1.05rem;
}

.footer-credit:hover {
    border-color: var(--red);
}

.credit-link {
    transition: color 0.3s;
}

.credit-link:hover,
.credit-link:focus-visible {
    color: var(--red);
}

.credit-link:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
    border-radius: 4px;
}

.heart {
    display: inline-block;
    margin: 0 6px;
    color: var(--red);
    animation: beat 1.2s ease-in-out infinite;
}

.to-top {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: var(--white);
}

.to-top svg {
    width: 24px;
    animation: bob 1.6s ease-in-out infinite;
}

.to-top:hover {
    background: var(--red);
    border-color: var(--red);
}

@media (max-width: 860px) {
    .footer-main {
        padding: 80px 16px 40px;
    }

    .footer-btn {
        padding: 18px 28px;
        font-size: 1.05rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 16vw;
    }
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@keyframes shine {
    from { background-position: 100% 0; }
    to   { background-position: -66% 0; }
}

@keyframes beat {
    0%, 100% { scale: 1; }
    15%      { scale: 1.35; }
    30%      { scale: 1; }
    45%      { scale: 1.25; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(0.6em) rotate(8deg); }
    to   { opacity: 1; transform: translateY(0) rotate(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; scale: 0.3; }
    to   { opacity: 1; scale: 1; }
}

@keyframes float {
    0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
    50%      { transform: rotate(calc(var(--tilt) + 4deg)) translateY(-20px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50%      { transform: rotate(5deg) translateY(-10px); }
}

@keyframes draw {
    0%        { stroke-dashoffset: 400; }
    35%, 80%  { stroke-dashoffset: 0; }
    100%      { stroke-dashoffset: -400; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes gridMove {
    to { background-position: 80px 80px; }
}

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

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 860px) {
    .nav,
    .nav.scrolled {
        padding: 14px 18px;
    }

    .nav-cta {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        flex-direction: column;
        padding: 14px;
        background: var(--black-soft);
        border: 1px solid var(--line);
        border-radius: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        text-align: center;
        padding: 13px;
    }

    .hero-title {
        font-size: 15vw;
    }

    .card-1 { left: 4%; top: 58%; }
    .card-2 { right: 4%; top: 17%; }
    .card-inner { width: 120px; }

    .arrow-1 { left: 6%; bottom: 7%; }
    .arrow-2 { display: none; }

    .badge { right: 6%; bottom: 5%; }
    .hero-tagline { letter-spacing: 0.35em; }
}

/* people who switch off animations in their device settings */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
    }
    .arrow path { stroke-dashoffset: 0; animation: none; }
}
