/* Homepage composition. Shared navigation, footer and controls remain in style.css. */

.home-hero {
    position: relative;
    min-height: min(900px, 100svh);
    padding: 176px 0 92px;
    overflow: hidden;
    isolation: isolate;
}

.home-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: -2;
    width: 29vw;
    height: 100%;
    background: rgba(214,166,146,.26);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: 20vw;
    bottom: -26vw;
    z-index: -1;
    width: 58vw;
    aspect-ratio: 1;
    border: 1px solid rgba(41,37,34,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 7vw rgba(77,97,96,.035), 0 0 0 14vw rgba(214,166,146,.055);
    pointer-events: none;
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(320px, .52fr);
    gap: clamp(56px, 8vw, 120px);
    align-items: center;
}

.home-hero-copy {
    max-width: 980px;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: var(--cool);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.home-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--secondary);
}

.home-hero h1 {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(3.7rem, 7.6vw, 5.6rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .98;
    text-wrap: balance;
}

.home-hero-copy > p {
    max-width: 760px;
    margin: 34px 0 0;
    color: rgba(41,37,34,.72);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.65;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    margin-top: 38px;
}

.home-text-link,
.home-inline-link {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: var(--text);
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}

.home-text-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(41,37,34,.4);
}

.home-text-link:hover,
.home-text-link:focus,
.home-inline-link:hover,
.home-inline-link:focus {
    color: var(--cool);
}

.home-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 58px 0 0;
    padding: 0;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .69rem;
    letter-spacing: .08em;
    list-style: none;
    text-transform: uppercase;
}

.home-hero-meta li {
    position: relative;
    padding-left: 14px;
}

.home-hero-meta li::before {
    content: "";
    position: absolute;
    top: .65em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--secondary);
}

.home-hero-index {
    position: relative;
    min-height: 580px;
    padding: 30px;
    overflow: hidden;
    border-radius: 5px 5px 34px 5px;
    color: #efd9b4;
    background: #292522;
    box-shadow: 0 28px 70px rgba(41,37,34,.18);
}

.home-hero-index-head {
    display: flex;
    position: relative;
    z-index: 2;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(239,217,180,.18);
    color: #a39081;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-hero-index-head strong {
    color: #efd9b4;
}

