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

:root {
    --black:   #000000;
    --dark:    #141414;
    --white:   #ffffff;
    --muted:   #494d50;
    --accent:  #66d4b4;
    --border:  #d4d4d4;
    --font:    'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-w:   1440px;
    --t:       0.25s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--black); line-height: 1.6; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 100px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 999px;
    font-family: var(--font); font-size: 15px; font-weight: 600;
    cursor: pointer; transition: var(--t); border: 1px solid transparent;
    white-space: nowrap; text-decoration: none;
}
.btn-white  { background: var(--white); color: var(--black); border-color: rgba(0,0,0,0.15); }
.btn-white:hover  { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-charcoal { background: #232323; color: var(--white); border-color: #232323; }
.btn-charcoal:hover { background: #111; }

/* ── Header / Nav ── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06); transition: border-color var(--t);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .logo-img { height: 32px; width: auto; object-fit: contain; filter: brightness(0); }
.logo-text { font-size: 15px; font-weight: 700; color: var(--black); }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--black); transition: opacity var(--t); }
.nav-links a:hover { opacity: 0.4; }
.nav-contact {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 14px 20px 14px 24px; border-radius: 999px; font-family: var(--font);
    font-size: 15px; font-weight: 500; color: var(--black);
    border: 0.5px solid rgba(0,0,0,0.1); background: var(--white);
    cursor: pointer; transition: all var(--t); white-space: nowrap;
}
.nav-contact:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.nav-toggle { display: none; background: none; border: none; color: var(--black); font-size: 22px; cursor: pointer; padding: 4px 8px; }

/* Language */
.language-selector { position: relative; display: flex; align-items: center; }
.lang-toggle { background: none; border: none; font-size: 20px; cursor: pointer; padding: 8px; transition: opacity var(--t); }
.lang-toggle:hover { opacity: 0.5; }
.lang-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--white); border: 1px solid var(--border); border-radius: 12px;
    min-width: 160px; padding: 8px 0; display: none; flex-direction: column;
    z-index: 1001; box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}
.lang-dropdown.active { display: flex; }
.lang-option {
    background: none; border: none; color: var(--muted); padding: 10px 16px;
    text-align: left; cursor: pointer; transition: all var(--t);
    font-size: 14px; font-family: var(--font); width: 100%;
}
.lang-option:hover { background: rgba(0,0,0,0.04); color: var(--black); }
.lang-option.active { color: var(--black); font-weight: 600; }

/* ─────────────────────────────────────────
   HERO  — full-width 3D image, text overlaps bottom
   Figma: image x=0 y=81 1440×810, text y=662 (71.7% down image)
   Overlap = 229px at 1440px → -16vw scales proportionally
───────────────────────────────────────── */
.hero {
    background: var(--white);
    padding-top: 64px; /* nav height */
    text-align: center;
}
.hero-visual {
    width: 100%;
    position: relative; z-index: 0;
}
.hero-3d-img { width: 100%; height: auto; display: block; }
.hero-text {
    position: relative; z-index: 2;
    /* clamp(MIN, PREFERRED, MAX) — for negative margins MIN must be most-negative
       At 1440px: -16vw = -230px overlap. MIN=-230px, MAX=-80px (smallest overlap) */
    margin-top: clamp(-230px, -16vw, -80px);
    width: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.12);
    text-align: center;
}
.hero-text-inner {
    max-width: 860px; margin: 0 auto;
    padding: 48px 40px 60px;
}
.hero-title {
    font-size: clamp(32px, 3.8vw, 48px); font-weight: 800;
    color: var(--black); line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 20px;
}
.hero-desc {
    font-family: var(--font-body); font-size: 17px; color: rgba(0,0,0,0.7);
    max-width: 580px; margin: 0 auto; line-height: 1.65; font-weight: 400;
}

