/* Artifact Systems — homepage sections (brand redesign).
   Shared tokens, nav, buttons, eyebrows and footer live in style.css. */

.wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section { padding: 7rem 0; position: relative; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    max-width: 680px;
    margin-top: 1rem;
}

.section-head p {
    color: var(--text-muted);
    max-width: 420px;
    font-size: 1.05rem;
}

.on-dark .eyebrow { color: var(--teal); }

/* ===== Hero ===== */
.home-hero {
    background: var(--navy);
    color: var(--mist);
    padding: 10rem 0 0;
    position: relative;
    overflow: hidden;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-words {
    font-size: clamp(3rem, 7.2vw, 6.25rem);
    font-weight: 500;
    line-height: 0.98;
    text-transform: uppercase;
    color: var(--teal);
    margin: 1.5rem 0 2rem;
    letter-spacing: 0.01em;
}

.hero-words span {
    display: block;
    opacity: 0;
    transform: translateY(24px);
    animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) forwards;
}

.hero-words span:nth-child(2) { animation-delay: 0.12s; }
.hero-words span:nth-child(3) { animation-delay: 0.24s; color: var(--mist); }
.hero-words span:nth-child(4) { animation-delay: 0.36s; }

@keyframes rise { to { opacity: 1; transform: none; } }

.hero-lede {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(230, 231, 232, 0.8);
    max-width: 540px;
    margin-bottom: 2.25rem;
}

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

.hero-stack {
    margin-top: 2.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: rgba(230, 231, 232, 0.75);
}

.hero-stack b { color: var(--teal); font-weight: 500; }

/* Logo-mark grid (Pattern 1) */
.mark-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(6px, 1vw, 12px);
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-left: auto;
}