.home-hero-index ol {
    position: relative;
    z-index: 2;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.home-hero-index li + li {
    border-top: 1px solid rgba(239,217,180,.13);
}

.home-hero-index a {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 18px 0;
    color: #efd9b4;
    text-decoration: none;
}

.home-hero-index a > span {
    color: #d6a692;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .68rem;
}

.home-hero-index a strong {
    font-size: .96rem;
    font-weight: 600;
    transition: transform .22s ease;
}

.home-hero-index a:hover strong,
.home-hero-index a:focus strong {
    transform: translateX(7px);
}

.home-hero-orbit {
    position: absolute;
    right: -100px;
    bottom: -104px;
    width: 330px;
    aspect-ratio: 1;
    border: 1px solid rgba(239,217,180,.18);
    border-radius: 50%;
}

.home-hero-orbit::before,
.home-hero-orbit::after {
    content: "";
    position: absolute;
    inset: 15%;
    border: 1px solid rgba(214,166,146,.22);
    border-radius: 50%;
}

.home-hero-orbit::after {
    inset: 34%;
    background: rgba(77,97,96,.42);
}

.home-hero-orbit span {
    position: absolute;
    z-index: 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d6a692;
}

.home-hero-orbit span:nth-child(1) { top: 11%; left: 30%; }
.home-hero-orbit span:nth-child(2) { top: 46%; left: 2%; }
.home-hero-orbit span:nth-child(3) { top: 24%; right: 9%; }

.home-split {
    display: grid;
    grid-template-columns: minmax(150px, .34fr) minmax(0, 1.66fr);
    gap: clamp(44px, 8vw, 130px);
}

.home-section-label {
    display: flex;
    gap: 14px;
    align-items: baseline;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-section-label span {
    color: var(--secondary);
    font-weight: 800;
}

.home-section-label p {
    margin: 0;
}

.home-manifesto {
    border-top: 1px solid var(--border);
}

.home-manifesto h2,
.home-section-intro h2,
.home-3d-copy h2 {
    margin: 0;
    font-size: clamp(2.6rem, 5.2vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .98;
    text-wrap: balance;
}

.home-manifesto-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    gap: clamp(44px, 8vw, 110px);
    align-items: start;
    margin-top: 62px;
}

.home-lead {
    margin: 0;
    color: rgba(41,37,34,.75);
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.7;
}

.home-principles {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.home-principles li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: .9rem;
}

.home-principles span,
.home-service-number,
.home-process-list > li > span {
    color: var(--secondary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .7rem;
}

.home-services {
    border-block: 1px solid var(--border);
    background: rgba(41,37,34,.025);
}

.home-section-intro {
    display: grid;
    grid-template-columns: minmax(150px, .34fr) minmax(0, 1.66fr);
    gap: clamp(44px, 8vw, 130px);
    align-items: start;
}

.home-section-intro > div:last-child > p {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--text-muted);
    font-size: 1.06rem;
    line-height: 1.7;
}

.home-service-list {
    margin-top: 78px;
    border-top: 1px solid var(--border);
}

.home-service-row {
    border-bottom: 1px solid var(--border);
}

.home-service-row > a {
    display: grid;
    grid-template-columns: 54px minmax(280px, 1.1fr) minmax(250px, .8fr) 32px;
    gap: 26px;
    align-items: center;
    padding: 32px 4px;
    color: var(--text);
    text-decoration: none;
    transition: padding .24s ease, background .24s ease;
}

.home-service-row > a:hover,
.home-service-row > a:focus {
    padding-inline: 18px;
    background: rgba(214,166,146,.13);
}

.home-service-row h3 {
    margin: 0 0 8px;
    font-size: clamp(1.45rem, 2.5vw, 2.25rem);
    font-weight: 750;
    letter-spacing: -.035em;
}

.home-service-row p {
    max-width: 560px;
    margin: 0;
    color: var(--text-muted);
    font-size: .93rem;
}

.home-service-row ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-service-row li {
    padding: 6px 10px;
    border: 1px solid rgba(41,37,34,.16);
    border-radius: 99px;
    color: var(--text-muted);
    font-size: .69rem;
    white-space: nowrap;
}

.home-service-arrow {
    font-size: 1.2rem;
    transition: transform .2s ease;
}

.home-service-row > a:hover .home-service-arrow,
.home-service-row > a:focus .home-service-arrow {
    transform: translate(4px, -4px);
}

.home-process {
    color: #efd9b4;
    background: #292522;
}

.home-section-intro-light .home-section-label,
.home-section-intro-light > div:last-child > p {
    color: #a39081;
}

.home-section-intro-light h2 {
    color: #f7ead4;
}

.home-section-intro-light .home-inline-link {
    margin-top: 26px;
    color: #efd9b4;
}

.home-process-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 82px 0 0;
    padding: 0;
    border-top: 1px solid rgba(239,217,180,.2);
    list-style: none;
}

.home-process-list li {
    position: relative;
    min-height: 250px;
    padding: 30px 28px 28px 0;
    border-right: 1px solid rgba(239,217,180,.16);
}

.home-process-list li + li {
    padding-left: 28px;
}

.home-process-list li:last-child {
    border-right: 0;
}

.home-process-list li::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d6a692;
}

.home-process-list h3 {
    margin: 55px 0 14px;
    color: #f7ead4;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    letter-spacing: -.035em;
}

.home-process-list p {
    margin: 0;
    color: #a39081;
    font-size: .9rem;
    line-height: 1.7;
}

.home-3d {
    overflow: hidden;
}

.home-3d-layout {
    display: grid;
    grid-template-columns: minmax(380px, .9fr) minmax(0, 1.1fr);
    gap: clamp(60px, 10vw, 150px);
    align-items: center;
}

