* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: Inter, Arial, sans-serif;
    background: #f4f2ec;
    color: #111111;
    -webkit-font-smoothing: antialiased;
    transition: background-color .4s ease, color .4s ease;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

body.dark-mode {
    background: #111111;
    color: #ffffff;
}

#app {
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

#sections {
    width: 100%;
    height: 100%;
    position: relative;
}

.page-section {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    background: #f4f2ec;
    color: #111111;
    transition:
        background-color .4s ease,
        color .4s ease,
        transform 900ms cubic-bezier(.77, 0, .18, 1),
        opacity 600ms ease,
        visibility 900ms;
    display: flex;
    align-items: center;
}

body.dark-mode .page-section {
    background: #111111;
    color: #ffffff;
}

.page-section.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.page-section.previous {
    visibility: visible;
    opacity: 1;
    transform: translateY(-100%);
}

header {
    color: #111111;
    pointer-events: none;
    transition: color .4s ease;
}

body.dark-mode header {
    color: #ffffff;
}

header button,
header a {
    pointer-events: auto;
}

.logo {
    color: inherit;
    text-align: -webkit-center;
}

.brand-dot {
    color: #ffc90c;
}

.menu-button,
.search-button,
.theme-toggle {
    color: inherit;
    transition: opacity .3s ease, color .4s ease;
}

.menu-button:hover,
.search-button:hover,
.theme-toggle:hover {
    opacity: .55;
}

.theme-toggle {
    width: 38px;
    height: 22px;
    border: 1px solid currentColor;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 5px;
    font-size: 11px;
}

.theme-icon {
    line-height: 1;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: .35;
}

body.dark-mode .sun-icon {
    opacity: .35;
}

body.dark-mode .moon-icon {
    opacity: 1;
}

.hamburger-icon {
    width: 22px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: width .3s ease;
}

.menu-button:hover .hamburger-icon span:last-child {
    width: 65%;
}

.section-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px clamp(24px, 6vw, 100px) 50px;
    position: relative;
    z-index: 5;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .25em;
    font-weight: 600;
    color: currentColor;
    opacity: .5;
    margin-bottom: 30px;
}

.hero-title,
.section-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: -.07em;
}

.hero-title {
    font-size: clamp(52px, 9vw, 150px);
    line-height: .83;
}

.section-title {
    font-size: clamp(55px, 8vw, 125px);
    line-height: .85;
}

/* Fixed: outline words now explicitly inherit the active theme color. */
.outline-text {
    color: transparent !important;
    -webkit-text-stroke: 1.5px #111111;
    text-shadow: none;
}

body.dark-mode .outline-text {
    color: transparent !important;
    -webkit-text-stroke: 1.5px #ffffff;
}

.accent-text {
    color: #ffc90c !important;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 55px;
}

.circle-button {
    width: 100px;
    height: 100px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    letter-spacing: .18em;
    color: inherit;
    background: transparent;
    transition: background .4s ease, color .4s ease, transform .4s ease;
}

.circle-button:hover {
    background: #ffc90c;
    color: #ffffff;
    transform: rotate(15deg);
}

.circle-button .arrow {
    font-size: 20px;
    margin-top: 4px;
}

.hero-number {
    position: absolute;
    right: 7%;
    bottom: 8%;
    font-size: clamp(100px, 18vw, 300px);
    font-weight: 900;
    line-height: .7;
    color: currentColor;
    opacity: .035;
    pointer-events: none;
}

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    letter-spacing: .25em;
    color: currentColor;
    opacity: .35;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroll-hint span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffc90c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: .2;
    }

    50% {
        opacity: 1;
    }
}

.about-copy {
    max-width: 550px;
}

