/* ============================================================
   Fortys Digital — v4 "Dark Luxury" Edition
   Palette: Deep charcoal · warm amber/gold · off-white
   Fonts:   Cormorant Garamond (display) · Figtree (body)
   ============================================================ */

:root {
    /* Color tokens */
    --ink:          #0D0D0D;
    --ink-2:        #161616;
    --ink-3:        #1E1E1E;
    --ink-4:        #2A2A2A;
    --rule:         rgba(255,255,255,0.08);
    --gold:         #C9A84C;
    --gold-light:   #E2C97E;
    --gold-dim:     rgba(201,168,76,0.15);
    --gold-dimmer:  rgba(201,168,76,0.06);
    --cream:        #F5F0E8;
    --text-1:       #F0EBE0;
    --text-2:       #A89E8E;
    --text-3:       #6B6358;

    /* Typography scale */
    --display:  clamp(3rem, 8vw, 7rem);
    --h2:       clamp(2rem, 4.5vw, 3.75rem);
    --h3:       clamp(1.1rem, 2vw, 1.35rem);
    --body:     1rem;
    --small:    0.875rem;
    --xs:       0.8125rem;

    /* Spacing */
    --section-pad: clamp(5rem, 10vw, 9rem);

    /* Radius */
    --r-sm: 4px;
    --r:    8px;
    --r-lg: 16px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Figtree', -apple-system, sans-serif;
    font-size: var(--body);
    line-height: 1.65;
    color: var(--text-1);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Typography helpers ─────────────────────────────── */
em { font-style: italic; }

/* ─── Layout ─────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--rule);
}

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.75rem;
    font-family: 'Figtree', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--r);
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
    border: 1.5px solid var(--gold);
}
.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--text-1);
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.25s var(--ease);
}
.btn:hover .btn-icon { transform: translateX(4px); }

/* ─── Section headings ────────────────────────────────── */
.section-label {
    display: block;
    font-size: var(--xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: var(--h2);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-1);
    margin-bottom: 1.5rem;
}
.section-title em {
    color: var(--gold);
    font-style: italic;
}

/* ─── Scroll animations ───────────────────────────────── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.scroll-reveal[data-stagger="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-stagger="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-stagger="3"] { transition-delay: 0.3s; }

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

.reveal-line {
    display: block;
    overflow: hidden;
}
.reveal-line-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 0.8s var(--ease-out);
}
.reveal-line-inner.visible { transform: translateY(0); }

.reveal-fade {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Header ──────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(13,13,13,0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-color: var(--rule);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo, .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: var(--r-sm);
    overflow: hidden;
}
.logo-mark svg {
    width: 36px;
    height: 36px;
    display: block;
}

.logo-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--text-1);
}
.logo-name em { color: var(--gold); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.25s var(--ease);
}
.nav-link:hover { color: var(--text-1); }
.nav-link:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
}
.toggle-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-1);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}
.nav-toggle.open .toggle-line:first-child { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open .toggle-line:last-child  { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Hero ────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 9rem 0 5rem;
    overflow: hidden;
}

/* Giant background "40" numeral */
.hero-bg-number {
    position: absolute;
    top: 50%;
    right: -0.05em;
    transform: translateY(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16rem, 35vw, 38rem);
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(201,168,76,0.08);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-top {
    margin-bottom: 2rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.eyebrow-dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
    margin-bottom: 4rem;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--display);
    font-weight: 400;
    line-height: 1.05;
    color: var(--text-1);
}
.title-italic {
    font-style: italic;
    color: var(--gold);
}

.hero-aside {
    padding-bottom: 0.5rem;
}

.hero-desc {
    font-size: 1.0625rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 420px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 2rem 2.5rem;
    background: var(--ink-2);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
}

.stat {
    flex: 1;
    text-align: center;
    padding: 0.5rem 1rem;
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
}
.stat-suffix {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--gold);
}
.stat-lbl {
    display: block;
    font-size: var(--xs);
    color: var(--text-3);
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--rule);
    flex-shrink: 0;
}

/* Hero image strip */
.hero-image-strip {
    position: absolute;
    top: 0; right: 0;
    width: 38%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.strip-inner {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.18;
    filter: grayscale(60%) sepia(20%);
}
.strip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--ink) 0%, transparent 60%),
                linear-gradient(to top,   var(--ink) 0%, transparent 40%);
}

/* ─── Services ────────────────────────────────────────── */
.section-head {
    margin-bottom: 3.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.25rem 2rem;
    background: var(--ink-2);
    transition: background 0.25s var(--ease);
    cursor: default;
}
.service-item:hover { background: var(--ink-3); }
.service-item:hover .service-arrow { opacity: 1; transform: translateX(0); }

.service-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0.05em;
}

.service-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r);
    background: var(--gold-dimmer);
    border: 1px solid rgba(201,168,76,0.12);
    color: var(--gold);
    flex-shrink: 0;
}
.service-icon-wrap svg { width: 22px; height: 22px; }

.service-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 0.5rem;
}
.service-body p {
    font-size: 0.9125rem;
    color: var(--text-2);
    line-height: 1.7;
}