.home-3d-visual {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 5px 5px 34px 5px;
    background: linear-gradient(145deg, rgba(77,97,96,.14), rgba(214,166,146,.24));
}

.home-3d-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 360px;
    aspect-ratio: 1;
    border: 1px solid rgba(41,37,34,.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.home-3d-ring-two {
    width: 480px;
    border-color: rgba(77,97,96,.18);
}

.home-3d-object {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 220px;
    transform: translate(-50%, -50%) rotate(-12deg) skewY(5deg);
}

.home-3d-object span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(239,217,180,.34);
    background: #4d6160;
    box-shadow: 0 28px 70px rgba(41,37,34,.2);
}

.home-3d-object span:nth-child(2) {
    transform: translate(18px, -18px);
    background: #a39081;
}

.home-3d-object span:nth-child(3) {
    transform: translate(36px, -36px);
    background: #292522;
}

.home-3d-tag {
    position: absolute;
    padding: 8px 12px;
    border: 1px solid rgba(41,37,34,.16);
    border-radius: 99px;
    color: var(--text);
    background: rgba(239,217,180,.9);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .66rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-3d-tag::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--cool);
}

.home-3d-tag-one { top: 18%; left: 8%; }
.home-3d-tag-two { right: 7%; bottom: 25%; }
.home-3d-tag-three { bottom: 10%; left: 13%; }

.home-3d-copy {
    max-width: 720px;
}

.home-3d-copy > p {
    margin: 30px 0 0;
    color: var(--text-muted);
    font-size: 1.06rem;
    line-height: 1.8;
}

.home-3d-copy ul {
    display: grid;
    gap: 12px;
    margin: 30px 0 38px;
    padding: 0;
    color: var(--text-muted);
    list-style: none;
}

.home-3d-copy li {
    position: relative;
    padding-left: 24px;
}

.home-3d-copy li::before {
    content: "";
    position: absolute;
    top: .65em;
    left: 0;
    width: 8px;
    height: 2px;
    background: var(--secondary);
}

.home-technology {
    border-block: 1px solid var(--border);
    background: rgba(77,97,96,.07);
}

.home-technology-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 76px;
    border: 1px solid var(--border);
    background: var(--border);
}

.home-technology-grid article {
    min-height: 480px;
    padding: clamp(30px, 5vw, 58px);
    background: #efd9b4;
}

.home-panel-index {
    color: var(--cool);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-technology-grid h3 {
    margin: 30px 0 18px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    letter-spacing: -.045em;
    line-height: 1.05;
}

.home-technology-grid article > p {
    color: var(--text-muted);
    line-height: 1.75;
}

.home-tech-groups {
    margin: 32px 0 0;
    padding: 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.home-tech-groups li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .72rem;
}

.home-data-note {
    margin-top: 34px;
    padding: 24px;
    border-left: 3px solid var(--cool);
    background: rgba(77,97,96,.1);
}

.home-data-note strong {
    display: block;
    margin-bottom: 8px;
}

.home-data-note p {
    margin: 0;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.65;
}

.home-inline-link-dark {
    margin-top: 36px;
}

@media (max-width: 1100px) {
    .home-hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(290px, .42fr);
        gap: 46px;
    }

    .home-hero h1 {
        font-size: clamp(3.6rem, 7.8vw, 6rem);
    }

    .home-service-row > a {
        grid-template-columns: 42px minmax(0, 1fr) 30px;
    }

    .home-service-row ul {
        display: none;
    }

    .home-3d-layout {
        gap: 64px;
    }
}

