/* ========================================
   MENOSPHERE — Stylesheet
   Dark-space aesthetic with glowing spheres
   ======================================== */

/* --- load the font (quote the filename because it has spaces) --- */
@font-face {
  font-family: "Faster Stroker Italic";
  src: url("/fonts/Faster%20Stroker%20Italic.woff") format("woff"); / or url("/fonts/Faster Stroker Italic.woff") if your server supports spaces */
  font-style: italic;
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "Faster Stroker";
  src: url("/fonts/Faster%20Stroker.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
    --bg-deep:       #06060f;
    --bg-mid:        #0d0d2b;
    --bg-surface:    #111133;
    --text-primary:  #e8e8f0;
    --text-secondary:#9595b0;
    --text-dim:      #5a5a78;
    --accent:        #A855F7;
    --font-headingH1: "Faster Stroker", system-ui, -apple-system, sans-serif;
    --font-heading:  'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body:     'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
    --ease-out:      cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(168,85,247,0.3) transparent;
}

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}


p {
    margin-top: 1.5em;
}


::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(168,85,247,0.3); border-radius: 3px; }

a { color: inherit; }
img { max-width: 100%; height: auto; }
.half-size { width: 50%; height: auto; max-width: 100%; }
.quarter-size { width: 25%; height: auto; max-width: 100%; }

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   GLOW CURSOR
   ============================================ */
#glow-cursor {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: opacity 0.3s;
}

body:not(:hover) #glow-cursor { opacity: 0; }

/* ============================================
   SCROLL PROGRESS
   ============================================ */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #FF6B35, #A855F7, #3B82F6, #22C55E, #0EA5E9);
    z-index: 1000;
    width: 0%;
    pointer-events: none;
}

/* ============================================
   SIDE NAVIGATION
   ============================================ */
#side-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.2);
    transition: all 0.4s var(--ease-out);
    position: relative;
    text-decoration: none;
    display: block;
}

.nav-dot::before {
    content: attr(data-label);
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    pointer-events: none;
    transform: translateY(-50%) translateX(4px);
    letter-spacing: 0.05em;
}

.nav-dot:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.nav-dot.active {
    background: var(--dot-color, #fff);
    border-color: var(--dot-color, #fff);
    box-shadow: 0 0 12px var(--dot-color, #fff), 0 0 4px var(--dot-color, #fff);
    transform: scale(1.4);
}

/* ============================================
   HERO SECTION
   ============================================ */
.full-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    position: relative;
}

/* --- Animated Sphere --- */
.hero-sphere {
    width: 220px;
    height: 220px;
    margin: 0 auto 3rem;
    position: relative;
    perspective: 800px;
}

.sphere-core {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #d8b4fe, #a855f7 40%, #6d28d9 70%, #3b0764);
    box-shadow:
        0 0 50px rgba(168,85,247,0.6),
        0 0 100px rgba(168,85,247,0.25),
        inset 0 -8px 20px rgba(0,0,0,0.3),
        inset 0 4px 12px rgba(255,255,255,0.15);
    animation: pulse-core 4s ease-in-out infinite;
}

.sphere-ring {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    border-style: solid;
    border-color: transparent;
}

.ring-1 {
    width: 150px; height: 150px;
    margin: -75px 0 0 -75px;
    border-width: 1.5px;
    border-top-color: rgba(168,85,247,0.5);
    border-bottom-color: rgba(168,85,247,0.15);
    animation: orbit-1 7s linear infinite;
}

.ring-2 {
    width: 190px; height: 70px;
    margin: -35px 0 0 -95px;
    border-width: 1px;
    border-top-color: rgba(59,130,246,0.4);
    border-bottom-color: rgba(59,130,246,0.1);
    animation: orbit-2 11s linear infinite;
}

.ring-3 {
    width: 210px; height: 210px;
    margin: -105px 0 0 -105px;
    border-width: 1px;
    border-left-color: rgba(34,197,94,0.25);
    border-right-color: rgba(34,197,94,0.08);
    animation: orbit-3 15s linear infinite;
}

.sphere-pulse {
    position: absolute;
    width: 70px; height: 70px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(168,85,247,0.4);
    animation: expand-ring 3s ease-out infinite;
}

.pulse-2 { animation-delay: 1.5s; }

@keyframes pulse-core {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 50px rgba(168,85,247,0.6), 0 0 100px rgba(168,85,247,0.25), inset 0 -8px 20px rgba(0,0,0,0.3), inset 0 4px 12px rgba(255,255,255,0.15); }
    50%      { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 60px rgba(168,85,247,0.7), 0 0 120px rgba(168,85,247,0.3), inset 0 -8px 20px rgba(0,0,0,0.3), inset 0 4px 12px rgba(255,255,255,0.15); }
}

@keyframes expand-ring {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(3.5); opacity: 0; }
}