.service-arrow {
    position: absolute;
    top: 2.25rem;
    right: 2rem;
    width: 20px; height: 20px;
    color: var(--gold);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s, transform 0.2s var(--ease);
}
.service-arrow svg { width: 20px; height: 20px; }

/* ─── Why Us ──────────────────────────────────────────── */
.why-us-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
}

.why-us-left .section-title { margin-bottom: 1.25rem; }
.why-us-left p { color: var(--text-2); margin-bottom: 2.5rem; line-height: 1.8; max-width: 380px; }

.why-us-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.pillar {
    padding: 2.25rem 2rem;
    background: var(--ink-2);
    transition: background 0.25s var(--ease);
}
.pillar:hover { background: var(--ink-3); }

.pillar-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1rem;
}

.pillar-text h4 {
    font-family: 'Figtree', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 0.4rem;
}
.pillar-text p {
    font-size: var(--small);
    color: var(--text-2);
    line-height: 1.65;
}

/* ─── Careers ─────────────────────────────────────────── */
.careers-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.careers-left .section-title { margin-bottom: 1.25rem; }
.careers-body { color: var(--text-2); line-height: 1.8; margin-bottom: 2rem; max-width: 380px; }

.perks-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.perks-list li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-2);
}
.perk-icon {
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}

/* Resume CTA card */
.resume-cta-card {
    background: var(--ink-2);
    border: 1px solid var(--rule);
    border-radius: var(--r-lg);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.resume-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-dimmer);
    border: 1px solid rgba(201,168,76,0.2);
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.resume-cta-icon svg { width: 28px; height: 28px; }

.resume-cta-label {
    font-size: var(--xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
}

.resume-cta-email {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gold);
    transition: color 0.2s;
}
.resume-cta-email:hover { color: var(--gold-light); }

.resume-cta-formats {
    font-size: var(--xs);
    color: var(--text-3);
    margin-bottom: 0.5rem;
}

.resume-cta-btn { margin-top: 0.75rem; }

/* ─── Contact ─────────────────────────────────────────── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 6rem;
    align-items: start;
}

.contact-left .section-title { margin-bottom: 1.25rem; }
.contact-body { color: var(--text-2); line-height: 1.8; margin-bottom: 2.5rem; max-width: 360px; }

.contact-detail { margin-top: 1rem; }
.contact-detail + .contact-detail { margin-top: 1.25rem; }
.detail-label {
    display: block;
    font-size: var(--xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
    margin-bottom: 0.3rem;
}
.detail-value {
    font-size: 1.0625rem;
    color: var(--gold);
    transition: color 0.2s;
}
.detail-value:hover { color: var(--gold-light); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 0; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-row .field { margin-bottom: 0; }

.field label {
    font-size: var(--small);
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.02em;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: 'Figtree', sans-serif;
    font-size: var(--body);
    color: var(--text-1);
    background: var(--ink-3);
    border: 1px solid var(--rule);
    border-radius: var(--r);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }

.field input:focus,
.field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}

.field textarea { min-height: 130px; }

.form-success {
    display: none;
    margin-top: 1rem;
    font-size: var(--small);
    color: var(--gold);
    text-align: center;
}
.form-success.show { display: block; }

/* ─── Footer ──────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--rule);
    padding: 3.5rem 0 2rem;
}

.footer-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--rule);
    flex-wrap: wrap;
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-3);
    max-width: 380px;
}

.footer-mid {
    display: flex;
    gap: 4rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--rule);
    flex-wrap: wrap;
}

.footer-col { min-width: 120px; }
.footer-col h5 {
    font-size: var(--xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
    font-size: var(--small);
    color: var(--text-2);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.social-links { display: flex; gap: 0.75rem; }
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--r-sm);
    background: var(--ink-3);
    border: 1px solid var(--rule);
    color: var(--text-2);
    transition: all 0.2s;
}
.social-links a:hover {
    color: var(--gold);
    border-color: rgba(201,168,76,0.3);
    background: var(--gold-dimmer);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { font-size: var(--small); color: var(--text-3); }

.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: var(--small); color: var(--text-3); transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-image-strip { width: 30%; }
}

@media (max-width: 900px) {
    .hero-body { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-image-strip { display: none; }
    .hero-bg-number { font-size: 50vw; opacity: 0.5; }

    .why-us-layout,
    .careers-layout,
    .contact-layout { grid-template-columns: 1fr; gap: 3.5rem; }

    .why-us-right { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(13,13,13,0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.75rem;
        border-bottom: 1px solid var(--rule);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-toggle { display: flex; }

    .services-grid { grid-template-columns: 1fr; }
    .why-us-right { grid-template-columns: 1fr; }

    .hero-stats { flex-direction: column; gap: 0; padding: 1rem; }
    .stat-divider { width: 80%; height: 1px; }
    .stat { width: 100%; }

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

    .footer-mid { gap: 2.5rem; }
    .footer-top { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: clamp(2.4rem, 11vw, 3.5rem); }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
