/* ============================================================
   DOUBLEONE — Home Page Styles
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    background-color: #EDE8DC;
    color: #111111;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul { list-style: none; }
a  { text-decoration: none; color: inherit; }

/* -- VARIABLES -- */
:root {
    --cream:    #EDE8DC;
    --black:    #111111;
    --darker:   #0D0D0D;
    --white:    #FFFFFF;
    --nav-h:    64px;
    --px:       80px;
    --max-w:    1320px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background-color: var(--cream);
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    height: var(--nav-h);
}

.nav__logo-img {
    height: 46px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 44px;
}

.nav__links a {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: #111;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.nav__links a:hover { opacity: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.22s, color 0.22s, border-color 0.22s;
    white-space: nowrap;
}

.btn--black {
    background: #111;
    color: #fff;
    border-color: #111;
}
.btn--black:hover {
    background: transparent;
    color: #111;
    border-color: #111;
}

.btn--border {
    background: transparent;
    color: #111;
    border-color: rgba(0,0,0,0.35);
}
.btn--border:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.btn--white {
    background: #fff;
    color: #111;
    border-color: #fff;
}
.btn--white:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    display: grid;
    grid-template-columns: 56% 44%;
    min-height: 100vh;
    background-color: var(--cream);
    padding-top: var(--nav-h);
    overflow: hidden;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px var(--px) 80px var(--px);
}

.hero__headline {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(44px, 4.6vw, 68px);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 28px;
}

.hero__headline em {
    font-style: italic;
}

.hero__sub {
    font-size: 13.5px;
    line-height: 1.85;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 44px;
    max-width: 360px;
}

.hero__btns {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* -- Hero Right: Photo & Overlays -- */
.hero__media {
    position: relative;
    overflow: hidden;
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

/* Chess piece thumbnail — top-right corner of photo */
.hero__chess {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 88px;
    height: 88px;
    z-index: 2;
    overflow: hidden;
    border: 1.5px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.hero__chess-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

/* Vertical "11" watermark on right edge */
.hero__tag {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 10px;
    z-index: 2;
}

/* ============================================================
   SHARED SECTION TYPOGRAPHY
   ============================================================ */

.section-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(36px, 3.4vw, 50px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1.04;
    color: #111111;
}

.section-body {
    font-size: 13.5px;
    line-height: 1.85;
    max-width: 460px;
    align-self: end;
    color: #888888;
}

/* ============================================================
   WHAT WE BUILD
   ============================================================ */

.services {
    background: var(--cream);
    padding: 88px var(--px) 100px;
}

.services__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: var(--max-w);
    margin: 0 auto 44px;
    align-items: end;
}

.services__heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.services__label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #A08060;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 26px 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}

.card__top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card__icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #A08060;
}

.card__title {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
    line-height: 1.25;
}

.card__text {
    font-size: 12.5px;
    line-height: 1.75;
    color: #999999;
    flex: 1;
}

.card__arrow {
    font-size: 14px;
    color: rgba(0,0,0,0.3);
    display: block;
    transition: color 0.2s;
}

.card:hover .card__arrow {
    color: #111;
}

/* ============================================================
   PROCESS — Interactive Stepper
   ============================================================ */

.process {
    background: #0D0D0D;
    padding: 88px var(--px) 100px;
}

/* Header */
.process__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: var(--max-w);
    margin: 0 auto 64px;
    align-items: end;
}

.process__header-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.process__label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #A08060;
}

.process__title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1.06;
    color: #fff;
}

.process__rule {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.process__desc {
    font-size: 13.5px;
    line-height: 1.85;
    color: rgba(255,255,255,0.4);
    max-width: 360px;
    align-self: end;
}

/* Timeline track */
.process__stepper {
    max-width: var(--max-w);
    margin: 0 auto;
}

.process__track-wrap {
    padding: 0 0 28px 0;
}

.process__track {
    position: relative;
    height: 1px;
    background: rgba(255,255,255,0.07);
}

.process__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 16.67%;
    background: linear-gradient(90deg, #A08060, #C8A478);
    transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.process__dot-indicator {
    position: absolute;
    top: 50%;
    left: 16.67%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #A08060;
    border: 2px solid #0D0D0D;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(160,128,96,0.2), 0 0 12px rgba(160,128,96,0.4);
    transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cards */
.process__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.process__card {
    position: relative;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.35s, background 0.35s;
}

.process__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.process__card.is-active {
    background: rgba(160,128,96,0.06);
    border-color: rgba(160,128,96,0.3);
}

.process__card:not(.is-active):hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.process__card-inner {
    padding: 28px 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.process__counter {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: rgba(255,255,255,0.18);
    transition: color 0.3s;
}

.process__card.is-active .process__counter {
    color: #A08060;
}

.process__card-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.process__icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.3);
    transition: background 0.35s, color 0.35s;
}

.process__card.is-active .process__icon {
    background: rgba(160,128,96,0.12);
    color: #C8A478;
}

.process__step-name {
    font-family: 'Barlow', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.38);
    transition: color 0.35s;
}

.process__card.is-active .process__step-name {
    color: #ffffff;
}

.process__step-desc {
    font-size: 12.5px;
    line-height: 1.75;
    color: rgba(255,255,255,0.3);
    transition: color 0.35s;
}

.process__card.is-active .process__step-desc {
    color: rgba(255,255,255,0.58);
}

.process__tags {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 5px 11px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    width: fit-content;
    transition: border-color 0.35s, background 0.35s;
}

.process__tags span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    transition: color 0.35s;
}