@media (max-width: 900px) {
    .home-hero {
        min-height: auto;
        padding-top: 144px;
    }

    .home-hero::before {
        top: auto;
        bottom: 0;
        width: 100%;
        height: 32%;
    }

    .home-hero-layout,
    .home-split,
    .home-section-intro,
    .home-manifesto-grid,
    .home-3d-layout {
        grid-template-columns: 1fr;
    }

    .home-hero-index {
        min-height: 500px;
    }

    .home-section-label {
        padding-bottom: 18px;
        border-bottom: 1px solid var(--border);
    }

    .home-manifesto-grid,
    .home-service-list,
    .home-process-list,
    .home-technology-grid {
        margin-top: 52px;
    }

    .home-process-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-process-list li:nth-child(2) {
        border-right: 0;
    }

    .home-process-list li:nth-child(n+3) {
        border-top: 1px solid rgba(239,217,180,.16);
    }

    .home-process-list li:nth-child(3) {
        padding-left: 0;
    }

    .home-3d-visual {
        min-height: 520px;
        order: 2;
    }

    .home-technology-grid article {
        min-height: auto;
    }
}

@media (max-width: 650px) {
    .home-hero {
        padding: 124px 0 70px;
    }

    .home-hero h1 {
        font-size: clamp(3rem, 14.5vw, 4.3rem);
        line-height: .94;
    }

    .home-hero-copy > p {
        margin-top: 26px;
    }

    .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-text-link {
        justify-content: space-between;
    }

    .home-hero-meta {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 42px;
    }

    .home-hero-index {
        min-height: 470px;
        padding: 24px;
    }

    .home-manifesto h2,
    .home-section-intro h2,
    .home-3d-copy h2 {
        font-size: clamp(2.45rem, 12vw, 3.7rem);
    }

    .home-service-row > a {
        grid-template-columns: 30px minmax(0, 1fr) 24px;
        gap: 12px;
        padding: 26px 0;
    }

    .home-service-row > a:hover,
    .home-service-row > a:focus {
        padding-inline: 8px;
    }

    .home-service-row p {
        font-size: .84rem;
    }

    .home-process-list,
    .home-technology-grid {
        grid-template-columns: 1fr;
    }

    .home-process-list li,
    .home-process-list li + li,
    .home-process-list li:nth-child(3) {
        min-height: auto;
        padding: 26px 0 32px;
        border-top: 1px solid rgba(239,217,180,.16);
        border-right: 0;
    }

    .home-process-list li:first-child {
        border-top: 0;
    }

    .home-process-list h3 {
        margin-top: 24px;
    }

    .home-process-list li::before {
        display: none;
    }

    .home-3d-visual {
        min-height: 430px;
    }

    .home-3d-ring { width: 280px; }
    .home-3d-ring-two { width: 380px; }
    .home-3d-object { width: 130px; height: 170px; }

    .home-technology-grid article {
        padding: 28px 22px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .home-hero-orbit {
        animation: home-orbit-drift 12s ease-in-out infinite alternate;
    }

    .home-3d-object {
        animation: home-object-float 5s ease-in-out infinite alternate;
    }
}

@keyframes home-orbit-drift {
    to { transform: rotate(14deg) translate(-8px, -5px); }
}

@keyframes home-object-float {
    to { transform: translate(-50%, calc(-50% - 12px)) rotate(-8deg) skewY(5deg); }
}











/* ==========================================
   HERO INDEX — FULL SCREEN ARRIVAL
   ========================================== */

/* Allow the box to enter from outside the viewport */

.home-hero {
    overflow: clip;
}

.home-hero-layout {
    overflow: visible;
}

/* One-time entrance animation */

.home-hero-index {
    animation: hero-index-arrival 1.65s both;
    animation-timing-function: linear;
    backface-visibility: hidden;
}

@keyframes hero-index-arrival {
    0% {
        opacity: 1;
        transform: translate3d(110vw, 0, 0);
        animation-timing-function: cubic-bezier(1.22, 1.7, 1.35, 2);
    }

    68% {
        transform: translate3d(-14px, 0, 0);
        animation-timing-function: ease-out;
    }

    78% {
        transform: translate3d(7px, 0, 0);
    }

    87% {
        transform: translate3d(-6px, 0, 0);
    }

    94% {
        transform: translate3d(4px, 0, 0);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    .home-hero-index {
        animation: none;
        transform: none;
    }
}