@keyframes orbit-1 {
    from { transform: rotateX(65deg) rotateZ(0deg); }
    to   { transform: rotateX(65deg) rotateZ(360deg); }
}

@keyframes orbit-2 {
    from { transform: rotateX(78deg) rotateY(25deg) rotateZ(0deg); }
    to   { transform: rotateX(78deg) rotateY(25deg) rotateZ(360deg); }
}

@keyframes orbit-3 {
    from { transform: rotateX(40deg) rotateY(-15deg) rotateZ(0deg); }
    to   { transform: rotateX(40deg) rotateY(-15deg) rotateZ(-360deg); }
}

/* --- Hero Typography --- */

.hero-title,
.hero-title .title-meno,
.hero-title .title-sphere {
  font-family: "Faster Stroker Italic", serif; 
  font-style: italic; 
  font-weight: normal;
}

.hero-title {
    font-family: var(--font-headingH1);
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.title-meno {
    color: var(--text-primary);
}

.title-sphere {
    background: linear-gradient(135deg, #c084fc 0%, #818cf8 30%, #38bdf8 60%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
    

.hero-tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.75rem, 1.4vw, 1rem);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* --- Scroll Cue --- */
.scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    animation: cue-bob 2.5s ease-in-out infinite;
}

.scroll-cue svg { opacity: 0.5; }

@keyframes cue-bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}

/* ============================================
   CATEGORY SECTION
   ============================================ */
.category-section {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.category-header {
    text-align: center;
    padding: 10rem 0 4rem;
    max-width: 680px;
    margin: 0 auto;
}

.category-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.2rem;
}

.category-title {
    font-family: var(--font-headingH1);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================
   PRODUCT ORBIT NAVIGATOR
   ============================================ */
.orbit-container {
    position: relative;
    width: min(520px, 85vw);
    height: min(520px, 85vw);
    margin: 2rem auto 8rem;
}

.orbit-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 75%;  height: 75%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-ring-2 {
    width: 55%; height: 55%;
    border-color: rgba(255,255,255,0.03);
}

/* Node positioning — distribute 8 nodes around circle */
.orbit-node8 {
    --angle: calc(var(--i) * 45deg);  /* 360/8 = 45 */
    --radius: min(200px, 34vw);
    position: absolute;
    top: 50%; left: 50%;
    width: 80px; height: 80px;
    margin: -40px 0 0 -40px;
    transform:
        rotate(var(--angle))
        translateY(calc(-1 * var(--radius)))
        rotate(calc(-1 * var(--angle)));
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: node-float calc(3s + var(--i) * 0.4s) ease-in-out infinite;
}

/* Node positioning — distribute 10 nodes around circle */
.orbit-node10 {
    --angle: calc(var(--i) * 36deg);  /* 360/10 = 36 */
    --radius: min(200px, 34vw);
    position: absolute;
    top: 50%; left: 50%;
    width: 80px; height: 80px;
    margin: -40px 0 0 -40px;
    transform:
        rotate(var(--angle))
        translateY(calc(-1 * var(--radius)))
        rotate(calc(-1 * var(--angle)));
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: node-float calc(3s + var(--i) * 0.4s) ease-in-out infinite;
}

.node-dot {
    display: block;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%,
        var(--color),
        color-mix(in srgb, var(--color), #000 55%)
    );
    box-shadow: 0 0 20px color-mix(in srgb, var(--color), transparent 40%);
    transition: all 0.4s var(--ease-out);
}

.orbit-node:hover .node-dot {
    transform: scale(1.25);
    box-shadow: 0 0 35px color-mix(in srgb, var(--color), transparent 20%);
}

.node-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap;
}

.orbit-node:hover .node-label {
    color: var(--color);
}

@keyframes node-float {
    0%, 100% { transform: rotate(var(--angle)) translateY(calc(-1 * var(--radius))) rotate(calc(-1 * var(--angle))) translateY(0); }
    50%      { transform: rotate(var(--angle)) translateY(calc(-1 * var(--radius))) rotate(calc(-1 * var(--angle))) translateY(-8px); }
}

