/* =========================================================
   HK Infoway — Pixel-perfect, responsive, performance-first
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
    /* Colors (sourced from Figma) */
    --c-bg: #FFFFFF;
    --c-text: #08081C;
    --c-muted: #707070;
    --c-muted-2: #7A7A7A;
    --c-dark: #08081C;
    --c-dark-2: #120719;
    --c-orange: #FF6129;
    --c-orange-soft: rgba(255, 97, 41, 0.12);
    --c-yellow: #FFB600;
    --c-pink: #FBF3F4;
    --c-pink-2: #FCF3F4;
    --c-pink-deep: #884E4E;
    --c-pink-soft: #B08F8F;
    --c-blue-soft: #C9E8FF;
    --c-purple-soft: #EBD4FF;
    --c-line: rgba(112, 112, 112, 0.18);

    /* Typography */
    --f-sans: 'Inter', 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --f-serif: 'Instrument Serif', 'Times New Roman', serif;

    /* Sizing */
    --container: 1280px;
    --gutter: 24px;
    --radius: 18px;
    --radius-lg: 28px;

    /* Motion */
    --ease: cubic-bezier(.2, .7, .2, 1);
    --t: .35s;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--f-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t) var(--ease);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

a:hover {
    color: #ffffff;
}

a:focus-visible {
    outline-color: var(--c-orange);
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

button:focus-visible {
    outline-color: var(--c-orange);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 .4em;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.01em;
}

p {
    margin: 0 0 1em;
}

em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--c-orange);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4.6vw, 3rem);
    font-weight: 500;
    text-align: center;
    line-height: 1.08;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.section-title em+em {
    margin-left: .25em;
}

.section-sub {
    text-align: center;
    color: var(--c-muted);
    max-width: 720px;
    margin: -32px auto 56px;
    font-size: 1.05rem;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    background: var(--c-dark);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    z-index: 9999;
}

.skip-link:focus {
    left: 8px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 500;
    font-size: .95rem;
    transition: all var(--t) var(--ease);
    line-height: 1;
    white-space: nowrap;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.btn:focus-visible {
    outline-color: var(--c-orange);
}

.btn-primary {
    background: var(--c-dark);
    color: #fff;
}

.btn-primary:hover {
    background: var(--c-orange);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(255, 97, 41, .5);
}

.btn-primary:focus-visible {
    outline-color: var(--c-orange);
}

.btn-large {
    padding: 18px 32px;
    font-size: 1rem;
}

.btn-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--c-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--c-orange-soft);
}

.ghost-dark-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border: 2px solid var(--c-line);
    border-radius: 999px;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all var(--t) var(--ease);
    outline: 2px solid transparent;
    outline-offset: 2px;
    background: var(--c-dark);
    color: #fff;
}

.ghost-dark-btn:hover {
    border-color: var(--c-orange);
    color: var(--c-orange);
    background: var(--c-orange-soft);
}

.ghost-dark-btn:focus-visible {
    outline-color: var(--c-orange);
}

.ghost-white-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border: 2px solid var(--c-line);
    border-radius: 999px;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all var(--t) var(--ease);
    outline: 2px solid transparent;
    outline-offset: 2px;
    background: #fff;
    color: #000;
}

.ghost-white-btn:hover {
    border-color: var(--c-orange);
    color: var(--c-orange);
    background: var(--c-orange-soft);
}

.ghost-white-btn:focus-visible {
    outline-color: var(--c-orange);
}


.ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border: 2px solid var(--c-line);
    border-radius: 999px;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 500;
    transition: all var(--t) var(--ease);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.ghost-btn:hover {
    border-color: var(--c-orange);
    color: var(--c-orange);
    background: var(--c-orange-soft);
}

.ghost-btn:focus-visible {
    outline-color: var(--c-orange);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background .3s var(--ease), backdrop-filter .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    transition: opacity var(--t) var(--ease);
}

.logo img {
    display: block;
    height: 44px;
    /* fixed visual height for the header */
    width: auto;
    transition: transform var(--t) var(--ease);
}

.logo:hover img {
    transform: scale(1.04);
}

.logo picture {
    line-height: 0;
}

.logo-light img {
    height: 80px;
}

@media (max-width: 600px) {
    .logo img {
        height: 36px;
    }

    .logo-light img {
        height: 48px;
    }
}

.primary-nav .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 6px;
    background: rgba(8, 8, 28, .04);
    border-radius: 999px;
    padding: 6px;
}

.primary-nav .nav-list a {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    transition: all var(--t) var(--ease);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.primary-nav .nav-list a:hover {
    background: #fff;
    color: var(--c-orange);
    box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .15);
}

.primary-nav .nav-list a:focus-visible {
    outline-color: var(--c-orange);
}

.cta-btn {
    padding: 15px 24px;
}

/* ---------- Nav dropdown ---------- */
.has-dropdown {
    position: relative;
}

.primary-nav .nav-list .nav-link.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
    transition: all var(--t) var(--ease);
}

.primary-nav .nav-list .nav-link.dropdown-toggle:hover,
.primary-nav .nav-list .nav-link.dropdown-toggle[aria-expanded="true"] {
    background: #fff;
    color: var(--c-orange);
    box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .15);
}

.nav-link .caret {
    transition: transform var(--t) var(--ease);
}

.nav-link[aria-expanded="true"] .caret {
    transform: rotate(180deg);
}

/* Dropdown panel — matches Figma 306×312, radius 22, 1px stroke */
.dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: 306px;
    background: #fff;
    border: 1px solid rgba(112, 112, 112, 0.2);
    border-radius: 22px;
    padding: 8px;
    box-shadow: 0 24px 60px -20px rgba(8, 8, 28, 0.18),
        0 4px 14px -4px rgba(8, 8, 28, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s var(--ease),
        transform .25s var(--ease),
        visibility 0s linear .25s;
    z-index: 110;
}

/* Invisible bridge so cursor can travel from toggle to panel without closing */
.dropdown::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.dropdown.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

/* Compact variant — Our Work dropdown (Figma 135×192) */
.dropdown-sm {
    width: 135px;
}

.dropdown-sm a {
    padding: 0 14px;
}

.dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown li+li {
    border-top: 1px solid rgba(112, 112, 112, 0.08);
}

.dropdown a {
    display: block;
    padding: 0 14px;
    line-height: 40px;
    /* matches Figma 40px line-height */
    font-size: 16px;
    color: var(--c-text);
    border-radius: 12px;
    transition: background var(--t), color var(--t), padding var(--t);
    outline: 2px solid transparent;
    outline-offset: -2px;
}

.dropdown a:hover,
.dropdown a:focus-visible {
    background: var(--c-pink);
    color: var(--c-orange);
    padding-left: 20px;
    outline-color: var(--c-orange);
}

/* Mobile submenu */
.m-has-sub .m-sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: background var(--t);
}

.m-has-sub .m-sub-toggle:hover {
    background: var(--c-pink);
}

.m-has-sub .m-sub-toggle svg {
    transition: transform var(--t);
}

.m-has-sub .m-sub-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.m-sub {
    list-style: none;
    padding: 0;
    margin: 0 0 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
}

.m-has-sub.open .m-sub {
    max-height: 500px;
}

.m-sub a {
    display: block;
    padding: 10px 16px;
    border-left: 2px solid var(--c-line);
    font-size: .95rem;
    color: var(--c-muted);
    border-radius: 0 12px 12px 0;
}