.process__dot-sep { color: rgba(255,255,255,0.14) !important; }

.process__card.is-active .process__tags {
    border-color: rgba(160,128,96,0.28);
    background: rgba(160,128,96,0.06);
}

.process__card.is-active .process__tags span {
    color: rgba(200,164,120,0.8);
}

/* Progress bar at bottom of card */
.process__progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #A08060, #C8A478);
    transition: none;
}

.process__card.is-active .process__progress-bar {
    width: 100%;
    transition: width 4s linear;
}

/* ============================================================
   ABOUT / STRATEGY
   ============================================================ */

.about {
    display: grid;
    grid-template-columns: 52% 48%;
    min-height: 62vh;
}

.about__img-wrap {
    overflow: hidden;
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    filter: grayscale(100%) contrast(1.08);
    display: block;
}

.about__body {
    background: var(--cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 88px;
}

.about__title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(28px, 2.6vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: #111;
    margin-bottom: 28px;
}

.about__text {
    font-size: 13.5px;
    line-height: 1.9;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 18px;
    max-width: 440px;
}

.about__text:last-of-type {
    margin-bottom: 44px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
    display: grid;
    grid-template-columns: 58% 42%;
    min-height: 520px;
    background: #111;
    overflow: hidden;
}

.cta-section__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px var(--px);
    gap: 32px;
}

.cta-section__title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(32px, 3.6vw, 52px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.025em;
    line-height: 1.04;
    color: #fff;
}

.cta-section__media {
    overflow: hidden;
    position: relative;
}

.cta-section__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.55;
}

/* ============================================================
   CTA FORM
   ============================================================ */

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 520px;
}

.cta-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cta-form__field {
    display: flex;
    flex-direction: column;
}

.cta-form__input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    border-radius: 0;
    width: 100%;
    -webkit-appearance: none;
}

.cta-form__input::placeholder {
    color: rgba(255,255,255,0.35);
}

.cta-form__input:focus {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.09);
}

.cta-form__textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.5;
}

.cta-form__footer {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-form__btn {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.cta-form__btn-sending {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.cta-form__btn.is-sending .cta-form__btn-label { opacity: 0; }
.cta-form__btn.is-sending .cta-form__btn-sending { opacity: 1; }

.cta-form__msg {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.cta-form__msg--success { color: #7edd9e; }
.cta-form__msg--error   { color: #f28b82; }

.btn--white {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.btn--white:hover {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: #0D0D0D;
    padding: 80px var(--px) 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer__logo {
    height: 42px;
    width: auto;
    margin-bottom: 16px;
    display: block;
    opacity: 0.9;
}

.footer__info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.9;
}

.footer__label {
    font-family: 'Barlow', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 18px;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__list a {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.48);
    transition: color 0.2s;
}

.footer__list a:hover {
    color: #fff;
}

.footer__bar {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 26px 0 34px;
}

.footer__bar p {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.06em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   HAMBURGER + MOBILE NAV OVERLAY  (base — always defined)
   ============================================================ */

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
    flex-shrink: 0;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* X animation when open */
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav__mobile {
    position: fixed;
    inset: 0;
    background: var(--darker);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 0 32px 48px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav__mobile.is-open {
    opacity: 1;
    visibility: visible;
}

.nav__mobile-logo {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    flex-shrink: 0;
}

.nav__mobile-logo img {
    height: 42px;
    width: auto;
}

.nav__mobile-close {
    position: absolute;
    top: 10px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.nav__mobile-close:hover { color: #fff; }

.nav__mobile-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 0;
    list-style: none;
}

.nav__mobile-links li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__mobile-links a {
    display: block;
    padding: 22px 0;
    font-family: 'Barlow', sans-serif;
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    transition: color 0.2s;
}

.nav__mobile-links a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 1100px) {
    :root { --px: 52px; }
}

@media (max-width: 900px) {
    :root { --px: 36px; }

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

    .hero__media {
        order: -1;
        min-height: 55vw;
        max-height: 65vh;
    }

    .hero__content {
        padding: 56px var(--px);
    }

    .hero__headline {
        font-size: clamp(36px, 8vw, 64px);
    }

    .services__top,
    .process__header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .process__track-wrap {
        display: none;
    }

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

    .about__img-wrap {
        min-height: 50vh;
    }

    .about__body {
        padding: 60px var(--px);
    }

    .cta-section {
        grid-template-columns: 1fr;
    }

    .cta-section__body {
        padding: 60px var(--px);
    }

    .cta-section__media {
        min-height: 280px;
    }

    .cta-form {
        max-width: 100%;
    }

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

    .footer__brand {
        grid-column: 1 / -1;
    }
}

/* 768px — switch to hamburger */
@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__content {
        padding: 48px var(--px);
    }
}

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

    .hero__headline {
        font-size: clamp(30px, 9vw, 48px);
    }

    .hero__subtext {
        font-size: 15px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    .cta-form__row {
        grid-template-columns: 1fr;
    }

    .cta-form__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-form__btn {
        width: 100%;
        justify-content: center;
    }

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

    .services__card {
        padding: 28px 24px;
    }

    .process__card {
        padding: 32px 24px;
    }

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

@media (max-width: 480px) {
    :root { --px: 20px; }

    .hero__headline {
        font-size: clamp(26px, 10vw, 40px);
    }

    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    .services__label,
    .process__label,
    .section-label {
        font-size: 9px;
    }

    .footer__nav {
        flex-direction: column;
        gap: 12px;
    }
}