/* ============================================
   PRODUCT SECTIONS
   ============================================ */
.product-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

/* Colored ambient glow */
.product-ambient {
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--pc-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
    top: 50%; left: -5%;
    transform: translateY(-50%);
    filter: blur(40px);
}

.product-section:nth-child(even) .product-ambient {
    left: auto; right: -5%;
}

/* Decorative separator between products */
.product-section + .product-section::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--pc-rgb), 0.3), transparent);
    margin: 0 auto 6rem;
}

/* Grid layout */
.product-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0 2rem;
}

.product-inner.reverse {
    direction: rtl;
}

.product-inner.reverse > * {
    direction: ltr;
}

/* Text content */
.product-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pc);
    border: 1px solid rgba(var(--pc-rgb), 0.25);
    padding: 0.3em 1em;
    border-radius: 2em;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.product-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.product-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 1.8rem;
    letter-spacing: 0.04em;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.85;
}

/* Image frames — glass-like container */
.image-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 0 40px rgba(var(--pc-rgb), 0.08),
        0 25px 60px rgba(0,0,0,0.4);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(var(--pc-rgb), 0.2), transparent 50%, rgba(var(--pc-rgb), 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.image-frame:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 0 60px rgba(var(--pc-rgb), 0.12),
        0 35px 80px rgba(0,0,0,0.5);
}

.image-frame img {
    width: 100%;
    display: block;
}

/* VeryDisco animated placeholder */
.visual-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border-radius: 16px;
    border: 1px solid rgba(var(--pc-rgb), 0.12);
    background:
        radial-gradient(circle at 50% 40%, rgba(var(--pc-rgb), 0.05) 0%, transparent 60%),
        rgba(255,255,255,0.015);
}

.scan-animation {
    position: relative;
    width: 120px; height: 120px;
    margin-bottom: 1.5rem;
}

.scan-ring {
    position: absolute;
    inset: 0;
    border: 1px solid var(--pc);
    border-radius: 50%;
    opacity: 0;
    animation: scan-expand 3s ease-out infinite;
}

.scan-ring-2 { animation-delay: 1s; }
.scan-ring-3 { animation-delay: 2s; }

.scan-core {
    position: absolute;
    width: 16px; height: 16px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--pc);
    box-shadow: 0 0 20px var(--pc);
    animation: scan-pulse 1.5s ease-in-out infinite;
}

@keyframes scan-expand {
    0%   { transform: scale(0.3); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 0; }
}

@keyframes scan-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.3); }
}

.scan-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ============================================
   MULTI-PARAGRAPH PRODUCT DESCRIPTIONS
   ============================================ */
.product-desc + .product-desc {
    margin-top: 1rem;
}

/* ============================================
   TAG LISTS  (Domains & Industries)
   ============================================ */
.taggroup {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.subcat-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subcat-title::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--pc, var(--accent));
    box-shadow: 0 0 10px var(--pc, var(--accent));
}

.taglist {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-chip {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    padding: 0.5em 1.1em;
    border-radius: 2em;
    border: 1px solid rgba(var(--pc-rgb, 168,85,247), 0.25);
    background: rgba(var(--pc-rgb, 168,85,247), 0.04);
    transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    cursor: default;
}

.tag-chip:hover {
    color: var(--text-primary);
    border-color: rgba(var(--pc-rgb, 168,85,247), 0.6);
    box-shadow: 0 0 18px rgba(var(--pc-rgb, 168,85,247), 0.15);
    transform: translateY(-2px);
}

/* ============================================
   INFO CARD GRID  (R&D, Approach, Collaborators)
   ============================================ */
.info-grid {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.info-card {
    position: relative;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow:
        0 0 40px rgba(var(--pc-rgb), 0.06),
        0 20px 50px rgba(0,0,0,0.3);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(var(--pc-rgb), 0.25), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--pc-rgb), 0.3);
    box-shadow:
        0 0 60px rgba(var(--pc-rgb), 0.12),
        0 30px 70px rgba(0,0,0,0.45);
}

.info-index {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--pc);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.25;
}

.info-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ============================================
   ABOUT BLOCK
   ============================================ */
.about-block {
    max-width: 720px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    text-align: center;
}

.about-block p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.9;
}