.m-sub a:hover {
    color: var(--c-orange);
    border-left-color: var(--c-orange);
    background: var(--c-pink);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(0, 0, 0, .04);
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: all var(--t) var(--ease);
}

.menu-toggle:focus-visible {
    outline-color: var(--c-orange);
    background: rgba(255, 97, 41, .1);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .2);
    transform: translateY(-150%);
    transition: transform .4s var(--ease);
    padding: 24px;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
}

.mobile-menu a:hover {
    background: var(--c-pink);
}

/* ---------- Hero (Banner-4 — pixel-mapped from Figma 1440×800) ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 140px 0 60px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 97, 41, .10), transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 232, 255, .4), transparent 60%),
        #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(112, 112, 112, .08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(112, 112, 112, .08) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 70%);
}

.hero-dot {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-orange);
    box-shadow:
        0 0 0 8px rgba(255, 97, 41, .18),
        0 0 0 24px rgba(255, 97, 41, .08);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 200px);
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -.025em;
}

.hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--c-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    /* centered, with breathing room before button */
}

/* ---- Centered CTA wrapper ---- */
.hero-cta-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 28px 8px 8px;
    background: var(--c-dark);
    color: #fff;
    border-radius: 999px;
    transition: all var(--t) var(--ease);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.hero-cta:hover {
    background: var(--c-orange);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -14px rgba(255, 97, 41, .5);
}

.hero-cta:focus-visible {
    outline-color: #fff;
}

.hero-cta-circle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--c-orange);
    border-radius: 50%;
    color: #fff;
    transition: transform var(--t) var(--ease), background var(--t);
}

.hero-cta:hover .hero-cta-circle {
    transform: rotate(-45deg);
    background: #fff;
    color: var(--c-orange);
}

/* Scroll indicator pinned to bottom-right (Figma: x=1160, y=741 in 1440×800 frame ≈ 80% across, 7% up from bottom) */
.hero-scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 32px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--c-muted);
    font-size: .72rem;
    letter-spacing: .25em;
    font-weight: 500;
    text-transform: uppercase;
}

.hero-scroll-line {
    display: inline-block;
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--c-muted));
    animation: scroll-line 2s var(--ease) infinite;
    transform-origin: left;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50% {
        transform: scaleY(.4);
    }
}

@keyframes scroll-line {

    0%,
    100% {
        transform: scaleX(1);
        opacity: 1;
    }

    50% {
        transform: scaleX(.4);
        opacity: .5;
    }
}

/* ---------- Services (Figma Frame 11 — dark, divider-grid) ---------- */
.services {
    background: var(--c-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.services .section-title {
    color: #fff;
    margin-bottom: 96px;
}

.services .section-title em {
    color: var(--c-orange);
    font-family: var(--f-serif);
    font-style: italic;
}

/* Decorative diamond shapes from Figma (Group 87 / Rectangle decorations) */
/* .services-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 5% 35%, rgba(255,255,255,0.04) 0%, transparent 12%),
        radial-gradient(circle at 95% 35%, rgba(255,255,255,0.04) 0%, transparent 12%);
} */

.services-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.deco-diamond {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.082);
    transform: rotate(45deg);
}

/* Far left — half cut off */
.deco-diamond:nth-child(1) {
    top: 70px;
    left: -100px;
    transform: rotate(45deg);
}

/* Left — fully visible */
.deco-diamond:nth-child(2) {
    top: 95px;
    left: 200px;
    transform: rotate(45deg);
    width: 150px;
    height: 150px;
}

/* Right — fully visible */
.deco-diamond:nth-child(3) {
    /* top: -60px;
  right: 80px;
  transform: rotate(45deg); */
    top: 95px;
    right: 200px;
    transform: rotate(45deg);
    width: 150px;
    height: 150px;
}

/* Far right — half cut off */
.deco-diamond:nth-child(4) {
    /* top: -60px;
  right: -100px;
  transform: rotate(45deg); */
    top: 70px;
    right: -100px;
    transform: rotate(45deg);
}

.service-grid {
    display: grid;
    /* 6 columns so each card spans 2 — lets the final row of 2 cards center */
    grid-template-columns: repeat(6, 1fr);
    /* Two thin vertical lines dividing 3 columns + bottom row line */
    position: relative;
    /* border-top: 1px solid rgba(112, 112, 112, 0.4);
    border-bottom: 1px solid rgba(112, 112, 112, 0.4); */
}

.service-card {
    grid-column: span 2;
    padding: 60px 36px;
    text-align: center;
    transition: background .4s var(--ease);
    position: relative;
    /* Vertical dividers between columns */
    border-right: 1px solid rgba(112, 112, 112, 0.4);
}

.service-card:nth-child(3n) {
    border-right: 0;
}

/* Stretched link — makes the whole card clickable to the service page */
.service-card .service-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
}

/* Final row: AI Development + Hire Developers centered across the grid */
.service-card:nth-child(7) {
    grid-column: 2 / span 2;
}

.service-card:nth-child(8) {
    grid-column: 4 / span 2;
    border-right: 0;
}

/* Horizontal divider after row 1 (cards 1, 2, 3) */
.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(3) {
    border-bottom: 1px solid rgba(112, 112, 112, 0.4);
}

/* Horizontal divider after row 2 */
.service-card:nth-child(4),
.service-card:nth-child(5),
.service-card:nth-child(6) {
    border-bottom: 1px solid rgba(112, 112, 112, 0.4);
}

/* Hire Developers — centered in row 3 spanning all 3 columns,
   inner content max-width keeps title/copy compact like Figma */
.service-card-wide {
    grid-column: 1 / -1;
    border-right: 0;
}

.service-card-wide>* {
    max-width: 320px;
    margin-inline: auto;
}

.service-card-wide .service-icon {
    margin-inline: auto;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.service-card:hover .service-icon img {
    transform: translateY(-4px) scale(1.05);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
    margin-bottom: 26px;
}

.service-icon img {
    height: 100%;
    width: auto;
    display: block;
    transition: transform .4s var(--ease);
}

.service-card h3 {
    font-size: 1.625rem;
    /* 26px - Figma */
    font-weight: 500;
    line-height: 1.08;
    margin-bottom: 14px;
    color: #fff;
}

.service-card p {
    color: #707070;
    /* Figma text-2 */
    font-size: 1.125rem;
    /* 18px - Figma */
    line-height: 1.5;
    margin: 0 auto;
    max-width: 300px;
}

/* ---------- POS Solutions (Figma node 523:3419 — 1200×626 group) ---------- */
.pos-section {
    background: #fff;
    padding: 100px 0 0;
}

.pos-grid {
    /* Figma: 3 cards × 384 + 2 gaps × 24 = 1200 */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pos-card {
    /* background: rgba(112, 112, 112, 0.04); */
    /* Figma fill_B82RG6 */
    border-radius: 24px;
    /* Figma 24px */
    
    /* Figma exact card ratio */
    padding: 0 26px 44px;
    /* description: 384 - 2×26 = 332 wide */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: background-color var(--t) var(--ease),
        transform var(--t) var(--ease),
        box-shadow var(--t) var(--ease);
    position: relative;
    overflow: hidden;
}

/* .pos-card:hover {
    background: rgba(255, 97, 41, 0.05);
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -18px rgba(8, 8, 28, 0.15);
} */

/* Numbered badge — 100×100 circle (Figma layout_HTC8WX) centered ~40% down */
.pos-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--c-dark);
    color: #fff;
    display: grid;
    place-items: center;
    margin-top: 40%;
    /* Figma y=194 in 480 ≈ 40.4% */
    margin-bottom: 28px;
    box-shadow: 0 18px 30px -12px rgba(8, 8, 28, 0.25);
    position: relative;
    transition: background-color var(--t) var(--ease),
        transform var(--t) var(--ease);
}