/* ─────────────────────────────────────────
   APPROACH  — black section, 6 cards
   Figma: x=0 y=980 1440×967, inner content at x=100
───────────────────────────────────────── */
.section-approach {
    background: var(--black);
    padding: 100px 0;
}
.approach-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 80px; gap: 32px;
}
.approach-title {
    font-size: clamp(32px, 4vw, 54px); font-weight: 800;
    color: var(--white); line-height: 1.12; letter-spacing: -1.5px; max-width: 460px;
}
.approach-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; padding-top: 0; }
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.approach-card {
    background: var(--dark); border-radius: 15px; padding: 40px;
    display: flex; flex-direction: column;
    min-height: 274px;
    transition: background var(--t);
}
.approach-card:hover { background: #1c1c1c; }
.approach-stage { display: block; font-size: 14px; font-weight: 400; color: var(--muted); flex-shrink: 0; }
.approach-card h3 {
    font-size: clamp(20px, 2vw, 32px); font-weight: 700; color: var(--white);
    line-height: 1.2; margin-top: auto; padding-top: 16px;
}
.approach-card-teal { background: var(--accent); }
.approach-card-teal:hover { background: #59ccaa; }
.approach-card-teal .approach-stage { color: rgba(255,255,255,0.65); }
.approach-card-teal h3, .approach-card-teal p { color: var(--white); }
.approach-card-teal p { color: rgba(255,255,255,0.8); }

/* ─────────────────────────────────────────
   SERVICES  — white, 2-column layout
   Figma: x=0 y=2081 1440×595
   Left col (x=100, w=457): title + desc
   Right col (x=676, w=664): numbered service list
───────────────────────────────────────── */
.section-services {
    position: relative; overflow: hidden;
    padding: 40px 0; background: var(--white);
}
/* Geo image at section level — Figma: x=-80 y=177 in 1440×595 section
   y=177/595 ≈ 30% from top → image overlaps description text and extends down.
   Use top:30% so it sits behind the text, not separated below it. */
.services-geo-bg {
    position: absolute; left: -80px; top: 30%;
    width: 50%; max-width: 720px;
    opacity: 0.6; pointer-events: none; z-index: 0;
}
.services-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 37% 53%; gap: 10%; align-items: start; }
.services-intro { position: relative; }
.services-big-title {
    /* Plus Jakarta Sans matches Figma's PolySans Trial width closely, use 74px max */
    font-size: clamp(36px, 4.5vw, 74px); font-weight: 800; color: var(--black);
    line-height: 1.1; letter-spacing: -2px; margin-bottom: 20px;
}
.services-desc {
    font-family: var(--font-body); font-size: 16px; color: rgba(0,0,0,0.45);
    line-height: 1.8; margin-bottom: 0;
}
.services-list { display: flex; flex-direction: column; border-top: 1px solid rgba(0,0,0,0.1); }
.service-item {
    display: grid; grid-template-columns: 32px 1fr auto;
    gap: 20px; align-items: center;
    /* Figma: divider at bottom of each item */
    padding: 40px 0; border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: opacity var(--t);
}
.service-num { font-family: var(--font-body); font-size: 13px; color: rgba(0,0,0,0.25); align-self: flex-start; padding-top: 6px; }
.service-content h3 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 800; color: var(--black); margin-bottom: 6px; }
/* Figma: desc 18px, color rgba(0,0,0,0.75) */
.service-content p { font-family: var(--font-body); font-size: 18px; color: rgba(0,0,0,0.75); line-height: 1.4; }
.service-arrow {
    width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.3);
    background: var(--white); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 16px; color: var(--black); transition: all var(--t);
}
.service-item:hover .service-arrow { background: var(--black); color: var(--white); border-color: var(--black); }

