/* Home v16: split hero with the interactive Spline robot, journey typing, word scrub, tag marquee. */
.hero{position:relative;overflow:hidden;padding-top:clamp(40px,7vw,72px)}
.hero-grid{position:relative;z-index:1;display:grid;gap:8px;align-items:center}
.hero-copy{position:relative;z-index:1;display:grid;justify-items:start;gap:20px}
.hero h1{max-width:15ch;font-size:clamp(2.25rem,5.6vw,4rem);background:linear-gradient(180deg,#fffaea,#a1a1aa);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero .actions{margin-top:8px}
/* The poster carries the robot on small screens, reduced motion and before the scene is ready. */
.hero-robot{position:relative;height:clamp(380px,110vw,520px);margin-inline:calc(var(--gutter) * -1)}
.robot-art{position:absolute;inset:0;background:url("assets/robot-poster.webp") center/contain no-repeat}
.robot-art canvas{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .6s var(--ease)}
.robot-ready .robot-art{background:none}
.robot-ready .robot-art canvas{opacity:1}
.robot-toggle{position:absolute;z-index:1;right:var(--gutter);bottom:16px}
.robot-toggle[hidden]{display:none}
/* Pointer spotlight: a soft cream glow that follows the cursor over the hero. */
.hero-spotlight{position:absolute;left:0;top:0;width:360px;height:360px;margin:-180px 0 0 -180px;border-radius:50%;background:radial-gradient(circle,rgba(255,250,234,.09),transparent 70%);pointer-events:none;opacity:0;transition:opacity .3s var(--ease);will-change:transform}
.hero.spot-on .hero-spotlight{opacity:1}
@media(min-width:1000px){
.hero{padding-top:0}
.hero-grid{grid-template-columns:1fr 1fr;min-height:min(calc(100vh - 64px),760px)}
.hero-robot{height:100%;min-height:600px;margin-inline:0}
/* The arms reach past the column; the canvas bleeds sideways under the copy, which stays on top. */
.robot-art{inset:0 -16%}
.robot-toggle{left:0;right:auto}
}
/* Portfolio flex cards: the pressed card expands; the others stay as narrow slices. */
.flex-cards{display:flex;flex-direction:column;gap:6px;height:760px}
.flex-card{position:relative;flex:1 1 0;min-width:48px;min-height:44px;overflow:hidden;padding:0;border:1px solid #27272a;border-radius:var(--radius);background:#09090b;color:inherit;cursor:pointer;transition:flex-grow .5s cubic-bezier(.05,.61,.41,.95)}
.flex-card[aria-pressed="true"]{flex-grow:10000;cursor:default}
.flex-card[aria-pressed="false"] .illustrative-tag{display:none}
.flex-card .illustrative-tag{left:auto;right:12px}
.flex-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:left top}
.flex-card::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(9,9,11,.96) 12%,transparent 60%);pointer-events:none}
.flex-card-label{position:absolute;z-index:1;left:6px;right:6px;bottom:6px;display:flex;align-items:center;gap:12px;text-align:left;transition:left .5s var(--ease),bottom .5s var(--ease)}
.flex-card[aria-pressed="true"] .flex-card-label{left:16px;bottom:16px}
.flex-card-icon{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fffaea;color:#0e0e13;font-size:.875rem;font-weight:600}
.flex-card-info{display:grid;white-space:nowrap;opacity:0;transform:translateX(16px);transition:opacity .5s ease-out,transform .5s var(--ease)}
.flex-card[aria-pressed="true"] .flex-card-info{opacity:1;transform:none}
.flex-card-main{font-size:1.0625rem;font-weight:600;color:#fffaea}
.flex-card-sub{font-size:.875rem;color:#a1a1aa}
/* Ten slices need the full desktop width; narrower screens stack them. */
@media(min-width:1100px){.flex-cards{flex-direction:row;gap:8px;height:460px}}

/* Journey: the typed search is decoration; the steps below carry the content. */
.search-box{display:flex;align-items:center;gap:12px;background:#09090b;border:1px solid #27272a;border:1px solid #27272a;border-radius:var(--radius);padding:14px 18px;max-width:560px;margin-bottom:24px;font-size:1.0625rem;color:#fffaea;min-height:56px}
.search-icon{width:16px;height:16px;border:2px solid #a1a1aa;border-radius:50%;position:relative;flex:none}
.search-icon::after{content:"";position:absolute;width:2px;height:7px;background:#a1a1aa;right:-4px;bottom:-6px;transform:rotate(-45deg)}
/* The caret exists only while typing, so nothing blinks indefinitely. */
.journey.typing .search-typed::after{content:"";display:inline-block;width:2px;height:1.1em;background:#fffaea;margin-left:3px;vertical-align:-.15em;animation:caret 1s steps(1) infinite}
@keyframes caret{50%{opacity:0}}
.journey-steps li>span{color:#a1a1aa}

.service-card{display:grid;gap:4px;align-content:start}
.service-card .text-link{margin-top:12px}
.services .section-note a{color:#fffaea}

/* Statement: words light up with scroll progress; without JS the text is plain white. */
.statement-text{font:600 clamp(1.625rem,4.4vw,3rem)/1.1 var(--display);letter-spacing:-.005em;color:#fffaea;max-width:24ch;text-wrap:balance}
.statement-text .w{color:#27272a;transition:color .35s var(--ease)}
.statement-text .w.on{color:#fffaea}

/* Marquee of segment tags */
.segments .section-heading{margin-bottom:32px}
.marquee{overflow:hidden}
.marquee-track{display:flex;width:max-content;animation:marquee 45s linear infinite}
.marquee-group{display:flex;gap:8px;list-style:none;margin:0;padding:0 8px 0 0}
.marquee-paused .marquee-track{animation-play-state:paused}
@keyframes marquee{to{transform:translateX(-50%)}}
.marquee-controls{margin-top:24px}

/* Testimonials: real clients only, each with name, business and a link to the source review. */
.testimonial-grid{display:grid;gap:12px}
@media(min-width:700px){.testimonial-grid{grid-template-columns:repeat(3,1fr)}}
.testimonial{margin:0;background:#09090b;border:1px solid #27272a;border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.testimonial-photo{position:relative;overflow:hidden}
.testimonial-photo img{width:100%;height:270px;object-fit:cover;object-position:top;transition:transform .3s var(--ease)}
.testimonial:hover .testimonial-photo img{transform:scale(1.05)}
.testimonial-photo::after{content:"";position:absolute;inset:auto 0 0;height:90%;background:linear-gradient(to top,#09090b,transparent);pointer-events:none}
.testimonial blockquote{margin:0;padding:0 20px 20px;border-bottom:1px solid #27272a;color:#fffaea;font-weight:500}
.testimonial figcaption{padding:16px 20px 20px;display:grid;gap:2px;color:#f4f4f5}
.testimonial figcaption span{font-size:.875rem;color:#a1a1aa}
.testimonial figcaption a{font-size:.875rem;color:#fffaea}
/* Fictional examples carry a visible small label on each card and a note below the grid. */
.illustrative-tag{position:absolute;top:12px;left:12px;z-index:1;background:#0e0e13;color:#a1a1aa;border-radius:var(--radius-sm);padding:2px 8px;font-size:.75rem;line-height:1.5}
.scenario-grid{display:grid;gap:12px}
@media(min-width:700px){.scenario-grid{grid-template-columns:repeat(3,1fr)}}
.scenario{background:#09090b;border:1px solid #27272a;border-radius:var(--radius);padding:24px 20px}
.scenario h3{margin:0 0 16px;font-size:1.125rem;color:#fffaea}
.scenario dl{margin:0;display:grid;gap:14px}
.scenario dt{font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;color:#e96b34}
.scenario dd{margin:2px 0 0;color:#a1a1aa}
.scenario div:last-child dd{color:#f4f4f5}
.reviews-summary{margin-top:24px;color:#a1a1aa}
.reviews-summary a{color:#fffaea}

/* Pricing */
.price{font:600 1.5rem/1.2 var(--display);color:#fffaea;margin:4px 0 20px}
.price-card .checklist li{font-size:.9375rem}
.conditions{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:24px 0 0;padding:0}

@media(min-width:1000px){
.journey .section-heading,.process .section-heading{max-width:none}
}
@media(forced-colors:active){.hero h1{background:none;color:CanvasText}}
@media(prefers-reduced-motion:reduce){
.marquee-track{animation:none;width:auto}
.marquee-group{flex-wrap:wrap;padding-inline:var(--gutter)}
.marquee-group[aria-hidden="true"],.marquee-controls{display:none}
}