.pos-icon {
    width: 90px;
    height: 90px;
    margin-top: 40%;
    margin-bottom: 20px;
}

.pos-badge::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.pos-badge span {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 44px;
    font-weight: 400;
    line-height: 1;
    color: var(--c-orange);
}

.pos-card:hover .pos-badge {
    background: var(--c-orange);
    transform: scale(1.05) rotate(-4deg);
}

.pos-card:hover .pos-badge span {
    color: #fff;
}

.pos-card h3 {
    font-size: 1.525rem;
    /* 26px - Figma style_UVPESI */
    font-weight: 500;
    line-height: 1.08;
    color: var(--c-text);
    margin: 0 0 12px;
}

.pos-card p {
    font-size: 1.025rem;
    /* 18px - Figma style_GWF25Z */
    line-height: 1.5;
    color: #707070;
    /* Figma text-2 */
    margin: 0;
    max-width: 332px;
}

/* ---------- Process Section ---------- */

.process {
    /* padding: 80px 0 100px; */
    /* background: var(--c-pink-2) */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ── Header ── */
.process-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 35px;
}

.process-header h2 {
    font-size: clamp(2rem, 4.6vw, 3rem);
    font-weight: 500;
    line-height: 1.08;
}

.process-header p {
    color: var(--c-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ── Divider ── */
.process-divider {
    border: none;
    border-top: 1px solid #7a7a7a4f;
    margin-bottom: 56px;
}

/* ── Body grid ── */
.process-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ── Steps list ── */
.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.step-item:hover {
    background: #f9f9fb;
}

.steps-list {
    margin: 0;
    padding: 0;
}

.step-item.active {
    background: #fff5f0;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-dark);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.step-item.active .step-num {
    background: var(--c-orange);
}

.step-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--c-muted);
    transition: color 0.2s;
}

.step-item.active .step-label {
    color: var(--c-orange);
    font-weight: 600;
}

/* ── Right panel ── */
.process-panel {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.panel-image {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.35s ease;
}

/* SVG placeholder illustration */
.panel-image .illustration {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s ease;
}

.panel-content {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.panel-content.fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.panel-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 12px;
}

.panel-content p {
    color: var(--c-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }

    .process-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-header h2 {
        font-size: 2rem;
    }

    .process-body {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .panel-image {
        height: 240px;
    }
}

@media (max-width: 560px) {
    .steps-list {
        grid-template-columns: 1fr;
    }
}

/* ---------- Work / Portfolio ---------- */
.work {
    background: #fff;
}

.work-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 56px;
}

.work-head .section-title {
    text-align: left;
    margin: 0;
}

.work-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.work-card {
    background: var(--c-pink);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--t) var(--ease);
}

.work-link {
    display: block;
    color: inherit;
    text-decoration: none;
    outline: 2px solid transparent;
    outline-offset: -2px;
    border-radius: var(--radius-lg);
}

.work-link:focus-visible {
    outline-color: var(--c-orange);
}

.work-card:hover {
    transform: translateY(-6px);
}

.work-card:hover .work-link {
    color: var(--c-orange);
}

.work-card-large {
    grid-row: span 2;
}

.work-thumb {
    aspect-ratio: 4 / 3;
    background: var(--c-pink-soft);
    position: relative;
    overflow: hidden;
}

.work-card-large .work-thumb {
    aspect-ratio: 4 / 5;
}

.work-thumb-1 {
    background: linear-gradient(135deg, #884E4E, #B08F8F);
    display: grid;
    place-items: center;
}

.work-thumb-2 {
    background: linear-gradient(135deg, #EBD4FF, #C9E8FF);
}

.work-thumb-3 {
    background: linear-gradient(135deg, #FFB600, #FF6129);
}

.work-thumb-4 {
    background: linear-gradient(135deg, #08081C, #120719);
}

.work-badge {
    color: #fff;
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 2.5rem;
    letter-spacing: .02em;
}

.work-meta {
    padding: 22px 26px;
}

.work-meta h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.work-meta p {
    color: var(--c-muted);
    font-size: .9rem;
    margin: 0;
}

/* ---------- Insights ---------- */
.insights {
    background: var(--c-dark);
    color: #fff;
}

.insights-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 56px;
}

.insights-head .section-title {
    text-align: left;
    margin: 0;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.insight-card {
    transition: transform var(--t) var(--ease);
}

.insight-link {
    display: block;
    color: inherit;
    text-decoration: none;
    outline: 2px solid transparent;
    outline-offset: -2px;
    border-radius: var(--radius);
}

.insight-link:focus-visible {
    outline-color: var(--c-orange);
}

.insight-card:hover {
    transform: translateY(-4px);
}

.insight-card:hover .insight-link h3 {
    color: var(--c-orange);
}

.insight-thumb {
    aspect-ratio: 960/504;
    border-radius: var(--radius);
    margin-bottom: 18px;
    overflow: hidden;
}

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

.insight-thumb-1 {
    background: linear-gradient(135deg, #C9E8FF, #EBD4FF);
}

.insight-thumb-2 {
    background: linear-gradient(135deg, #FBF3F4, #B08F8F);
}

.insight-thumb-3 {
    background: linear-gradient(135deg, #FFB600, #FF6129);
}

.insight-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--c-pink);
    color: var(--c-pink-deep);
    border-radius: 999px;
    font-size: .75rem;
    margin-bottom: 10px;
}

.insight-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.insight-card time {
    color: var(--c-muted);
    font-size: .82rem;
}

/* ---------- Team ---------- */
.team {
    background: #fff;
}

/* ---- Header ---- */
.team-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 64px;
}

.team-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-orange);
    margin-bottom: 16px;
}

.team .section-title {
    text-align: left;
    margin: 0;
}

.team-copy-right {
    padding-bottom: 6px;
}

.team-copy-right p {
    color: var(--c-muted);
    margin: 0 0 24px;
    max-width: 460px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ---- Leadership grid ---- */
.leaders {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 88px;
}

.leader-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--c-pink);
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.leader-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -20px rgba(8, 8, 28, .28);
}

.leader-photo {
    position: relative;
    aspect-ratio: 3 / 3.6;
    overflow: hidden;
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .6s var(--ease);
}

.leader-card:hover .leader-photo img {
    transform: scale(1.05);
}

.leader-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 46px 20px 18px;
    background: linear-gradient(to top, rgba(8, 8, 28, .82) 0%, rgba(8, 8, 28, .5) 55%, rgba(8, 8, 28, 0) 100%);
    color: #fff;
}

.leader-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.leader-name a {
    color: inherit;
    text-decoration: none;
}

.leader-name a:hover {
    text-decoration: underline;
}