/* ─────────────────────────────────────────
   WORKS  — black, 3 cards
   Figma: x=0 y=2816 1440×1037
   Cards: 597×627 each, r:15
───────────────────────────────────────── */
.section-works { background: var(--black); padding: 100px 0; }
.section-title { font-size: clamp(28px, 3.5vw, 46px); font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 52px; }
.works-title { font-size: clamp(36px, 3.75vw, 54px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 0; max-width: 360px; }
.section-works .section-title { color: var(--white); }

/* Works header with title + nav arrows */
.works-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 80px;
}
.works-nav-arrows { display: flex; gap: 8px; flex-shrink: 0; }
.works-arrow {
    width: 54px; height: 54px; border-radius: 50%;
    border: 0.5px solid rgba(255,255,255,0.35); background: transparent;
    color: var(--white); font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t); flex-shrink: 0;
}
.works-arrow-next {
    background: var(--white); border-color: rgba(0,0,0,0.1); color: var(--black);
}
.works-arrow:hover { opacity: 0.7; }

/* Works grid — 2 cards visible, 3rd partially peeks, horizontal scroll */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 597px);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.works-grid::-webkit-scrollbar { display: none; }
.work-card {
    position: relative; background: var(--dark); border-radius: 15px;
    overflow: hidden; aspect-ratio: 597 / 600;
    scroll-snap-align: start;
    transition: transform var(--t);
}
.work-card:hover { transform: translateY(-4px); }

/* Tag: absolute top-left */
.work-tag {
    position: absolute; top: 32px; left: 40px; z-index: 2;
    font-size: 13px; font-weight: 400; color: var(--muted);
}
/* Info: absolute bottom */
.work-info {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 0 40px 40px;
}
.work-info h3 {
    font-size: clamp(20px, 2vw, 32px); font-weight: 700; color: var(--white);
    line-height: 1.2; margin-bottom: 12px;
}
.work-info p { font-family: var(--font-body); font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Featured card: full-height image + top overlay */
.work-photo {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.work-overlay-top {
    position: absolute; top: 0; left: 0; right: 0; z-index: 2;
    padding: 32px 40px 32px;
    background: rgb(57, 57, 57);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.work-overlay-top h3 {
    font-size: clamp(20px, 2vw, 32px); font-weight: 700; color: var(--white);
    line-height: 1.2; margin-bottom: 16px; max-width: 280px;
}
.work-case-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 999px;
    border: 0.5px solid rgba(0,0,0,0.1); background: var(--white); color: var(--black);
    font-family: var(--font); font-size: 15px; font-weight: 500;
    transition: all var(--t);
}
.work-case-btn:hover { background: var(--accent); border-color: var(--accent); }

/* ─────────────────────────────────────────
   IMPACT  — white, 3 stat cards
   Figma: Frame 26, x=100 y=4013 1240×810
   Card order: light(1500+) | dark(50+) | light(2012)
   Card size: ~407×600, r:24 (light) / r:15 (dark)
───────────────────────────────────────── */
.section-impact { padding: 72px 0 100px; background: var(--white); position: relative; overflow: hidden; }
/* Sphere decorative image — Figma: x=-244, y=3728 (page), impact section starts y=4013 → offset=-285px */
.section-impact::before {
    content: '';
    position: absolute;
    top: -285px; left: -244px;
    width: 2334px; height: 1313px;
    background: url('../images/impact-sphere.png') no-repeat left top / contain;
    pointer-events: none; z-index: 0;
}
.section-impact .container { position: relative; z-index: 1; }
.impact-title {
    font-size: clamp(32px, 4vw, 54px); font-weight: 800;
    letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 60px; color: var(--black);
    max-width: 420px;
}
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: stretch; }
.impact-card {
    border: 0.5px solid var(--border); border-radius: 24px; padding: 40px;
    display: flex; flex-direction: column; min-height: 600px;
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    background: rgba(255,255,255,0.2);
}
.impact-card-dark {
    background: var(--black); border-color: var(--black); border-radius: 15px;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.impact-number {
    display: block; font-size: clamp(48px, 4.5vw, 64px); font-weight: 800;
    color: var(--black); line-height: 1; flex-shrink: 0;
}
.impact-card-dark .impact-number { color: var(--white); }
.impact-card-title {
    font-size: clamp(20px, 2vw, 32px); font-weight: 600; color: var(--black);
    margin-top: auto; padding-top: 24px; margin-bottom: 12px; line-height: 1.2;
}
.impact-card-dark .impact-card-title { color: var(--white); }
.impact-card p:not(.impact-card-title) { font-family: var(--font-body); font-size: 14px; color: rgba(0,0,0,0.4); line-height: 1.6; }
.impact-card-dark p:not(.impact-card-title) { color: rgba(255,255,255,0.5); }

/* ─────────────────────────────────────────
   CONTACT  — black, sphere image top-right
   Figma: x=0 y=5003 1440×1037
   Image (sphere): x=657 y=48, 673×641
   Heading at y=624, email pill at y=798
   Footer bar (address + nav) at y=882
───────────────────────────────────────── */
.section-contact { background: var(--black); padding-top: 0; }
.contact-inner {
    position: relative; min-height: 740px;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 60px 0;
}
.contact-deco-img {
    position: absolute; right: 10px; top: 48px;
    width: 673px;
    pointer-events: none; z-index: 0;
}
.contact-bottom { position: relative; z-index: 2; }
.contact-big-title {
    font-size: clamp(36px, 5vw, 54px); font-weight: 800;
    color: var(--white); line-height: 1.08; letter-spacing: -2px; margin-bottom: 56px;
    max-width: 640px;
}
.contact-actions {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 32px;
}
.contact-email-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px;
    background: var(--white); color: var(--black);
    font-family: var(--font); font-size: 15px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2); transition: all var(--t);
}
.contact-email-pill:hover { background: var(--accent); border-color: var(--accent); }
.contact-arrow-btn {
    width: 55px; height: 55px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25); background: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--black); cursor: pointer; transition: all var(--t);
    flex-shrink: 0; text-decoration: none;
}
.contact-arrow-btn:hover { background: var(--accent); border-color: var(--accent); }
.contact-footer-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-address { font-family: var(--font-body); font-size: 15px; color: var(--muted); font-weight: 300; }
.contact-footer-nav { display: flex; gap: 28px; }
.contact-footer-nav a { font-family: var(--font-body); font-size: 15px; color: var(--muted); font-weight: 300; transition: color var(--t); }
.contact-footer-nav a:hover { color: var(--white); }