.large-copy {
    font-size: clamp(25px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 600;
    margin-bottom: 30px;
}

.body-copy {
    max-width: 480px;
    font-size: 15px;
    line-height: 1.8;
    opacity: .55;
}

.about-line {
    width: 50px;
    height: 1px;
    background: currentColor;
}

.giant-letter {
    position: absolute;
    right: -3vw;
    bottom: -10vw;
    font-size: 45vw;
    line-height: .7;
    font-weight: 900;
    color: currentColor;
    opacity: .035;
    pointer-events: none;
}

.services-list {
    border-top: 1px solid currentColor;
    opacity: .95;
}

.service-item {
    display: grid;
    grid-template-columns: 40px 1fr 30px;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid currentColor;
    transition: padding .35s ease;
}

.service-item:hover {
    padding-left: 15px;
}

.service-item span:first-child {
    font-size: 10px;
    opacity: .5;
}

.service-item strong {
    font-size: clamp(16px, 1.6vw, 24px);
    font-weight: 500;
    letter-spacing: -.03em;
}

.service-item span:last-child {
    font-size: 20px;
}

.work-slider {
    width: 100%;
    height: min(38vh, 400px);
    overflow: hidden;
    position: relative;
}

.work-slider-track {
    display: flex;
    gap: 12px;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.work-card {
    position: relative;
    overflow: hidden;
    min-width: calc((100% - 24px) / 3);
    height: 100%;
    background: linear-gradient(135deg, #252525, #101010);
    transition: transform .5s ease;
    flex: 0 0 calc((100% - 24px) / 3);
}

.work-card:hover {
    transform: scale(.98);
}

.work-one {
    background: linear-gradient(135deg, #252525, #101010);
}

.work-two {
    background: linear-gradient(135deg, #53642e, #17200e);
}

.work-three {
    background: linear-gradient(135deg, #555, #1a1a1a);
}

.work-four {
    background: linear-gradient(135deg, #333, #111);
}

.work-five {
    background: linear-gradient(135deg, #40513b, #182019);
}

.work-six {
    background: linear-gradient(135deg, #454545, #151515);
}

.work-seven {
    background: linear-gradient(135deg, #313b28, #111);
}

.work-eight {
    background: linear-gradient(135deg, #505050, #171717);
}

.work-overlay {
    position: absolute;
    inset: 0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 70%);
    color: #fff;
}

.work-overlay>span:first-child {
    font-size: 8px;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .6);
}

.work-overlay h3 {
    font-size: clamp(25px, 3vw, 50px);
    line-height: .9;
    margin: 7px 0 0;
    letter-spacing: -.05em;
}

.work-arrow {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 22px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 70px;
    border-top: 1px solid currentColor;
}

.stat {
    padding-top: 25px;
    border-right: 1px solid currentColor;
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    font-size: clamp(45px, 6vw, 90px);
    line-height: .9;
    letter-spacing: -.07em;
}

.stat span {
    display: block;
    font-size: 9px;
    letter-spacing: .2em;
    margin-top: 15px;
    opacity: .5;
}

.contact-title {
    font-size: clamp(60px, 10vw, 160px);
    line-height: .82;
    letter-spacing: -.08em;
    font-weight: 900;
    margin: 0;
}

.contact-copy {
    max-width: 450px;
    margin: 35px auto;
    opacity: .5;
    line-height: 1.7;
}

.contact-button {
    padding: 18px 30px;
    border: 1px solid currentColor;
    font-size: 10px;
    letter-spacing: .2em;
    color: inherit;
    background: transparent;
    transition: background .3s ease, color .3s ease;
}

.contact-button:hover {
    background: #ffc90c;
    color: #fff;
}

.contact-button span {
    margin-left: 15px;
    font-size: 18px;
}

.contact-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 6vw;
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: .15em;
    opacity: .35;
    z-index: 10;
}

/* Fixed: no visible 01/02/03 numbers beside vertical dots. */
.section-dots {
    display: flex;
    flex-direction: column;
    gap: 11px;
    align-items: center;
}

.section-dot {
    position: relative;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: #111;
    opacity: .45;
    transition: transform .4s ease, background .4s ease, opacity .4s ease;
}

body.dark-mode .section-dot {
    color: #fff;
}

.section-dot.active {
    width: 13px;
    height: 13px;
    background: #ffc90c;
    border-color: #ffc90c;
    opacity: 1;
    transform: scale(1.2);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #ffc90c;
    color: #fff;
    visibility: hidden;
    opacity: 0;
    clip-path: circle(0% at 0 0);
    transition:
        clip-path 800ms cubic-bezier(.77, 0, .18, 1),
        opacity .2s ease,
        visibility 800ms;
}

.menu-overlay.open {
    visibility: visible;
    opacity: 1;
    clip-path: circle(150% at 0 0);
}

.menu-overlay-inner {
    height: 100%;
    padding: 35px clamp(24px, 6vw, 100px);
    display: flex;
    flex-direction: column;
}

.close-menu {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 9px;
    letter-spacing: .2em;
}

.close-menu span {
    font-size: 30px;
    line-height: 10px;
}

.menu-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-links button {
    display: flex;
    align-items: baseline;
    gap: 25px;
    text-align: left;
    font-size: clamp(35px, 6vw, 90px);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.06em;
    transition: transform .35s ease;
}

.menu-links button span {
    font-size: 9px;
    letter-spacing: .1em;
    font-weight: 500;
    opacity: .45;
}

.menu-links button:hover {
    transform: translateX(20px);
}

.menu-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-width: 200px;
}

.menu-info div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-info div>span {
    font-size: 8px;
    letter-spacing: .2em;
    opacity: .5;
    margin-bottom: 5px;
}

.menu-info a,
.menu-info p {
    font-size: 13px;
    margin: 0;
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(17, 17, 17, .97);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.close-search {
    position: absolute;
    right: 35px;
    top: 30px;
    font-size: 35px;
}

.search-box {
    width: min(800px, 80vw);
}

.search-box p {
    font-size: 9px;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .4);
}

.search-box input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    outline: none;
    padding: 15px 0;
    font-size: clamp(30px, 5vw, 70px);
    color: white;
    letter-spacing: -.04em;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, .2);
}

.search-box span {
    display: block;
    margin-top: 15px;
    font-size: 8px;
    letter-spacing: .2em;
    color: rgba(255, 255, 255, .3);
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .8s ease .2s,
        transform .8s cubic-bezier(.2, .8, .2, 1) .2s;
}

.page-section.active .reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .section-content {
        padding: 100px 24px 40px;
    }

    .hero-title {
        font-size: clamp(48px, 15vw, 100px);
    }

    .section-title {
        font-size: clamp(50px, 14vw, 100px);
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .circle-button {
        width: 80px;
        height: 80px;
    }

    .section-dots {
        gap: 9px;
    }

    .section-dot {
        width: 7px;
        height: 7px;
    }

    .section-dot.active {
        width: 11px;
        height: 11px;
    }

    .work-slider {
        height: 40vh;
        max-height: 400px;
    }

    .work-card {
        min-width: 100%;
        flex-basis: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        margin-top: 45px;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid currentColor;
        padding-bottom: 20px;
    }

    .stat strong {
        font-size: 48px;
    }

    .menu-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .menu-links button {
        font-size: clamp(35px, 10vw, 65px);
    }

    .menu-info {
        display: none;
    }

    .contact-title {
        font-size: clamp(60px, 16vw, 120px);
    }

    .contact-footer {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        text-align: center;
        padding: 0 24px;
        padding-bottom: env(safe-area-inset-bottom, 10px);
    }

    .giant-letter {
        font-size: 90vw;
        bottom: 0;
    }

    .theme-toggle {
        width: 34px;
        height: 20px;
    }
}

@media (max-height: 650px) {
    .section-content {
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .hero-title {
        font-size: clamp(45px, 8vw, 100px);
    }

    .section-title {
        font-size: clamp(45px, 7vw, 90px);
    }

    .hero-bottom {
        margin-top: 30px;
    }

    .work-slider {
        height: 32vh;
    }

    .stats-grid {
        margin-top: 35px;
    }
}

.light-logo {
    display: block;
}

.dark-logo {
    display: none;
}

body.dark-mode .light-logo {
    display: none;
}

body.dark-mode .dark-logo {
    display: block;
}