.leader-role {
    font-size: .85rem;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.leader-role::before {
    content: "";
    width: 16px;
    height: 2px;
    background: var(--c-orange);
    border-radius: 2px;
    flex: none;
}

/* Abbreviated role (C.E.O. / C.T.O.) only shows on small screens */
.role-abbr {
    display: none;
}

/* ---- Wider team: rotating diamond mosaic ----
   The same diamond look at every breakpoint: a column-flowing grid of
   45deg-rotated photo tiles that interlock like a checkerboard, scrolling
   right-to-left as a seamless marquee (JS clones the set + drives the loop).
   Diamond size (--d) and row count (--rows) are the only responsive dials. */
.team-crew-wrap {
    border-top: 1px solid var(--c-line);
    padding-top: 44px;
}

.team-crew-hint {
    font-size: .95rem;
    color: var(--c-text);
    font-weight: 500;
    margin: 0 0 28px;
}

.team-crew-hint span {
    color: var(--c-muted);
    font-weight: 400;
}

.team-crew {
    --rows: 3;
    --d: 116px;                        /* diamond square side */
    --diag: calc(var(--d) * 1.4142);  /* on-screen diamond width/height */
    overflow: hidden;                 /* clip the left/right edge diamonds */
    /* extra room below for the designation label that pops up on hover */
    padding: calc(var(--diag) / 4 + 10px) 0 calc(var(--diag) / 4 + 40px);
}

/* Wrappers dissolve until JS turns the track into a real animated flex row.
   .crew-set is always the grid that lays the diamonds out. */
.crew-track {
    display: contents;
}

.crew-set {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(var(--rows), calc(var(--diag) / 2));
    grid-auto-columns: var(--diag);
    place-items: center;
    width: max-content;
}

/* The seamless loop: two identical sets sit in the track, so shifting by
   exactly one set width (px, set by JS) lands the next set perfectly over. */
@keyframes crew-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--crew-shift, 50%))); }
}

/* Upright wrapper — holds the rotated photo and the label below it */
.crew-card {
    position: relative;
    width: var(--d);
    height: var(--d);
    cursor: pointer;
}

/* The middle grid row is nudged half a diamond so the tiles interlock.
   Column-flow + 3 rows means the middle row is every 3rd card from #2. */
.crew-set > .crew-card:nth-child(3n + 2) {
    transform: translateX(calc(var(--diag) / 2));
}

/* The rotated photo tile itself */
.crew-diamond {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--c-pink);
    box-shadow: 0 10px 30px -14px rgba(8, 8, 28, .35);
    border: 3px solid #fff;
    transform: rotate(45deg);          /* tile → diamond */
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.crew-diamond img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: grayscale(1) contrast(.98);
    /* counter-rotate to upright, scale to cover the diamond's corners */
    transform: rotate(-45deg) scale(1.42);
    transition: filter .45s var(--ease);
}

/* Designation label — upright pill tucked just under the diamond's tip */
.crew-role {
    position: absolute;
    top: calc(50% + var(--diag) / 2 + 8px);
    left: 50%;
    transform: translate(-50%, 4px);
    z-index: 6;
    white-space: nowrap;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--c-dark, #08081c);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}

/* Hover / focus / tap: lift the tile bigger, go colour, reveal the label */
.crew-card:hover,
.crew-card:focus-visible,
.crew-card.is-active {
    z-index: 5;
}

.crew-card:hover .crew-diamond,
.crew-card:focus-visible .crew-diamond,
.crew-card.is-active .crew-diamond {
    transform: rotate(45deg) scale(1.16);
    box-shadow: 0 26px 50px -18px rgba(8, 8, 28, .5);
}

.crew-card:hover .crew-diamond img,
.crew-card:focus-visible .crew-diamond img,
.crew-card.is-active .crew-diamond img {
    filter: grayscale(0) contrast(1);
}

.crew-card:hover .crew-role,
.crew-card:focus-visible .crew-role,
.crew-card.is-active .crew-role {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.crew-card:focus-visible .crew-diamond {
    outline: 2px solid var(--c-accent, #da6838);
    outline-offset: 3px;
}

/* Pause the auto-scroll while a pointer is over it, so labels are readable */
@media (hover: hover) {
    .team-crew:hover .crew-track.is-marquee {
        animation-play-state: paused;
    }
}

/* ---------- CTA / Contact ---------- */
.cta {
    background: #fff;
    padding: 80px 0 100px;
}

.cta-card {
    background: var(--c-dark);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 0% 50%, rgba(255, 97, 41, .25), transparent 60%),
        radial-gradient(ellipse 60% 80% at 100% 50%, rgba(255, 182, 0, .18), transparent 60%);
    pointer-events: none;
}

.cta-card>* {
    position: relative;
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 32px;
    line-height: 1.15;
}

.cta-card .btn-primary {
    background: #fff;
    color: var(--c-dark);
}

.cta-card .btn-primary:hover {
    background: var(--c-orange);
    color: #fff;
}

.contact-form {
    margin-top: 64px;
    background: var(--c-pink-2);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 16px;
}

.contact-form label {
    display: block;
}

.contact-form label.full {
    margin-bottom: 20px;
}

.contact-form span {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--c-text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--c-line);
    border-radius: 12px;
    font: inherit;
    color: inherit;
    background: #fff;
    transition: border-color var(--t), box-shadow var(--t);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--c-orange);
    box-shadow: 0 0 0 3px var(--c-orange-soft);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.form-status {
    margin-top: 14px;
    text-align: center;
    font-size: .9rem;
    min-height: 1.2em;
}

.form-status.success {
    color: #16a34a;
}

.form-status.error {
    color: #dc2626;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--c-dark);
    color: #fff;
    padding: 80px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-brand .logo-mark {
    background: var(--c-orange);
}

.footer-mail {
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    transition: color var(--t);
}

.footer-mail:hover {
    color: var(--c-orange);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 16px;
    font-weight: 500;
}

.mt-24 {
    margin-top: 24px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    color: rgba(255, 255, 255, .85);
    font-size: .95rem;
}

.footer-col a:hover {
    color: var(--c-orange);
}

.footer-col address {
    font-style: normal;
    color: rgba(255, 255, 255, .85);
    font-size: .92rem;
    line-height: 1.6;
    max-width: 240px;
}

.footer-phone {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
}

.footer-cta {
    padding: 80px 0 56px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-cta-title {
    font-size: clamp(2.4rem, 6vw, 5rem);
    color: #fff;
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-social h4 {
    margin: 0;
    color: rgba(255, 255, 255, .7);
    font-size: .85rem;
    font-weight: 500;
}

.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
}

.social-list a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    transition: all var(--t) var(--ease);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.social-list a:hover {
    background: var(--c-orange);
    color: #fff;
    transform: translateY(-3px);
}

.social-list a:focus-visible {
    outline-color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 32px;
    color: rgba(255, 255, 255, .6);
    font-size: .85rem;
}

.footer-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-contact p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
}

.footer-contact a {
    font-size: 1.75rem;
    font-style: italic;
    color: #fff;
    text-decoration: none;
}

.footer-contact a:hover {
    color: #e85d20;
}

.footer-social-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-brand {
    border-top: 2px solid #e85d20;
    /* orange top border */
    padding-top: 24px;
}

.footer-brand-desc {
    margin-top: 20px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.social-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-right: 6px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.social-icon:hover {
    background: #e85d20;
    color: #fff;
}

.social-icon svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.brand-orange {
    color: var(--c-orange);
}

.brand-white {
    color: #fff
}

/* ---------- Back to top ---------- */
.back-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--c-dark);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--t) var(--ease);
    z-index: 50;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .3);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.back-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--c-orange);
    transform: translateY(-3px);
}