.about-block p + p {
    margin-top: 1.5rem;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

/* Staggered children inside product sections */
.reveal .product-tag,
.reveal .product-name,
.reveal .product-subtitle,
.reveal .product-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible .product-tag      { opacity: 1; transform: none; transition-delay: 0.05s; }
.reveal.visible .product-name     { opacity: 1; transform: none; transition-delay: 0.12s; }
.reveal.visible .product-subtitle { opacity: 1; transform: none; transition-delay: 0.18s; }
.reveal.visible .product-desc     { opacity: 1; transform: none; transition-delay: 0.25s; }

.reveal .product-visual {
    opacity: 0;
    transform: translateX(40px) scale(0.96);
    transition: opacity 0.8s var(--ease-out) 0.15s, transform 0.8s var(--ease-out) 0.15s;
}

.reveal.reverse .product-visual {
    transform: translateX(-40px) scale(0.96);
} 

.reveal.visible .product-visual {
    opacity: 1;
    transform: none;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 8rem 2rem 3rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-sphere {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #c084fc, #6d28d9, #3b0764);
    box-shadow: 0 0 20px rgba(168,85,247,0.4);
    margin: 0 auto 1.5rem;
}

.footer-brand {
    font-family: var(--font-headingH1);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

.footer-address {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .product-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-inner.reverse {
        direction: ltr;
    }

    .product-visual {
        order: -1;
    }

    .product-section { padding: 4rem 0; }

    .category-header { padding: 6rem 0 3rem; }
}

@media (max-width: 768px) {
    #side-nav { display: none; }

    #glow-cursor { display: none; }

    .hero-sphere {
        width: 160px; height: 160px;
        margin-bottom: 2rem;
    }

    .sphere-core { width: 55px; height: 55px; }
    .sphere-pulse { width: 55px; height: 55px; }

    .ring-1 { width: 110px; height: 110px; margin: -55px 0 0 -55px; }
    .ring-2 { width: 140px; height: 50px;  margin: -25px 0 0 -70px; }
    .ring-3 { width: 155px; height: 155px; margin: -77px 0 0 -77px; }

    .orbit-container {
        width: 300px; height: 300px;
        margin-bottom: 4rem;
    }

    .orbit-node {
        --radius: 120px;
        width: 60px; height: 60px;
        margin: -30px 0 0 -30px;
    }

    .node-dot { width: 28px; height: 28px; }
    .node-label { font-size: 0.5rem; }

    .product-inner { padding: 0 1rem; gap: 2rem; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }

    .category-section { padding: 0 1rem; }

    .hero-title { letter-spacing: 0.08em; }
    .hero-tagline { letter-spacing: 0.1em; font-size: 0.7rem; }

    .product-name { font-size: 2.2rem; }
}

/* --- Prefers reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal { opacity: 1; transform: none; }
    .reveal .product-tag,
    .reveal .product-name,
    .reveal .product-subtitle,
    .reveal .product-desc,
    .reveal .product-visual { opacity: 1; transform: none; }
}
/* --- PUBLICATIONS --- */
.section-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    text-align: center;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 600;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}
.pub-list { display: flex; flex-direction: column; gap: 0.8rem; text-align: left; }
.pub-item {
    padding: 1.4rem 1.8rem;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    display: flex; align-items: flex-start; gap: 1.5rem;
    transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.pub-item:hover {
    border-color: rgba(168,85,247,0.3);
    box-shadow: 0 0 30px rgba(168,85,247,0.08), 0 20px 40px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}
.pub-year {
    font-family: var(--font-mono);
    font-size: 0.8rem; font-weight: 700;
    color: var(--accent);
    min-width: 48px;
    padding-top: 0.15rem;
}
.pub-content { flex: 1; }
.pub-title {
    font-family: var(--font-heading);
    font-weight: 600; font-size: 0.98rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.5;
}
.pub-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}
.pub-title a:hover {
    color: var(--accent);
    text-decoration: underline;
}
.pub-venue {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ============================================
   INFO CARD STYLES
   ============================================ */
   
/* 1. THE BASE STYLES (Shared by both) */
.info-card {
    /* Critical Display Properties */
    display: block !important;
    width: 300px;
    padding: 16px;
    box-sizing: border-box; /* Ensures padding doesn't break width */
    
    /* Visuals */
    background-color: rgba(30, 30, 30, 0.98); 
    border: 1px solid var(--pc, #3B82F6); 
    border-radius: 12px;
    
    /* Safari-friendly Blur */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Shadows */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 5px 15px rgba(0, 0, 0, 0.5);
    
    /* Typography */
    color: #ececec;
    font-family: sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

/* 2. POPUP MODE (When it has id="info-card") */
#info-card {
    /* Critical for the JS positioning to work */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    
    /* Hide by default using opacity, not display */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;

    /* Your Styling */
    width: 300px;
    padding: 16px;
    background-color: rgba(30, 30, 30, 0.98); 
    border: 1px solid var(--pc, #3B82F6); 
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    color: #ececec;
}

/* This is what the JS toggles */
#info-card.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* 4. STATIC MODE (The ones in your content) */
.info-card.static-card {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    margin: 20px 0;
    z-index: 1;
}

/* 5. INTERNAL STYLES (Cleaned up) */
.info-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: var(--pc, #3B82F6); 
}

.info-card p:first-child {
    margin: 0 0 12px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card p:last-child {
    margin: 0;
}

.cta-mail{
  display:inline-block;
  padding:.85rem 1.6rem;
  background:linear-gradient(180deg,#E6F3F0 0%,#CFECE6 100%);
  color:#0b3b35;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(11,59,53,0.12), inset 0 -2px 0 rgba(255,255,255,0.35);
  text-decoration:none;
  font-weight:600;
  font-size:1rem;
  letter-spacing:0.2px;
  transition:transform .14s ease, box-shadow .14s ease;
  border:1px solid rgba(11,59,53,0.08);
}

/* ============================================
   COLLABORATOR TABS
   ============================================ */
.collab-tab-nav {
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 0 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.collab-tab-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2em;
    padding: 0.65em 1.5em;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.collab-tab-btn:hover {
    color: var(--text-primary);
    border-color: rgba(16,185,129,0.4);
}

.collab-tab-btn.active {
    color: #10B981;
    background: rgba(16,185,129,0.08);
    border-color: rgba(16,185,129,0.45);
    box-shadow: 0 0 20px rgba(16,185,129,0.1);
}

.collab-panels {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.collab-panel { display: none; }
.collab-panel.active { display: block; }

.collab-panel-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* ============================================
   PARTNER CARDS  (Collaborators)
   ============================================ */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.partner-card {
    position: relative;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16,185,129,0.25);
    box-shadow: 0 0 40px rgba(16,185,129,0.08), 0 20px 50px rgba(0,0,0,0.3);
}

.partner-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #10B981;
    border: 1px solid rgba(16,185,129,0.3);
    padding: 0.3em 0.9em;
    border-radius: 2em;
    display: inline-block;
    margin-bottom: 0.9rem;
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.partner-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
}

/* ============================================
   TEAM CARDS  (About)
   ============================================ */
.team-grid {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(14,165,233,0.18), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14,165,233,0.22);
    box-shadow: 0 0 50px rgba(14,165,233,0.07), 0 30px 70px rgba(0,0,0,0.4);
}

.team-photo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(14,165,233,0.35);
    box-shadow: 0 0 18px rgba(14,165,233,0.18);
    margin-bottom: 1.1rem;
    display: block;
    background: var(--bg-surface);
}

.team-initials {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(14,165,233,0.35), rgba(14,165,233,0.08));
    border: 2px solid rgba(14,165,233,0.3);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(14,165,233,0.8);
}

.team-role {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #0EA5E9;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.team-bio {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.75;
}

/* ============================================
   ADVISORY BOARD  (About)
   ============================================ */
.advisory-grid {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.advisory-card {
    padding: 1.5rem 1.75rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 1.1rem;
    transition: border-color 0.3s var(--ease-out);
}

.advisory-card:hover {
    border-color: rgba(168,85,247,0.2);
}

/* Smaller photos inside advisory cards */
.advisory-card .team-photo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.advisory-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(168,85,247,0.35), rgba(168,85,247,0.07));
    border: 1px solid rgba(168,85,247,0.25);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: rgba(168,85,247,0.8);
}

.advisory-name {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

.advisory-org {
    font-family: var(--font-mono);
    font-size: 0.63rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

/* ============================================
   TECH TEAM BANNER  (About)
   ============================================ */
.tech-team-banner {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tech-team-stat {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0EA5E9, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.tech-team-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

.tech-team-desc {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    min-width: 200px;
}

/* ============================================
   VALUES BLOCK  (About)
   ============================================ */
.values-block {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.values-text h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.values-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.values-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid rgba(168,85,247,0.3);
    padding: 0.7em 1.4em;
    border-radius: 2em;
    white-space: nowrap;
    transition: all 0.3s var(--ease-out);
}

.values-link:hover {
    background: rgba(168,85,247,0.08);
    box-shadow: 0 0 20px rgba(168,85,247,0.15);
}

/* ============================================
   APPROACH SECTION
   ============================================ */

/* Info-cards inside a grid should fill their track */
.info-grid .info-card {
    width: 100%;
    box-sizing: border-box;
}

/* Clickable nav cards */
a.info-card {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.approach-nav-card {
    position: relative;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.approach-nav-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--pc-rgb), 0.4);
    box-shadow:
        0 0 50px rgba(var(--pc-rgb), 0.1),
        0 25px 60px rgba(0,0,0,0.4);
}

.approach-nav-arrow {
    display: block;
    margin-top: 1.2rem;
    font-size: 1rem;
    color: var(--pc);
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.approach-nav-card:hover .approach-nav-arrow {
    opacity: 1;
    transform: translateY(4px);
}

/* Styled list inside product-text */
.approach-list {
    list-style: none;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.approach-list li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 1.4rem;
    position: relative;
}

.approach-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pc, var(--accent));
    opacity: 0.7;
}

/* Engagement tier cards */
.handshake-grid {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.handshake-card {
    position: relative;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(var(--pc-rgb, 59,130,246), 0.12);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.handshake-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(var(--pc-rgb, 59,130,246), 0.08), 0 20px 50px rgba(0,0,0,0.3);
    border-color: rgba(var(--pc-rgb, 59,130,246), 0.3);
}

.handshake-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pc, #3B82F6);
    border: 1px solid rgba(var(--pc-rgb, 59,130,246), 0.3);
    padding: 0.3em 0.9em;
    border-radius: 2em;
    display: inline-block;
    margin-bottom: 1rem;
}

.handshake-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.handshake-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.72;
}

/* Org structure grid */
.org-grid {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.org-card {
    padding: 2rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(6,182,212,0.12);
}

.org-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #06B6D4;
    margin-bottom: 1.25rem;
    display: block;
}

.org-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.org-item:last-child { border-bottom: none; }

.org-name {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.org-role {
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.15rem;
}

/* ============================================
   CLIENTS SECTION TITLES  (Collaborators)
   ============================================ */
.clients-section-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.clients-section-title::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #10B981;
    box-shadow: 0 0 8px rgba(16,185,129,0.5);
    flex-shrink: 0;
}

.clients-empty {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding: 1.5rem 0;
    border: 1px dashed rgba(255,255,255,0.07);
    border-radius: 12px;
    text-align: center;
}

/* ============================================
   PHOTO CAROUSEL  (Collaborators > Clients)
   ============================================ */
.photo-carousel {
    max-width: 620px;
    margin: 3rem auto;
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
}

/* Inner wrapper scopes button positioning to the image area only */
.carousel-image-area {
    position: relative;
}

.carousel-track-wrapper {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: block;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    background: var(--bg-mid);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s var(--ease-out);
}

.carousel-slide:hover img {
    transform: scale(1.02);
}

/* Buttons positioned inside .carousel-image-area — centered on the image */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(6,6,15,0.6);
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.carousel-btn:hover {
    background: rgba(16,185,129,0.4);
    border-color: rgba(16,185,129,0.6);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn-prev { left: 0.85rem; }
.carousel-btn-next { right: 0.85rem; }

.carousel-btn svg { pointer-events: none; }

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 0 0.75rem;
    background: rgba(0,0,0,0.15);
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
    padding: 0;
    flex-shrink: 0;
}

.carousel-dot.active {
    background: #10B981;
    box-shadow: 0 0 10px rgba(16,185,129,0.5);
    width: 22px;
    border-radius: 4px;
}

@media (max-width: 680px) {
    .photo-carousel { max-width: 100%; }
}
.cta-mail:hover{ transform:translateY(-3px); box-shadow:0 10px 28px rgba(11,59,53,0.14); }
.cta-mail:active{ transform:translateY(-1px); }
.cta-mail:focus{
  outline:none;
  box-shadow:0 0 0 4px rgba(11,59,53,0.12);
  border-color:rgba(11,59,53,0.18);
}