.mark-grid svg {
    width: 100%;
    height: auto;
    opacity: 0.14;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.mark-grid svg.lit { opacity: 1; transform: translateY(-2px); }
.mark-grid svg.half { opacity: 0.45; }

/* Arc bands (Pattern 2) */
.arc-bands {
    display: block;
    width: 100%;
    height: clamp(90px, 12vw, 190px);
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

/* ===== Clients ===== */
.clients { padding: 3.5rem 0 1rem; }

.clients-label {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 2rem;
}

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 50s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track img {
    height: 44px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 0.9;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.marquee-track img:hover { opacity: 1; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Three ways ===== */
.ways {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.way {
    position: relative;
    padding: 2.5rem;
    border-radius: var(--radius);
    background: var(--surface-alt);
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 340px;
    overflow: hidden;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.way-num {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    color: var(--teal-deep);
}

.way h3 { font-size: 1.9rem; }
.way p { color: var(--ink-soft); flex-grow: 1; transition: color 0.25s ease; }

.way-go {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.way-peak {
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 180px;
    opacity: 0.18;
    transition: opacity 0.25s ease, transform 0.4s ease;
}

.way:hover {
    background: var(--navy);
    color: var(--mist);
    transform: translateY(-6px);
}

.way:hover p { color: rgba(230, 231, 232, 0.75); }
.way:hover .way-num { color: var(--teal); }
.way:hover .way-peak { opacity: 0.9; transform: translateY(-10px); }

/* ===== Services ===== */
.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.service {
    padding: 2.5rem 2.25rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    position: relative;
    transition: background 0.25s ease;
}

.service::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 0;
    background: var(--teal);
    transition: width 0.35s ease;
}

.service:hover { background: var(--surface-alt); }
.service:hover::after { width: 100%; }

.service i {
    font-size: 1.5rem;
    color: var(--teal-deep);
    margin-bottom: 1.5rem;
    display: block;
}

.service h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.service p { color: var(--ink-soft); font-size: 0.98rem; }

.service .tags {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.service .tags span {
    font-size: 0.78rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-soft);
}

/* ===== Products ===== */
.products {
    background: var(--indigo);
    color: var(--mist);
    overflow: hidden;
    padding-bottom: clamp(10rem, 18vw, 15rem);
}

.products .section-head p { color: rgba(230, 231, 232, 0.7); }

.product-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.product {
    background: #24225E;
    border: 1px solid rgba(230, 231, 232, 0.1);
    border-radius: var(--radius);
    padding: 2rem;
    text-decoration: none;
    color: var(--mist);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 300px;
    transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.product:hover {
    border-color: var(--teal);
    transform: translateY(-6px);
    background: var(--navy);
}

.product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(69, 172, 156, 0.15);
    color: var(--teal);
    font-size: 1.2rem;
}

.pill {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(69, 172, 156, 0.18);
    color: var(--teal);
}

.pill.muted { background: rgba(230, 231, 232, 0.1); color: rgba(230, 231, 232, 0.65); }

.product h3 { font-size: 1.6rem; }
.product p { color: rgba(230, 231, 232, 0.7); flex-grow: 1; font-size: 0.98rem; }
.product .meta { font-size: 0.9rem; color: var(--teal); }

.peaks {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(52vw, 640px);
    z-index: 1;
}

/* ===== Talents ===== */
.talents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.talents-copy h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin: 1rem 0 1.25rem;
}

.talents-copy > p {
    color: var(--ink-soft);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.checks { list-style: none; display: grid; gap: 1.1rem; margin-bottom: 2.5rem; }

.checks li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 0.75rem;
    align-items: start;
}

.checks li i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(69, 172, 156, 0.15);
    color: var(--teal-deep);
    font-size: 0.75rem;
    margin-top: 0.1rem;
}

.checks b { font-weight: 500; }
.checks span { color: var(--ink-soft); }

.role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.role-chips span {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--surface-alt);
    font-size: 0.9rem;
}

/* ===== Team / proof ===== */
.team { background: var(--surface-alt); }

.team-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.team-photo {
    position: relative;
    border-radius: 240px 240px var(--radius) var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3.4;
    background: var(--teal);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.team-copy h2 { font-size: clamp(2rem, 4vw, 3.25rem); margin: 1rem 0 1.25rem; }
.team-copy > p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 2.5rem; }

.home-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.home-stat b {
    display: block;
    font-size: 2.75rem;
    font-weight: 500;
    line-height: 1;
    color: var(--teal-deep);
}

.home-stat span { color: var(--ink-soft); font-size: 0.95rem; }

.industries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.industries span {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.9rem;
    background: var(--surface);
}

/* ===== Closing CTA ===== */
.closing {
    background: var(--navy);
    color: var(--mist);
    padding: 0 0 7rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.closing .arc-bands { margin: -1px 0 5rem; transform: scaleY(-1); }

.closing h2 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    max-width: 820px;
    margin: 1.25rem auto 1.25rem;
}

.closing p {
    color: rgba(230, 231, 232, 0.75);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

.closing .hero-actions { justify-content: center; }


/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .hero-words span, .mark-grid svg, .marquee-track, .reveal { animation: none !important; transition: none !important; }
    .hero-words span, .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
    .product-cards { grid-template-columns: repeat(2, 1fr); }
    .services-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .home-hero { padding-top: 8rem; }
    .home-hero-grid, .talents-grid, .team-grid { grid-template-columns: 1fr; }
    /* The decorative grid would push the content a full screen down on phones */
    .mark-grid { display: none; }
    .ways { grid-template-columns: 1fr; }
    .way { min-height: 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .arc-bands { margin-top: 3.5rem; }
}

@media (max-width: 600px) {
    .wrap { padding: 0 1rem; }
    .section { padding: 5rem 0; }
    .services-list, .product-cards { grid-template-columns: 1fr; }
    .home-stats { grid-template-columns: 1fr 1fr; }
    .home-stat b { font-size: 2.2rem; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

.hero-proof {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: rgba(230, 231, 232, 0.75);
}

.hero-proof b { color: var(--mist); font-weight: 500; }

/* A seventh service card fills the last row on its own */
.services-list .service:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 1080px) {
    .services-list .service:last-child:nth-child(3n+1) { grid-column: auto; }
    .services-list .service:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .services-list .service:last-child { grid-column: auto; } }