.back-top:focus-visible {
    outline-color: var(--c-orange);
}

/* ========== ABOUT PAGE STYLES ========== */
.about-hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--c-orange-soft) 0%, rgba(255, 97, 41, 0.06) 100%);
}

.about-hero-inner {
    text-align: center;
}

.about-hero-title {
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    font-weight: 500;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-hero-sub {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: var(--c-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Story Section */
.about-story {
    background: #fff;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-content {}

.story-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.story-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--c-muted);
    margin-bottom: 20px;
}

.story-content p:last-child {
    margin-bottom: 0;
}

.story-image {
    position: relative;
    width: 100%;
}

.story-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--c-purple-soft);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-image-placeholder svg {
    width: 100%;
    height: 100%;
}

/* Values Section */
.about-values {
    background: #fff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.value-card {
    padding: 40px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    transition: all var(--t) var(--ease);
}

.value-card:hover {
    border-color: var(--c-orange);
    box-shadow: 0 20px 40px -8px rgba(255, 97, 41, 0.12);
    transform: translateY(-6px);
}

.value-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--c-orange);
    margin-bottom: 16px;
    line-height: 1;
    font-family: var(--f-sans);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--c-dark);
}

.value-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--c-muted);
    margin: 0;
}

/* Why Choose Us Section */
.about-why {
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.why-item {
    text-align: center;
    padding: 40px 24px;
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--c-orange);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-item h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--c-dark);
}

.why-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--c-muted);
    margin: 0;
}

/* About CTA Section */
.about-cta {
    background: linear-gradient(135deg, var(--c-orange) 0%, #FF7A4D 100%);
    color: #fff;
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.about-cta::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.about-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.about-cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.about-cta-title em {
    color: #fff;
    font-style: italic;
}

.about-cta-sub {
    font-size: 1.05rem;
    margin-bottom: 32px;
    opacity: 0.95;
    line-height: 1.6;
}

.about-cta .btn-primary {
    background: #fff;
    color: var(--c-orange);
}

.about-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--c-orange);
    box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.2);
}

/* ---------- Animations ---------- */
[data-animate] {
    opacity: 0;
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    will-change: opacity, transform;
}

[data-animate="fade-up"] {
    transform: translateY(28px);
}

[data-animate="fade-right"] {
    transform: translateX(-28px);
}

[data-animate="fade-left"] {
    transform: translateX(28px);
}

[data-animate="zoom-in"] {
    transform: scale(.96);
}

[data-animate].in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* reset divider rules from 3-column layout */
    .service-card {
        grid-column: auto;
        border-right: 1px solid rgba(112, 112, 112, 0.4);
        border-bottom: 1px solid rgba(112, 112, 112, 0.4);
    }

    /* reset the centered final-row spans from the 6-column layout */
    .service-card:nth-child(7),
    .service-card:nth-child(8) {
        grid-column: auto;
    }

    .service-card:nth-child(3n) {
        border-right: 1px solid rgba(112, 112, 112, 0.4);
    }

    .service-card:nth-child(2n) {
        border-right: 0;
    }

    .service-card:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .service-card-wide {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 0;
    }

    .process-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .work-grid {
        grid-template-columns: 1fr 1fr;
    }

    .work-card-large {
        grid-row: auto;
        grid-column: span 2;
    }

    .work-card-large .work-thumb {
        aspect-ratio: 16/9;
    }

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

    /* About page responsive */
    .story-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 860px) {
    .section {
        padding: 72px 0;
    }

    .primary-nav,
    .cta-btn {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

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

    .pos-card {
        aspect-ratio: auto;
        padding: 56px 28px 44px;
    }

    .pos-badge {
        margin-top: 0;
        width: 88px;
        height: 88px;
    }

    .pos-badge span {
        font-size: 38px;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .team-head {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: start;
        margin-bottom: 48px;
    }

    .leaders {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        margin-bottom: 64px;
    }

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

    .insights-head,
    .work-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-card {
        padding: 56px 24px;
    }

    .contact-form {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hero-inner {
        min-height: auto;
    }

    .hero-scroll {
        right: var(--gutter);
        bottom: 20px;
    }

    .pos-card {
        aspect-ratio: auto;
        min-height: 420px;
        padding-top: 60px;
    }

    .pos-badge {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    :root {
        --gutter: 18px;
    }

    .section {
        padding: 60px 0;
    }

    .leaders {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .leader-meta {
        padding: 34px 14px 12px;
    }

    .leader-name {
        font-size: 1rem;
    }

    .leader-role {
        font-size: .78rem;
    }

    /* Swap long titles for abbreviations so text stays off the faces */
    .role-full {
        display: none;
    }

    .role-abbr {
        display: inline;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 64px;
    }

    .hero-inner {
        justify-content: flex-start;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-sub {
        max-width: 100%;
        margin-bottom: 36px;
    }

    .hero-cta {
        padding: 6px 22px 6px 6px;
        font-size: .9rem;
    }

    .hero-cta-circle {
        width: 38px;
        height: 38px;
    }

    /* On phones, drop the scroll cue into normal flow below the CTA so it
       never overlaps the button/heading */
    .hero-scroll {
        position: static;
        right: auto;
        bottom: auto;
        transform: none;
        justify-content: center;
        margin-top: 40px;
        font-size: .65rem;
    }

    .hero-scroll-line {
        width: 36px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(112, 112, 112, 0.4);
        padding: 44px 24px;
    }

    .service-card:last-child {
        border-bottom: 0;
    }

    .services {
        padding: 80px 0;
    }

    .services .section-title {
        margin-bottom: 56px;
    }

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

    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card-large {
        grid-column: auto;
    }

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

    .footer-social {
        flex-direction: column;
        align-items: flex-start;
    }

    .insights-head .section-title {
        font-size: 1.8rem;
    }

    .footer-cta {
        padding: 56px 0 32px;
    }

    .back-top {
        width: 40px;
        height: 40px;
        bottom: 18px;
        right: 18px;
    }

    /* About page mobile */
    .about-hero {
        padding: 100px 0 70px;
    }

    .about-hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .story-grid {
        gap: 32px;
    }

    .story-content,
    .story-image {
        width: 100%;
    }

    .story-title {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }

    .story-content p {
        font-size: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .value-card {
        padding: 28px;
    }

    .value-number {
        font-size: 2rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-item {
        padding: 28px 16px;
    }

    .about-cta {
        padding: 80px 0;
    }

    .about-cta-title {
        font-size: 1.8rem;
    }
}

/* =========================================================
   ADDED COMPONENTS — footer legal, newsletter, FAQ,
   legal pages, 404, thank-you popup
   ========================================================= */

/* ---------- Footer legal links ---------- */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-size: .85rem;
    transition: color var(--t) var(--ease);
}

.footer-legal a:hover {
    color: #fff;
}

/* ---------- Newsletter ---------- */
.newsletter {
    padding: 96px 0;
}

.newsletter-card {
    position: relative;
    overflow: hidden;
    background: var(--c-dark);
    border-radius: var(--radius-lg);
    padding: 64px 56px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 48px;
    isolation: isolate;
}

.newsletter-card::before,
.newsletter-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    z-index: -1;
}

.newsletter-card::before {
    width: 320px;
    height: 320px;
    background: var(--c-orange);
    top: -120px;
    right: -60px;
    opacity: .35;
}

.newsletter-card::after {
    width: 260px;
    height: 260px;
    background: #5b2bd6;
    bottom: -140px;
    left: -40px;
    opacity: .3;
}

.newsletter-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-orange);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.newsletter-title {
    color: #fff;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 14px;
}

.newsletter-title em {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--c-orange);
}

.newsletter-sub {
    color: rgba(255, 255, 255, .65);
    font-size: 1.02rem;
    max-width: 46ch;
    margin: 0;
}

.newsletter-form {
    width: 100%;
}

.newsletter-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 7px 7px 7px 22px;
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.newsletter-field:focus-within {
    border-color: var(--c-orange);
    background: rgba(255, 255, 255, .12);
}

.newsletter-field input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    padding: 12px 0;
}

.newsletter-field input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.newsletter-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    background: var(--c-orange);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    font-size: .95rem;
    padding: 13px 26px;
    border-radius: 999px;
    transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}

.newsletter-btn:hover {
    transform: translateY(-1px);
    background: #ff7544;
}

.newsletter-note {
    margin: 14px 4px 0;
    color: rgba(255, 255, 255, .45);
    font-size: .82rem;
}

.newsletter-status {
    margin: 12px 4px 0;
    font-size: .9rem;
    min-height: 1.2em;
    color: rgba(255, 255, 255, .8);
}

.newsletter-status.success {
    color: #4ade80;
}

.newsletter-status.error {
    color: #fca5a5;
}

@media (max-width: 860px) {
    .newsletter {
        padding: 64px 0;
    }
    .newsletter-card {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 28px;
    }
}

@media (max-width: 600px) {
    .newsletter-field {
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--radius);
        padding: 14px;
        gap: 12px;
    }
    .newsletter-field input {
        padding: 6px 8px;
        text-align: center;
    }
    .newsletter-btn {
        justify-content: center;
        padding: 14px;
    }
}

/* ---------- FAQ accordion ---------- */
.faq-section {
    padding: 96px 0;
}

.faq-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.faq-eyebrow {
    display: inline-block;
    color: var(--c-orange);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.faq-title {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    margin: 0 0 14px;
}

.faq-title em {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--c-orange);
}

.faq-sub {
    color: var(--c-muted);
    font-size: 1.02rem;
    margin: 0;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.faq-item.open {
    border-color: rgba(255, 97, 41, .4);
    box-shadow: 0 14px 40px rgba(8, 8, 28, .06);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--c-text);
    padding: 24px 26px;
}

.faq-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--c-orange-soft);
    color: var(--c-orange);
    position: relative;
    transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    border-radius: 2px;
}