/* Footer copyright bar inside contact section */
.footer-copy-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 100px; border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-logo-img { height: 24px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.footer-copy { font-family: var(--font-body); font-size: 13px; color: var(--muted); }

/* ── Mobile nav open state ── */
.nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 64px; left: 0; right: 0; background: var(--white);
    padding: 32px 24px; gap: 24px; border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .container { padding: 0 40px; }
    .footer-copy-bar { padding: 20px 40px; }
    .services-layout { grid-template-columns: 1fr 1.4fr; gap: 60px; }
}
@media (max-width: 900px) {
    .approach-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-header { flex-direction: column; gap: 24px; }
    .approach-actions { padding-top: 0; }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .works-title { font-size: clamp(32px, 4vw, 46px); }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .services-layout { grid-template-columns: 1fr; gap: 48px; }
    .contact-deco-img { width: 55%; right: -20px; top: 20px; }
}
@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .footer-copy-bar { padding: 20px; flex-direction: column; gap: 12px; text-align: center; }
    .nav-links { display: none; }
    .nav-contact { display: none; }
    .nav-toggle { display: block; }
    .works-grid { grid-template-columns: 1fr; }
    .works-header { flex-direction: column; align-items: flex-start; gap: 24px; }
    .approach-grid { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr; }
    .section-approach, .section-works, .section-contact { padding-top: 72px; padding-bottom: 72px; }
    .section-services, .section-impact { padding: 72px 0; }
    .hero-text { padding-bottom: 60px; }
    .contact-deco-img { display: none; }
    .contact-actions { flex-direction: column; gap: 16px; align-items: flex-start; }
    .contact-footer-bar { flex-direction: column; gap: 16px; align-items: flex-start; }
}
