/* CodeSeed Development */
:root {
    --primary: #8dba90;
    --secondary: #5a7d5c;
    --forest: #16261b;
    --paper: #eef3ea;
    --ink: #0f172a;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* ---------- Header ---------- */
.dev-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.dev-header.is-scrolled { border-bottom-color: #e2e8f0; box-shadow: 0 1px 12px rgba(15, 23, 42, 0.04); }
.nav-link { position: relative; transition: color .2s ease; }
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
.nav-link:hover { color: var(--secondary); }
.nav-link:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 1.5rem;
    border-radius: .5rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }
.btn-sm { padding: .65rem 1.1rem; font-size: .9rem; }
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { background: #4a6a4c; }
.btn-primary:hover .fa-arrow-right { transform: translateX(3px); }
.btn .fa-arrow-right { transition: transform .2s ease; }
.btn-outline { border: 1.5px solid #cbd5e1; color: #1e293b; background: #fff; }
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: #e8f1e8; }

/* ---------- Type ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--secondary);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--primary); }
.eyebrow--light { color: var(--primary); }
.section-title {
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    text-wrap: balance;
}

/* ---------- Hero ---------- */
.hero-bg {
    background:
        radial-gradient(55% 60% at 85% 35%, rgba(141, 186, 144, 0.28), transparent 70%),
        radial-gradient(40% 50% at 5% 100%, rgba(210, 180, 140, 0.18), transparent 70%),
        linear-gradient(to bottom, #fbfcf9, var(--paper));
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(90, 125, 92, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 125, 92, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 20%, transparent 75%);
}


/* Testimonial logos */
.quote-logo { height: 2.25rem; width: auto; border-radius: .35rem; flex-shrink: 0; }

/* Process */
.process { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process li { position: relative; padding: 1.75rem 1.5rem; border-radius: 1rem; background: var(--paper); border: 1px solid #e2e8f0; }
.process li::after { content: ""; position: absolute; top: 2.15rem; right: -1.25rem; width: 1.25rem; height: 2px; background: var(--primary); }
.process li:last-child::after { display: none; }
@media (max-width: 1099px) { .process li::after { display: none; } }
.process-step { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); }
.process h3 { font-size: 1.2rem; font-weight: 700; color: #0f172a; margin: .6rem 0 .5rem; }
.process p { color: #475569; line-height: 1.6; font-size: .95rem; }

.logo-row img { width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .25s ease, opacity .25s ease; }
.logo-row img:hover { filter: none; opacity: 1; }

/* ---------- Dark hero ---------- */
.dev-hero { background: var(--forest); color: #fff; }
.dev-hero-bg {
    background:
        radial-gradient(55% 65% at 85% 35%, rgba(141, 186, 144, 0.32), transparent 65%),
        radial-gradient(45% 55% at 0% 100%, rgba(210, 180, 140, 0.14), transparent 70%);
}
.dev-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 45%, #000 15%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 70% at 75% 45%, #000 15%, transparent 75%);
}

/* Header sits transparent over the dark hero until scrolled */
.dev-header--dark:not(.is-scrolled):not(.menu-open) { background: transparent; backdrop-filter: none; }
.dev-header--dark:not(.is-scrolled):not(.menu-open) nav .text-secondary { color: #fff; }
.dev-header--dark:not(.is-scrolled):not(.menu-open) nav .text-slate-500 { color: var(--primary); }
.dev-header--dark:not(.is-scrolled):not(.menu-open) nav ul,
.dev-header--dark:not(.is-scrolled):not(.menu-open) #dev-menu-button { color: #e2e8f0; }
.dev-header--dark:not(.is-scrolled):not(.menu-open) .nav-link:hover { color: #fff; }
.dev-header--dark:not(.is-scrolled):not(.menu-open) .btn-primary { background: var(--primary); color: var(--forest); }
.dev-header--dark:not(.is-scrolled):not(.menu-open) .btn-primary:hover { background: #a5cfa8; }
.dev-header--dark img { border-radius: .5rem; }

/* Studios button in the header */
.studios-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .95rem;
    font-family: "Chakra Petch", Satoshi, sans-serif;
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #00c8dc;
    background: #060f1e;
    border-radius: .5rem;
    box-shadow: inset 0 0 0 1px rgba(0, 200, 220, 0.45);
    transition: box-shadow .2s ease, color .2s ease, transform .2s ease;
}
.studios-pill i { font-size: .8rem; }
.studios-pill:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 220, 240, 0.9), 0 0 18px rgba(0, 200, 220, 0.35); transform: translateY(-1px); }


.btn-sage { background: var(--primary); color: var(--forest); }
.btn-sage:hover { background: #a5cfa8; }
.btn-sage:hover .fa-arrow-right { transform: translateX(3px); }
.btn-ghost-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }

/* Floating proof cluster */
.float-cluster { position: relative; min-height: 560px; }
.float-quote {
    position: absolute;
    left: 10%;
    top: 26%;
    width: 68%;
    z-index: 2;
    padding: 1.6rem 1.75rem;
    border-radius: 1rem;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.float-quote blockquote { font: 400 1.3rem/1.42 "DM Serif Display", Georgia, serif; }
.float-quote figcaption { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid #f1f5f9; }
.float-quote figcaption img { height: 1.8rem; width: auto; }
.float-quote figcaption strong { display: block; font-size: .9rem; }
.float-quote figcaption span span { display: block; font-size: .8rem; color: #64748b; }

.float-card {
    position: absolute;
    z-index: 3;
    width: 200px;
    padding: 1rem 1.15rem;
    border-radius: .9rem;
    background: #233b2a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.6);
    animation: float-drift 7s ease-in-out infinite;
    transition: border-color .2s ease, background-color .2s ease;
}
.float-card:hover { border-color: rgba(141, 186, 144, 0.7); background: #2a4532; }
.float-card strong { display: block; font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--primary); }
.float-card span { display: block; margin-top: .4rem; font-size: .82rem; line-height: 1.35; color: #e2e8f0; }
.float-card em { display: block; margin-top: .55rem; font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #94a3b8; }
.float-card--solid { background: var(--primary); border-color: transparent; }
.float-card--solid:hover { background: #a5cfa8; }
.float-card--solid strong { color: var(--forest); }
.float-card--solid span { color: #1e3a24; }
.float-card--solid em { color: #3f5c41; }
.float-card--a { left: 0; top: 2%; animation-delay: -1s; }
.float-card--b { right: 0; top: 8%; animation-delay: -3.5s; animation-duration: 8s; }
.float-card--c { left: 0; bottom: 0; animation-delay: -5s; animation-duration: 7.5s; }
.float-card--d { right: 0; bottom: 4%; animation-delay: -2s; animation-duration: 6.5s; }
@keyframes float-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Stack the cluster on smaller screens */
@media (max-width: 1023px) {
    .float-cluster { min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
    .float-quote, .float-card { position: relative; inset: auto; width: auto; animation: none; }
    .float-quote { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 400px) {
    .float-card strong { font-size: 1.5rem; }
}

.logo-row--light img { filter: brightness(0) invert(1); opacity: .6; }
.logo-row--light img:hover { filter: brightness(0) invert(1); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .float-card { animation: none; }
}

/* ---------- Services ---------- */
.service-list { border-top: 1px solid #e2e8f0; counter-reset: none; }
.service-item {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}
@media (min-width: 768px) {
    .service-item { padding: 2.25rem 2.5rem 2.25rem 0; }
    .service-item:nth-child(even) { padding-left: 2.5rem; padding-right: 0; border-left: 1px solid #e2e8f0; }
}
.service-num { font-size: .85rem; font-weight: 700; color: var(--primary); padding-top: .35rem; font-variant-numeric: tabular-nums; }
.service-item h3 { font-size: 1.35rem; font-weight: 700; color: #0f172a; margin-bottom: .5rem; }
.service-item p { color: #475569; line-height: 1.65; margin-bottom: 1rem; }
.service-item a { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 700; color: var(--secondary); }
.service-item a i { font-size: .75rem; transition: transform .2s ease; }
.service-item a:hover { color: #3f5c41; }
.service-item a:hover i { transform: translateX(3px); }


/* Compact services grid */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
}
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc { position: relative; background: #fff; padding: 1.25rem 1.25rem 1.35rem; transition: background-color .2s ease; }
@media (min-width: 640px) { .svc { padding: 1.6rem 1.6rem 1.7rem; } }
.svc:hover { background: #f6faf5; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--primary); transition: height .25s ease; }
.svc:hover::before { height: 100%; }
.svc-num { font-size: .78rem; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.svc h3 { margin-top: .6rem; font-size: 1.15rem; font-weight: 700; color: #0f172a; }
.svc p { margin-top: .35rem; color: #475569; line-height: 1.55; font-size: .95rem; }


/* ---------- Work ---------- */
/* Featured project */
.featured {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
@media (min-width: 1024px) { .featured { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; padding: 2.5rem 0 2.5rem 2.75rem; } }
.featured-tag { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); }
.featured-body h3 { margin-top: .5rem; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; color: #0f172a; }
.featured-body > p:not(.featured-tag) { margin-top: .75rem; font-size: 1.05rem; line-height: 1.65; color: #475569; }
.featured-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.featured-shot {
    display: block;
    border-radius: .75rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 30px 60px -30px rgba(22, 38, 27, 0.45);
}
@media (min-width: 1024px) { .featured-shot { border-radius: .75rem 0 0 .75rem; border-right: 0; } }
.featured-shot img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.featured:hover .featured-shot img { transform: scale(1.015); }

/* SoFar: phone screenshots fanned out instead of a browser shot */
.featured + .featured { margin-top: 1.25rem; }
.featured-points { margin-top: 1.25rem; display: grid; gap: .5rem; }
.featured-points li { position: relative; padding-left: 1.4rem; color: #334155; font-size: .95rem; }
.featured-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--primary); }
.featured--app { background: linear-gradient(135deg, #fff 0%, #fff 45%, var(--paper) 100%); }
@media (min-width: 1024px) { .featured--app { padding: 2.5rem 2.75rem; } }
.phone-stage { position: relative; display: flex; justify-content: center; align-items: center; padding: 1rem 0 .5rem; }
.phone {
    width: 34%;
    max-width: 210px;
    height: auto;
    border-radius: 1.6rem;
    border: 5px solid #16261b;
    background: #16261b;
    box-shadow: 0 30px 50px -25px rgba(22, 38, 27, 0.55);
    transition: transform .5s ease;
}
.phone--left { transform: translateX(14%) rotate(-6deg) scale(.88); }
.phone--center { position: relative; z-index: 1; }
.phone--right { transform: translateX(-14%) rotate(6deg) scale(.88); }
.featured--app:hover .phone--left { transform: translateX(8%) rotate(-8deg) scale(.88); }
.featured--app:hover .phone--right { transform: translateX(-8%) rotate(8deg) scale(.88); }

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.browser-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.browser-bar em {
    margin-left: 10px;
    flex: 1;
    max-width: 55%;
    height: 16px;
    border-radius: 4px;
    background: #fff;
    font: 500 10px/16px Satoshi, system-ui, sans-serif;
    font-style: normal;
    color: #64748b;
    padding-left: 8px;
    overflow: hidden;
}

/* Small business websites */
.site-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .site-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-card { display: flex; flex-direction: column; border-radius: 1rem; background: #fff; border: 1px solid #e2e8f0; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(22, 38, 27, 0.45); border-color: rgba(141, 186, 144, 0.6); }
.site-shot { display: block; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.site-shot img { display: block; width: 100%; height: auto; }
.site-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.site-meta strong { display: block; color: #0f172a; }
.site-meta span span { display: block; font-size: .88rem; color: #64748b; margin-top: .1rem; }
.site-meta i { font-size: .8rem; color: var(--secondary); transition: transform .2s ease; }
.site-card:hover .site-meta i { transform: translate(2px, -2px); }
.site-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(90, 125, 92, 0.2); color: #475569; font-size: .95rem; }
@media (min-width: 1024px) { .site-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-facts strong { display: block; color: var(--secondary); font-size: 1.15rem; font-weight: 800; }

/* Project list */
.proj-list { margin-top: 1rem; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; overflow: hidden; }
.proj-list li + li { border-top: 1px solid #eef2f6; }
.proj-row { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem 1rem; align-items: center; padding: 1.1rem 1.25rem; transition: background-color .2s ease; }
@media (min-width: 900px) { .proj-row { grid-template-columns: auto 15rem 1fr auto; gap: 1.5rem; padding: 1.1rem 1.5rem; } }
.proj-row:hover { background: #f6faf5; }
.proj-logo { display: flex; align-items: center; justify-content: center; width: 3.75rem; height: 2.75rem; padding: .35rem .5rem; border-radius: .5rem; background: var(--chip, #fff); border: 1px solid #eef2f6; }
.proj-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.proj-name strong { display: block; color: #0f172a; font-weight: 700; }
.proj-name span { display: block; font-size: .85rem; color: #64748b; }
.proj-desc { grid-column: 1 / -1; color: #475569; line-height: 1.55; font-size: .95rem; }
@media (min-width: 900px) { .proj-desc { grid-column: auto; } }
.proj-cta { grid-row: 1; grid-column: 3; display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700; color: var(--secondary); white-space: nowrap; }
@media (min-width: 900px) { .proj-cta { grid-row: auto; grid-column: auto; } }
.proj-cta i { font-size: .72rem; transition: transform .2s ease; }
.proj-row:hover .proj-cta i { transform: translateX(3px); }



/* ---------- Testimonials ---------- */
.quote-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}
.quote-card::before {
    content: "\201C";
    position: absolute;
    top: .5rem;
    right: 1.5rem;
    font: 6rem/1 "DM Serif Display", Georgia, serif;
    color: rgba(141, 186, 144, 0.25);
}
.quote-card blockquote { font-size: 1.1rem; line-height: 1.7; color: #e2e8f0; position: relative; }
.quote-card figcaption { display: flex; align-items: center; gap: .9rem; }
.quote-card figcaption strong { display: block; color: #fff; }
.quote-card figcaption span span { display: block; font-size: .9rem; color: #94a3b8; }

/* ---------- Approach ---------- */
.principles { border-top: 1px solid #e2e8f0; }
.principles li { padding: 1.5rem 0 1.5rem 2.25rem; border-bottom: 1px solid #e2e8f0; position: relative; }
.principles li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.85rem;
    width: .9rem;
    height: .9rem;
    border-radius: 50% 0;
    background: var(--primary);
    transform: rotate(-45deg);
}
.principles h3 { font-size: 1.15rem; font-weight: 700; color: #0f172a; margin-bottom: .25rem; }
.principles p { color: #475569; line-height: 1.6; }

/* ---------- Team ---------- */
.team-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.5rem; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .75rem; margin-bottom: 1.25rem; }
.team-card h3 { font-size: 1.15rem; font-weight: 700; color: #0f172a; }
.team-role { font-size: .85rem; font-weight: 700; color: var(--secondary); margin: .15rem 0 .75rem; }
.team-card p:last-child { font-size: .92rem; line-height: 1.6; color: #475569; }

/* ---------- Studios showcase ---------- */
.studios-showcase {
    --rite: #00c8dc;
    background-color: #060f1e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 0 L56 16 L56 49 L28 65 L0 49 L0 16 Z M28 65 L28 98' fill='none' stroke='%238dba90' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 56px 98px;
    color: #e2e8f0;
}
.studios-glow { background: radial-gradient(45% 60% at 20% 30%, rgba(0, 200, 220, 0.16), transparent 70%), radial-gradient(40% 55% at 90% 80%, rgba(141, 186, 144, 0.16), transparent 70%); }
.studios-eyebrow { font-family: Michroma, "Chakra Petch", sans-serif; font-size: .68rem; letter-spacing: .35em; text-transform: uppercase; color: var(--rite); }
.studios-title { font-family: "Chakra Petch", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1; font-size: clamp(2.2rem, 4.6vw, 3.8rem); color: #fff; }

.studios-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .8rem 1.35rem;
    font-family: "Chakra Petch", sans-serif;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.studios-btn--rite { background: var(--rite); color: #060f1e; }
.studios-btn--rite:hover { background: #4fe3f0; box-shadow: 0 0 24px rgba(0, 220, 240, .4); }
.studios-btn--seed { background: var(--primary); color: #060f1e; }
.studios-btn--seed:hover { background: #a5d1a8; }
.studios-btn--ghost { background: rgba(255, 255, 255, 0.06); color: #e2e8f0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.studios-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.studio-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .studio-grid { grid-template-columns: 1.45fr 1fr; gap: 1.75rem; } }

.studio-card { perspective: 1200px; }
.studio-card-inner {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(15, 26, 44, 0.95), rgba(8, 16, 30, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .3s ease, box-shadow .3s ease;
}
.studio-card.is-tilting .studio-card-inner { transition: transform .08s linear, border-color .3s ease, box-shadow .3s ease; }
.studio-card-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.09), transparent 45%);
    opacity: 0;
    transition: opacity .3s ease;
}
.studio-card:hover .studio-card-inner::after { opacity: 1; }
.studio-card--rites:hover .studio-card-inner { border-color: rgba(0, 200, 220, 0.5); box-shadow: 0 40px 90px -40px rgba(0, 200, 220, 0.45); }
.studio-card--listforge:hover .studio-card-inner { border-color: rgba(141, 186, 144, 0.5); box-shadow: 0 40px 90px -40px rgba(141, 186, 144, 0.4); }

.rites-art { position: relative; border-radius: 1.25rem 1.25rem 0 0; overflow: hidden; aspect-ratio: 1232 / 560; }
.rites-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .8s ease; }
.rites-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(8, 16, 30, 0.95)); }
.studio-card--rites:hover .rites-art img { transform: scale(1.04); }
.studio-card-body { position: relative; z-index: 3; padding: 0 1.75rem 1.75rem; margin-top: -2.5rem; }
@media (min-width: 768px) { .studio-card-body { padding: 0 2.25rem 2.25rem; } }
.studio-tag { display: inline-flex; align-items: center; gap: .5rem; font-family: "Chakra Petch", sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.studio-tag--rite { color: var(--rite); }
.live-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--rite); box-shadow: 0 0 0 0 rgba(0, 200, 220, 0.6); animation: live-pulse 2s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 200, 220, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(0, 200, 220, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 200, 220, 0); } }
.rites-title { margin-top: .5rem; font-family: Michroma, "Chakra Petch", sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.15; color: #fff; }
.studio-desc { margin-top: .6rem; max-width: 34rem; color: #94a3b8; line-height: 1.6; }
.studio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; }
.studio-more { display: inline-flex; align-items: center; gap: .45rem; font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #cbd5e1; }
.studio-more i { font-size: .7rem; transition: transform .2s ease; }
.studio-more:hover { color: #fff; }
.studio-more:hover i { transform: translateX(3px); }

.studio-card--listforge .studio-card-inner { padding: 1.75rem; }
@media (min-width: 768px) { .studio-card--listforge .studio-card-inner { padding: 2.25rem; } }
.lf-top { display: flex; align-items: center; gap: 1.1rem; }
.lf-badge { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 1rem; overflow: hidden; flex-shrink: 0; background: radial-gradient(circle at 50% 40%, rgba(141, 186, 144, 0.4), rgba(90, 125, 92, 0.15) 60%, transparent 80%), #0b1424; border: 1px solid rgba(141, 186, 144, 0.3); transition: transform .4s ease; }
.lf-badge img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.7); }
.studio-card--listforge:hover .lf-badge { transform: rotate(-6deg) scale(1.05); }
.lf-title { font-family: "Chakra Petch", sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 2.4vw, 2rem); color: #fff; line-height: 1.1; margin-top: .2rem; }
.lf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.lf-stats strong { display: block; font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.lf-stats div:last-child strong { color: var(--tan, #D2B48C); }
.lf-stats span { display: block; margin-top: .35rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
.lf-platforms { display: flex; gap: .5rem; margin: 1.25rem 0 1.5rem; }
.lf-platforms li { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); color: #94a3b8; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.studio-card--listforge:hover .lf-platforms li { color: var(--primary); border-color: rgba(141, 186, 144, 0.3); }
.studio-card--listforge:hover .lf-platforms li:nth-child(2) { transition-delay: 40ms; }
.studio-card--listforge:hover .lf-platforms li:nth-child(3) { transition-delay: 80ms; }
.studio-card--listforge:hover .lf-platforms li:nth-child(4) { transition-delay: 120ms; }
.studio-card--listforge:hover .lf-platforms li:nth-child(5) { transition-delay: 160ms; }
.lf-platforms li:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
    .studio-card-inner, .rites-art img, .lf-badge { transition: none !important; transform: none !important; }
    .live-dot { animation: none; }
}

/* ---------- Contact ---------- */
.contact-form { background: var(--paper); border: 1px solid #e2e8f0; border-radius: 1rem; padding: 2rem; }
@media (min-width: 768px) { .contact-form { padding: 2.5rem; } }
.field span { display: block; font-size: .875rem; font-weight: 700; color: #1e293b; margin-bottom: .45rem; }
.field em { font-style: normal; font-weight: 500; color: #94a3b8; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: .8rem .95rem;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    background: #fff;
    color: #0f172a;
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(141, 186, 144, 0.3); }

/* ---------- Footer ---------- */
.footer-heading { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.footer-links li + li { margin-top: .6rem; }
.footer-links a { color: #cbd5e1; transition: color .2s ease; }
.footer-links a:hover { color: #fff; }


/* ---------- Case studies ---------- */
/* Case study hero */
.breadcrumb--light { color: #94a3b8; }
.breadcrumb--light a { color: var(--primary); }
.breadcrumb--light i { color: #64748b; }
.case-hero { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 1024px) { .case-hero { grid-template-columns: 1.5fr 1fr; gap: 4rem; } }
.case-logo { display: inline-flex; align-items: center; justify-content: center; width: 7rem; height: 3.75rem; padding: .55rem .8rem; border-radius: .7rem; background: var(--chip, #fff); }
.case-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.case-logo--sm { width: 4.5rem; height: 3rem; padding: .4rem .55rem; border: 1px solid #eef2f6; flex-shrink: 0; }
.case-subtitle { margin-top: 1.75rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.case-hero h1 { margin-top: .6rem; font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; color: #fff; }
.case-summary { margin-top: 1.1rem; max-width: 40rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: #cbd5e1; }
.case-facts { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.case-facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.case-facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #94a3b8; padding-top: .15rem; }
.case-facts dd { color: #fff; font-weight: 500; }

/* Outcomes */
.outcomes { display: grid; gap: 1px; background: #e2e8f0; border: 1px solid #e2e8f0; border-radius: 1rem; overflow: hidden; }
@media (min-width: 768px) { .outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.outcome { background: #fff; padding: 1.6rem 1.75rem; }
.outcome-value { font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; color: var(--secondary); }
.outcomes--stats .outcome-value { font-size: clamp(2.4rem, 4vw, 3.2rem); }
.outcomes--highlights .outcome-value { font-size: clamp(1.5rem, 2.2vw, 1.85rem); letter-spacing: -0.02em; }
.outcome-label { margin-top: .45rem; font-weight: 700; color: #0f172a; }
.outcome-note { margin-top: .2rem; font-size: .9rem; color: #64748b; line-height: 1.5; }

/* Story */
.story { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .story { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.story-text { font-size: 1.15rem; line-height: 1.75; color: #334155; }

/* What we built */
.built-grid { display: grid; gap: 1px; background: #e2e8f0; border: 1px solid #e2e8f0; border-radius: 1rem; overflow: hidden; }
@media (min-width: 768px) { .built-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .built-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.built-grid li { background: #fff; padding: 1.5rem; }
.built-grid h3 { font-weight: 700; color: #0f172a; }
.built-grid p { margin-top: .35rem; font-size: .93rem; line-height: 1.55; color: #475569; }
.case-h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; color: #0f172a; letter-spacing: -0.02em; line-height: 1.15; }

/* Next project */
.next-case { display: grid; grid-template-columns: 1fr auto; gap: .75rem 1.5rem; align-items: center; padding: 1.5rem 1.75rem; border: 1px solid #e2e8f0; border-radius: 1rem; transition: border-color .2s ease, background-color .2s ease; }
.next-case:hover { border-color: var(--primary); background: #f6faf5; }
.next-case-label { grid-column: 1 / -1; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); }
.next-case-main { display: flex; align-items: center; gap: 1.1rem; }
.next-case-main strong { display: block; font-size: 1.3rem; color: #0f172a; }
.next-case-main span span { display: block; color: #64748b; font-size: .95rem; line-height: 1.5; margin-top: .15rem; }
.next-case-arrow { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--forest); color: #fff; transition: transform .2s ease; }
.next-case:hover .next-case-arrow { transform: translateX(4px); }

.breadcrumb { display: flex; align-items: center; gap: .6rem; font-size: .875rem; color: #64748b; }
.breadcrumb a { font-weight: 500; color: var(--secondary); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb i { font-size: .6rem; color: #94a3b8; }




.case-block { display: grid; gap: 1.25rem 4rem; }
@media (min-width: 1024px) { .case-block { grid-template-columns: 0.75fr 1.25fr; } }
.prose-case p { font-size: 1.1rem; line-height: 1.75; color: #475569; }
.prose-case p + p { margin-top: 1.1rem; }
.prose-case a { color: var(--secondary); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.prose-legal h2 { font-size: 1.35rem; font-weight: 700; color: #0f172a; margin: 2.25rem 0 .75rem; }

.stack-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.stack-list li { padding: .5rem .95rem; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; font-size: .9rem; font-weight: 500; color: #334155; }

.case-quote { max-width: 56rem; margin: 0 auto; text-align: center; }
.case-quote-logo { height: 2.75rem; width: auto; margin: 0 auto 2rem; border-radius: .4rem; }
.case-quote blockquote { font: 400 clamp(1.35rem, 2.4vw, 1.9rem)/1.45 "DM Serif Display", Georgia, serif; color: #f1f5f9; }
.case-quote figcaption { margin-top: 1.75rem; color: #94a3b8; }
.case-quote figcaption strong { color: #fff; }


.cta-band {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 2.25rem;
    border-radius: 1rem;
    background: radial-gradient(70% 120% at 100% 0%, rgba(141, 186, 144, 0.3), transparent 60%), var(--forest);
}
@media (min-width: 768px) { .cta-band { flex-direction: row; align-items: center; padding: 2.5rem 3rem; } }


/* ---------- Service pages ---------- */
.pw-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid #e2e8f0; }
.pw-facts strong { display: block; font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; color: var(--secondary); }
.pw-facts span { font-size: .9rem; color: #64748b; }
.process--light li { background: #fff; }

.compare-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 1rem; background: #fff; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.compare th, .compare td { padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; font-size: .95rem; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { padding-top: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e2e8f0; }
.compare thead th span { display: block; font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.compare thead th small { display: block; font-size: .8rem; color: #94a3b8; margin-top: .15rem; }
.compare tbody th { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; width: 11rem; }
.compare td { color: #475569; }
.compare .is-us { background: #f3f8f2; color: #1e293b; font-weight: 500; }
.compare thead .is-us { border-top: 3px solid var(--secondary); }
.compare thead .is-us span { color: var(--secondary); }

.faq { border-top: 1px solid #e2e8f0; }
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.35rem 0; cursor: pointer; list-style: none; font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { font-size: .85rem; color: var(--secondary); transition: transform .2s ease; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--secondary); outline-offset: 4px; }
.faq-item p { padding: 0 2rem 1.5rem 0; color: #475569; line-height: 1.7; }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; margin: 0; padding: .65rem 1rem; border: 1px solid #cbd5e1; border-radius: .5rem; background: #fff; font-size: .92rem; font-weight: 500; color: #334155; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.choice input:checked + span { border-color: var(--secondary); background: #eef5ed; color: #2f4a31; }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(141, 186, 144, 0.4); }

.next-steps { counter-reset: next; display: grid; gap: 1.25rem; }
.next-steps li { counter-increment: next; position: relative; padding-left: 3rem; }
.next-steps li::before { content: counter(next); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--secondary); color: #fff; font-weight: 700; font-size: .9rem; }
.next-steps strong { display: block; color: #0f172a; }
.next-steps span { display: block; color: #475569; line-height: 1.55; margin-top: .15rem; }
.principles li h3 + p { margin-top: .1rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .featured-shot img, .phone { transition: none; }
}


/* Footer stance flags */
.stance { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.stance-head { font-size: .85rem; color: #94a3b8; }
.stance-flags { display: flex; gap: .5rem; }
.flag { display: block; width: 30px; height: 20px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.stance-line { font-size: .85rem; font-style: italic; }
.flag { filter: saturate(.7) brightness(.92); }