.faq-icon::before {
    width: 12px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 12px;
    transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.faq-item.open .faq-icon {
    background: var(--c-orange);
    color: #fff;
    transform: rotate(180deg);
}

.faq-item.open .faq-icon::after {
    transform: scaleY(0);
    opacity: 0;
}

.faq-a {
    overflow: hidden;
    max-height: 0;
    transition: max-height var(--t) var(--ease);
}

.faq-a-inner {
    padding: 0 26px 26px;
    color: var(--c-muted);
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .faq-section {
        padding: 64px 0;
    }
    .faq-q {
        font-size: 1rem;
        padding: 20px;
    }
    .faq-a-inner {
        padding: 0 20px 22px;
    }
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-hero {
    background: var(--c-dark);
    color: #fff;
    padding: 140px 0 64px;
    text-align: center;
}

.legal-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    letter-spacing: -.02em;
    margin: 0 0 14px;
}

.legal-hero h1 em {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--c-orange);
}

.legal-hero p {
    color: rgba(255, 255, 255, .6);
    font-size: 1rem;
    margin: 0;
}

.legal-body {
    padding: 72px 0 96px;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    letter-spacing: -.01em;
    margin: 44px 0 14px;
    color: var(--c-text);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.12rem;
    margin: 28px 0 10px;
}

.legal-content p,
.legal-content li {
    color: #44444f;
    font-size: 1.02rem;
    line-height: 1.75;
}

.legal-content ul {
    padding-left: 22px;
    margin: 0 0 16px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--c-orange);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-toc {
    background: var(--c-pink);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 48px;
}

.legal-toc strong {
    display: block;
    margin-bottom: 12px;
    font-size: .95rem;
    letter-spacing: .02em;
}

.legal-toc ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    gap: 24px;
}

.legal-toc a {
    color: var(--c-pink-deep);
    text-decoration: none;
    font-size: .95rem;
    line-height: 2;
}

.legal-toc a:hover {
    color: var(--c-orange);
}

@media (max-width: 600px) {
    .legal-toc ol {
        columns: 1;
    }
    .legal-hero {
        padding: 120px 0 48px;
    }
}

/* ---------- 404 page ---------- */
.error-page {
    min-height: 78vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 140px 0 90px;
    position: relative;
    overflow: hidden;
}

.error-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.error-code {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(7rem, 22vw, 13rem);
    line-height: .9;
    letter-spacing: -.04em;
    background: linear-gradient(120deg, var(--c-dark) 0%, var(--c-orange) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.error-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    letter-spacing: -.02em;
    margin: 6px 0 14px;
}

.error-text {
    color: var(--c-muted);
    font-size: 1.05rem;
    margin: 0 auto 32px;
    max-width: 44ch;
}

.error-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-links {
    margin-top: 44px;
    color: var(--c-muted);
    font-size: .92rem;
}

.error-links a {
    color: var(--c-text);
    text-decoration: none;
    border-bottom: 1px solid var(--c-line);
    padding-bottom: 1px;
    margin: 0 4px;
}

.error-links a:hover {
    color: var(--c-orange);
    border-color: var(--c-orange);
}

.error-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.error-blob.b1 {
    width: 360px;
    height: 360px;
    background: var(--c-orange-soft);
    top: -60px;
    left: -80px;
}

.error-blob.b2 {
    width: 300px;
    height: 300px;
    background: var(--c-purple-soft);
    bottom: -60px;
    right: -60px;
    opacity: .6;
}

/* ---------- Thank-you popup ---------- */
.ty-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease);
}

.ty-modal.open {
    opacity: 1;
    visibility: visible;
}

.ty-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 28, .55);
    backdrop-filter: blur(4px);
}

.ty-dialog {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    padding: 48px 40px 40px;
    text-align: center;
    box-shadow: 0 40px 90px rgba(8, 8, 28, .3);
    transform: translateY(16px) scale(.97);
    transition: transform var(--t) var(--ease);
}

.ty-modal.open .ty-dialog {
    transform: translateY(0) scale(1);
}

.ty-check {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--c-orange-soft);
    color: var(--c-orange);
}

.ty-check svg {
    width: 38px;
    height: 38px;
}

.ty-dialog h3 {
    font-size: 1.6rem;
    letter-spacing: -.02em;
    margin: 0 0 10px;
}

.ty-dialog h3 em {
    font-family: var(--f-serif);
    font-style: italic;
    color: var(--c-orange);
}

.ty-dialog p {
    color: var(--c-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 26px;
}

.ty-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: var(--c-pink);
    color: var(--c-text);
    font-size: 1.2rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background var(--t) var(--ease);
}

.ty-close:hover {
    background: var(--c-orange-soft);
    color: var(--c-orange);
}

@media (prefers-reduced-motion: reduce) {
    .ty-modal,
    .ty-dialog,
    .faq-a,
    .newsletter-btn,
    .faq-icon {
        transition: none;
    }
}

/* ========== PARTNER PAGE STYLES ========== */

/* Hero Section */
.partner-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    padding: 140px 0 60px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgb(255 255 255 / 10%),, transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 232, 255, .4), transparent 60%),
        #fff;
}

.partner-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.partner-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(112, 112, 112, .08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(112, 112, 112, .08) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 70%);
}

.partner-hero-dot {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c-orange);
    box-shadow:
        0 0 0 8px rgba(255, 97, 41, .18),
        0 0 0 24px rgba(255, 97, 41, .08);
}

.partner-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 200px);
}

.partner-hero-content {
    max-width: 900px;
}

.partner-hero-title {
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    font-weight: 500;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -.025em;
}

.partner-hero-sub {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--c-muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Partnership Types Section */
.partner-types {
    background: #fff;
    padding: 100px 0;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.partner-card {
    background: #fff;
    border: 2px solid var(--c-line);
    border-radius: var(--radius);
    padding: 44px 32px;
    text-align: center;
    transition: all var(--t) var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card:hover {
    border-color: var(--c-orange);
    background: var(--c-orange-soft);
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -18px rgba(255, 97, 41, 0.25);
}

.partner-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--c-dark);
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    box-shadow: 0 12px 24px -8px rgba(8, 8, 28, 0.2);
    position: relative;
    transition: all var(--t) var(--ease);
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
}

.partner-badge::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
}

.partner-card:hover .partner-badge {
    background: var(--c-orange);
    transform: scale(1.08) rotate(-4deg);
}

.partner-card h3 {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 12px;
    color: var(--c-text);
}

.partner-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--c-muted);
    margin: 0;
}

/* Partnership Benefits Section */
.partner-benefits {
    background: var(--c-pink-2);
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 48px 36px;
    text-align: center;
    transition: all var(--t) var(--ease);
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -18px rgba(8, 8, 28, 0.12);
}

.benefit-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    background: var(--c-orange-soft);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-orange);
    font-size: 2rem;
    transition: all var(--t) var(--ease);
}

.benefit-card:hover .benefit-icon {
    background: var(--c-orange);
    color: #fff;
    transform: scale(1.1);
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--c-text);
}

.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--c-muted);
    margin: 0;
}

/* Why Partner With Us Section */
.why-partner {
    background: #fff;
    padding: 100px 0;
}

.why-partner-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-partner-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.why-partner-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-partner-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--c-muted);
}

.why-partner-list li::before {
    content: '✓';
    display: inline-flex;
    width: 28px;
    height: 28px;
    background: var(--c-orange-soft);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--c-orange);
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.why-partner-image {
    background: linear-gradient(135deg, var(--c-blue-soft), var(--c-purple-soft));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.why-partner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Recommend Section */
.services-recommend {
    background: var(--c-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.services-recommend .section-title {
    color: #fff;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.services-recommend .section-title em {
    color: var(--c-orange);
    font-family: var(--f-serif);
    font-style: italic;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-item {
    padding: 28px 0;
    border-bottom: 1px solid rgba(112, 112, 112, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding var(--t) var(--ease), color var(--t) var(--ease);
}

.service-item:last-child {
    border-bottom: 0;
}

.service-item h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
    transition: color var(--t) var(--ease);
}

.service-item:hover h3 {
    color: var(--c-orange);
}

.service-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--t) var(--ease), transform var(--t) var(--ease);
    flex-shrink: 0;
}

.service-item:hover .service-arrow {
    color: var(--c-orange);
    transform: translateX(4px);
}

.services-cta {
    text-align: center;
    margin-top: 56px;
}

/* Note: Partner page uses existing .cta and .contact-form styles from index.html
   These are defined in the main section above, so we only need to add partner-specific overrides */

.cta-card {
    background: var(--c-dark);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 0% 50%, rgba(255, 97, 41, .25), transparent 60%),
        radial-gradient(ellipse 60% 80% at 100% 50%, rgba(255, 182, 0, .18), transparent 60%);
    pointer-events: none;
}

.cta-card>* {
    position: relative;
}

/* ---------- Partner Page Responsive ---------- */
@media (max-width: 1100px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .why-partner-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 860px) {
    .partner-hero {
        padding: 110px 0 60px;
        min-height: 85vh;
    }

    .partner-hero-inner {
        min-height: auto;
    }

    .partner-hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 16px;
    }

    .partner-hero-sub {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .partner-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .partner-card {
        padding: 36px 28px;
    }

    .partner-badge {
        width: 72px;
        height: 72px;
        font-size: 32px;
        margin-bottom: 20px;
    }

    .partner-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-card {
        padding: 36px 28px;
    }

    .benefit-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
        font-size: 1.8rem;
    }

    .why-partner-content h2 {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
        margin-bottom: 24px;
    }

    .why-partner-list {
        gap: 16px;
    }

    .why-partner-list li {
        font-size: 1rem;
    }

    .cta-card {
        padding: 56px 24px;
    }

    .cta-title {
        font-size: clamp(1.5rem, 3.5vw, 2.4rem);
        margin-bottom: 24px;
    }

    .contact-form {
        padding: 24px;
        margin-top: 48px;
    }

    .contact-form h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 14px;
    }

    .service-item {
        padding: 24px 0;
    }

    .service-item h3 {
        font-size: 1.05rem;
    }
}

@media (max-width: 600px) {
    .partner-types {
        padding: 60px 0;
    }

    .partner-benefits {
        padding: 60px 0;
    }

    .why-partner {
        padding: 60px 0;
    }

    .services-recommend {
        padding: 60px 0;
    }

    .partner-hero {
        padding-top: 100px;
        padding-bottom: 50px;
        min-height: 80vh;
    }

    .partner-hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .partner-hero-sub {
        font-size: 0.95rem;
        margin-bottom: 32px;
        max-width: 100%;
    }

    .partner-grid {
        gap: 16px;
    }

    .partner-card {
        padding: 28px 20px;
    }

    .partner-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .partner-card p {
        font-size: 0.9rem;
    }

    .partner-badge {
        width: 64px;
        height: 64px;
        font-size: 28px;
        margin-bottom: 16px;
    }

    .benefits-grid {
        gap: 16px;
    }

    .benefit-card {
        padding: 28px 20px;
    }

    .benefit-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
        font-size: 1.6rem;
    }

    .benefit-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .benefit-card p {
        font-size: 0.9rem;
    }

    .why-partner-inner {
        gap: 32px;
    }

    .why-partner-content h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .why-partner-list {
        gap: 14px;
    }

    .why-partner-list li {
        font-size: 0.95rem;
    }

    .why-partner-list li::before {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .why-partner-image {
        aspect-ratio: 3/2;
    }

    .services-recommend .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .services-list {
        max-width: 100%;
    }

    .service-item {
        padding: 18px 0;
    }

    .service-item h3 {
        font-size: 1rem;
    }

    .cta {
        padding: 60px 0 80px;
    }

    .cta-card {
        padding: 44px 20px;
    }

    .cta-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .contact-form {
        padding: 20px;
        margin-top: 32px;
    }

    .contact-form h3 {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .contact-form label.full {
        margin-bottom: 14px;
    }

    .form-row {
        margin-bottom: 12px;
    }
}

/* ---------- Print ---------- */
@media print {

    .site-header,
    .back-top,
    .menu-toggle,
    .mobile-menu,
    .hero-scroll {
        display: none;
    }

    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
}

@media (max-width: 768px) {
    .services-deco {
        display: none;
    }
}

@media (max-width: 768px) {
    .footer-middle {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}


/* 1. Main Wrapper - Critical: Keep row layout and prevent shrinking */
.abt-upwork-inner {
    display: flex !important;
    flex-direction: row !important; 
    align-items: stretch !important;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    width: 100%;
    border: none !important;
    min-width: 320px; /* Ensures it doesn't collapse on tiny screens */
}

/* 2. Left Logo Sidebar - Updated to 100px as requested */
.abt-upwork-logo-box {
    flex: 0 0 100px; /* Set to 100px */
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 5px;
    border: none !important;
}

/* 3. The Vertical Logo */
.side-logo {
    height: 90%; 
    width: auto;
    display: block;
    object-fit: contain;
}

/* 4. Right Section Card */
.abt-upwork-card {
    flex: 1;
    background: #fff;
    padding: 30px; /* Desktop Padding */
    border: 1px solid #e4ebe4; 
    border-radius: 30px;
    margin: 20px; /* Desktop Margin */
    display: flex;
    flex-direction: column;
    min-width: 0; 
}

/* 5. Typography */
.abt-upwork-card h2 {
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 1.2;
}

.abt-upwork-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.abt-upwork-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.abt-upwork-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 6. View Profile Button */
.abt-upwork-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #000514;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    width: fit-content;
    margin-top: auto;
}

/* 7. MOBILE OVERRIDE: To stop the "Narrow" look */
@media (max-width: 768px) {
    .abt-upwork-logo-box {
        flex: 0 0 70px; /* Shrinking slightly on mobile to save space for text */
    }
    
    .abt-upwork-card {
        margin: 10px 10px 10px 0; /* Removes left margin to connect better with logo */
        padding: 15px; /* Less padding gives more room for text */
    }

    .abt-upwork-card h2 {
        font-size: 18px; /* Slightly smaller font so it doesn't wrap 5 times */
    }
    
    .abt-upwork-card-top {
        flex-wrap: wrap; /* Allows badges to move below name if screen is too thin */
    }
}


/* Container for the icon link */
.icon-link {
    display: inline-block; /* Wraps tightly around the icon */
    text-decoration: none;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover effect: Scale up and add a soft orange glow */
.icon-link:hover .pos-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px rgba(255, 97, 41, 0.4));
}

/* Active state: Slight "press" effect when clicked */
.icon-link:active .pos-icon {
    transform: scale(0.95);
}

/* Keep your existing icon styling */
.pos-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* Container to establish the 3D perspective space */
.hki-shape-container {
  padding: 50px 0; /* Add space around the card */
  perspective: 1000px; /* Crucial for the perspective shape */
}

/* The primary shaped card */
.hki-shaped-card {
  position: relative;
  display: block;
  max-width: 800px;
  margin: 0 auto;
  text-decoration: none;
  border-radius: 20px; /* Applies to the physical edges */
  
  /* background from the first image */
  background: 
    radial-gradient(circle at 80% 20%, rgba(100, 149, 237, 0.25) 0%, rgba(255, 255, 255, 0) 50%), 
    linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
  background-size: cover;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* Initial subtle shadow */
  
  /* Apply the perspective transform to create the shape */
  transform: rotateY(-15deg); /* Tilted left like image 2 */
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Smooth hover */
}

/* Optional pseudo-elements to enhance the rounded corners of the complex shape */
.hki-shaped-card::before,
.hki-shaped-card::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  border-radius: inherit; /* Copies 20px */
  pointer-events: none;
}
.hki-shaped-card::before {
  border: 1px solid rgba(0,0,0,0.02); /* Very faint outline */
}

/* Inner container that keeps text flat/legible while the card is tilted */
.hki-card-content-wrapper {
  display: flex;
  align-items: center;
  padding: 30px 50px;
  gap: 30px;
  /* Optional: counteract the card tilt slightly for very clear text */
  /* transform: rotateY(15deg); */
}

/* --- Content Styling --- */

.hki-shape-arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background-color: white;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.hki-shape-arrow {
  color: #da6838; /* Your specific orange */
  font-size: 24px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.hki-shape-text-content {
  color: #1a1a1a; /* Dark text on light background */
  text-align: left;
}

.hki-shape-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: #010000;
  letter-spacing: -0.5px;
}
.hki-shape-title em {
  font-style: italic;
  color: #da6838; /* Highlighted orange text */
}

.hki-shape-subtitle {
  font-size: 1rem;
  margin: 5px 0 0 0;
  opacity: 0.8;
  color: #333;
}

/* --- HOVER EFFECTS: FLOATING & INTERACTION --- */

.hki-shaped-card:hover {
  /* Combines shape correction + floating effect */
  transform: rotateY(0deg) translateY(-8px);
  box-shadow: 0 20px 60px rgba(218, 104, 56, 0.15); /* Orange-tinted deep shadow */
}

/* Arrow hover changes: background turns orange, arrow turns white */
.hki-shaped-card:hover .hki-shape-arrow-circle {
  background-color: #da6838;
  transform: scale(1.1);
}

.hki-shaped-card:hover .hki-shape-arrow {
  color: #ffffff;
}

/* Mobile: no hover on touch, so sit flat & legible instead of permanently
   tilted, and reclaim the wide side padding for the text. */
@media (max-width: 600px) {
  .hki-shape-container {
    padding: 30px 0;
  }

  .hki-shaped-card {
    transform: none;
  }

  .hki-card-content-wrapper {
    padding: 24px 22px;
    gap: 18px;
  }

  .hki-shape-title {
    font-size: 1.15rem;
  }
}

/* =========================================================================
   Crew rotating diamond mosaic — universal marquee + responsive sizing.
   JS adds .is-marquee to the track, clones the set to fill the width, and
   sets --crew-shift (one set width in px) + --crew-dur so the loop is
   seamless at any breakpoint. Click/tap pauses it for 4s (JS). Same diamond
   look on phone, tablet and desktop — only --d (size) and --rows change.
   ========================================================================= */
.crew-track.is-marquee {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: crew-marquee var(--crew-dur, 24s) linear infinite;
}

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

.crew-track.is-marquee .crew-set {
    flex: 0 0 auto;
}

/* Tablet & below: same three rows, slightly smaller diamonds */
@media (max-width: 860px) {
    .team-crew {
        --d: clamp(88px, 12.5vw, 116px);
    }
}

/* Phone: three rows sized so ~4 diamonds span the screen (original look) */
@media (max-width: 600px) {
    .team-crew {
        --d: 17.7vw;
    }

    .team-crew-hint span {
        display: none;                            /* no hover on touch */
    }
}

/* Respect reduced motion: JS skips the marquee entirely; this is a backstop */
@media (prefers-reduced-motion: reduce) {
    .crew-track.is-marquee {
        animation: none;
    }
}

