/* Homepage presentation. Theme colours come from the existing site tokens. */
.section-eyebrow { margin: 0 0 22px; font: 500 11px/1.5 var(--font-mono); letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.home-hero .section-eyebrow { margin-bottom: 6px; }
.home-project-shortcuts { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 20px; font-size: 12px; color: var(--muted); }
.home-project-shortcuts a { display: inline-flex; gap: 9px; align-items: center; text-decoration: none; }
.home-project-shortcuts a::before { content: ''; width: 4px; height: 4px; background: var(--product-glow, currentColor); border-radius: 50%; }
.home-project-shortcuts a:hover { color: var(--fg); }
.showcase-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; margin-bottom: 44px; }
.showcase-heading h2, .studio-faq h2 { margin: 0; font: 500 clamp(32px, 4.5vw, 62px)/1.08 var(--font-display); letter-spacing: -.035em; }
.showcase-heading > p { margin: 0 0 3px; max-width: 400px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.page-shell[aria-label="Home"] > .section.selected-work { display: block; padding-top: 80px; }
.selected-work { scroll-margin-top: 80px; }
.work-index { position: sticky; top: var(--nav-h); z-index: 8; display: flex; align-items: center; gap: 8px; padding: 12px 0; margin-bottom: 25px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg); }
.work-index-label { margin-right: auto; color: var(--muted); font-size: 11px; }
.work-index a { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: 5px; font-size: 13px; text-decoration: none; transition: background .25s ease, color .25s ease; }
.work-index a > span { color: var(--muted); font: 10px var(--font-mono); }
.work-index a[aria-current="true"] { background: var(--fg); color: var(--bg); }
.work-index a[aria-current="true"] > span { color: inherit; opacity: .6; }
.work-index a svg { width: 15px; height: 15px; transform: rotate(45deg); }
.work-layout { display: grid; grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); gap: clamp(25px, 4vw, 64px); position: relative; align-items: start; }
.project-chapter { min-height: 78vh; min-height: 78svh; padding: 65px 0; display: flex; flex-direction: column; align-items: start; justify-content: center; scroll-margin-top: 160px; }
.project-chapter + .project-chapter { border-top: 1px solid var(--rule); }
.project-meta { color: var(--muted); font: 10px/1.6 var(--font-mono); letter-spacing: .045em; text-transform: uppercase; }
.project-identity { display: flex; align-items: center; gap: 13px; margin: 27px 0 20px; }
.project-identity img { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; flex-shrink: 0; }
.project-identity h3 { margin: 0; font: 500 23px/1.2 var(--font-display); letter-spacing: -.03em; }
.project-headline { margin: 0 0 22px; font: 500 clamp(25px, 3vw, 42px)/1.15 var(--font-display); letter-spacing: -.04em; }
.project-description { margin: 0; max-width: 39ch; font-size: 14px; line-height: 1.8; color: var(--muted); }
.project-features { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 29px; }
.project-features li { padding: 7px 10px; border: 1px solid var(--rule); border-radius: 4px; font-size: 10px; color: var(--muted); }
.project-visit, .text-link { display: inline-flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 500; text-decoration: none; padding-bottom: 9px; border-bottom: 1px solid var(--fg); }
.project-visit svg, .text-link svg { width: 18px; height: 18px; transition: transform .2s ease; }
.project-visit:hover svg, .text-link:hover svg { transform: translateX(4px); }
.work-stage { position: sticky; top: calc(var(--nav-h) + 95px); margin-top: 45px; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--bg); box-shadow: 0 18px 70px -35px rgba(0,0,0,.22); }
.work-stage-top, .work-stage-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 21px; font-size: 10px; }
.work-stage-top { color: var(--muted); border-bottom: 1px solid var(--rule); font-family: var(--font-mono); }
.work-stage-top > span:first-child { display: flex; align-items: center; gap: 8px; }
.stage-dot { width: 5px; height: 5px; background: var(--fg); border-radius: 50%; }
.work-media { aspect-ratio: 3/2; position: relative; isolation: isolate; background: #eee; }
.project-frame { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translate3d(0,12px,0) scale(.985); transition: opacity 450ms ease, transform 650ms var(--easing), visibility 450ms; }
.project-frame.is-active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.project-artwork { width: 100%; height: 100%; margin: 0; position: relative; }
.project-artwork img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-stage .project-artwork { overflow: hidden; }
.work-stage .project-artwork img { transform: translate3d(0,var(--scene-y,0px),0) scale(1.025); }
.project-artwork figcaption { position: absolute; bottom: 12px; left: 14px; padding: 5px 8px; background: rgba(242,242,242,.94); border: 1px solid rgba(13,13,13,.1); color: #555; border-radius: 3px; font-size: 9px; }
.work-stage-bottom { border-top: 1px solid var(--rule); font-size: 12px; }
.work-stage-bottom > span:last-child { font-size: 10px; color: var(--muted); }
.work-progress { height: 2px; background: var(--rule); }
.work-progress > span { display: block; height: 100%; background: var(--fg); transform-origin: left; transform: scaleX(.3333); }
.project-inline-image { display: none; }
.work-outro { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--rule); padding: 28px 0 10px; }
.work-outro p { margin: 0; font-size: 19px; line-height: 1.5; }
.work-outro p span { color: var(--muted); }
.studio-services, .studio-process, .studio-faq { border-top: 1px solid var(--rule); margin-top: 38px; }
.studio-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.studio-service { padding: 28px; border: 1px solid var(--rule); display: flex; flex-direction: column; align-items: start; }
.studio-service + .studio-service { border-left: 0; }
.service-number { width: 100%; display: flex; justify-content: space-between; align-items: center; font: 11px var(--font-mono); color: var(--muted); margin-bottom: 50px; }
.service-number svg { width: 24px; height: 24px; }
.studio-service h3 { font-size: 24px; font-weight: 500; letter-spacing: -.03em; margin: 0 0 15px; }
.studio-service p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 18px; }
.studio-service .service-detail { font-size: 15px; line-height: 1.5; color: var(--fg); }
.service-examples { margin-top: auto; padding: 9px 0 28px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.studio-service .text-link { font-size: 12px; }
.process-track { position: relative; padding: 0; margin: 16px 0 45px; list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; }
.process-track::before, .process-track::after { content: ''; position: absolute; top: 20px; left: 20px; width: calc(100% - 40px); height: 1px; background: var(--rule); z-index: 0; }
.process-track::after { background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--easing); }
.is-in-view .process-track::after { transform: scaleX(1); }
.process-track li { position: relative; z-index: 1; padding-right: 10px; }
.process-node { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid var(--rule); background: var(--bg); border-radius: 50%; font: 11px var(--font-mono); margin-bottom: 25px; }
.process-track h3 { font-size: 19px; font-weight: 500; margin: 0 0 13px; }
.process-track p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.studio-principles { border-top: 1px solid var(--rule); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 18px 45px; font-size: 11px; color: var(--muted); }
.studio-principles span { display: inline-flex; align-items: center; gap: 10px; }
.studio-principles span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.page-shell[aria-label="Home"] > .studio-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.studio-faq h2 { font-size: clamp(29px,3.4vw,46px); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list details:first-child { border-top: 1px solid var(--rule); }
.faq-list summary { list-style: none; padding: 23px 0; display: flex; gap: 20px; justify-content: space-between; align-items: center; cursor: pointer; font-size: 14px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-size: 23px; font-weight: 300; transition: transform .2s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 30px 24px 0; font-size: 13px; line-height: 1.8; color: var(--muted); }
.page-shell[aria-label="Home"] > .section.project-brief { padding-top: 100px; padding-bottom: 100px; align-items: center; justify-items: center; text-align: center; background: var(--fg); color: var(--bg); margin-top: 50px; }
.project-brief .section-eyebrow { color: inherit; opacity: .6; }
.project-brief h2 { font: 500 clamp(42px,7vw,94px)/1.02 var(--font-display); letter-spacing: -.05em; margin: 0 0 25px; }
.project-brief > p:not(.section-eyebrow) { color: inherit; opacity: .65; font-size: 14px; line-height: 1.7; margin: 0; }
.brief-options { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 32px 0; }
.brief-options a { display: flex; align-items: center; gap: 20px; padding: 12px 16px; color: inherit; border: 1px solid color-mix(in srgb, var(--bg) 28%, transparent); border-radius: 5px; font-size: 12px; text-decoration: none; transition: background .2s ease; }
.brief-options a:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); }
.brief-options svg { width: 16px; height: 16px; }
.project-brief .cta { gap: 20px; background: var(--bg); color: var(--fg); border-color: var(--bg); }
.project-brief .cta svg { width: 18px; height: 18px; }
.selected-work a:focus-visible, .studio-services a:focus-visible, .project-brief a:focus-visible, .studio-faq summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

@media (min-width: 901px) and (max-height: 750px) {
  .work-stage { max-width: 650px; top: calc(var(--nav-h) + 82px); }
  .work-stage-top, .work-stage-bottom { padding: 12px 16px; }
  .project-chapter { min-height: 88vh; }
}
@media (max-width: 1000px) {
  .work-layout { grid-template-columns: minmax(0,.43fr) minmax(0,.57fr); gap: 24px; }
  .project-headline { font-size: 29px; }
  .showcase-heading { gap: 35px; }
  .studio-service { padding: 23px; }
  .studio-service h3 { font-size: 21px; }
}
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .work-layout { display: block; }
  .work-stage { display: none; }
  .project-chapter { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; padding: 45px 0; scroll-margin-top: 145px; }
  .project-chapter > :not(.project-inline-image) { grid-column: 1; }
  .project-inline-image { display: block; grid-column: 2; grid-row: 1 / span 6; width: 100%; margin: 0; align-self: center; }
  .project-inline-image img { display: block; width: 100%; height: auto; border-radius: 8px; }
  .project-inline-image figcaption { color: var(--muted); font-size: 9px; line-height: 1.6; margin-top: 9px; }
  .project-visit { justify-self: start; }
  .project-identity { margin-top: 19px; }
  .project-meta { font-size: 9px; }
}
@media (max-width: 700px) {
  .showcase-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 30px; }
  .showcase-heading h2 { font-size: clamp(33px,7.5vw,48px); }
  .showcase-heading > p { font-size: 14px; max-width: 42ch; }
  .section-eyebrow { font-size: 9px; margin-bottom: 18px; }
  .work-index { position: static; gap: 4px; justify-content: space-between; padding: 10px 0; margin-bottom: 0; }
  .work-index-label { display: none; }
  .work-index a { gap: 9px; padding: 11px 12px; font-size: 12px; }
  .work-index a svg { display: none; }
  .project-chapter { display: flex; padding: 37px 0 45px; scroll-margin-top: 85px; }
  .project-headline { font-size: 36px; margin-bottom: 18px; }
  .project-description { max-width: 48ch; }
  .project-identity { margin-bottom: 17px; }
  .project-inline-image { margin-top: 28px; }
  .project-features { margin: 20px 0 24px; }
  .work-outro { align-items: start; flex-direction: column; margin-top: 0; padding-top: 26px; }
  .work-outro p { font-size: 17px; }
  .studio-service-grid { grid-template-columns: 1fr; }
  .studio-service { padding: 25px; }
  .studio-service + .studio-service { border-left: 1px solid var(--rule); border-top: 0; }
  .service-number { margin-bottom: 26px; }
  .studio-service h3 { font-size: 25px; }
  .service-examples { padding-bottom: 20px; }
  .process-track { grid-template-columns: 1fr; gap: 0; margin: 0 0 20px; }
  .process-track::before, .process-track::after { width: 1px; height: calc(100% - 90px); left: 20px; top: 20px; transform: none; }
  .process-track::after { display: none; }
  .process-track li { padding: 0 0 30px 65px; min-height: 115px; }
  .process-node { position: absolute; left: 0; top: 0; }
  .process-track h3 { padding-top: 10px; margin-bottom: 14px; }
  .process-track p { max-width: 43ch; }
  .studio-principles { gap: 14px; flex-direction: column; }
  .page-shell[aria-label="Home"] > .studio-faq { grid-template-columns: 1fr; gap: 28px; }
  .studio-faq h2 { font-size: 34px; }
  .faq-list summary { font-size: 13px; padding: 21px 0; }
  .page-shell[aria-label="Home"] > .section.project-brief { padding-top: 65px; padding-bottom: 65px; margin-top: 24px; }
  .project-brief h2 { font-size: 57px; }
  .brief-options { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 9px; margin: 28px 0; }
  .brief-options a { font-size: 11px; gap: 8px; justify-content: space-between; padding: 13px 10px; }
  .home-project-shortcuts { gap: 20px; font-size: 11px; padding-top: 12px; }
  .page-shell[aria-label="Home"] > .section.selected-work { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-frame, .work-progress > span, .process-track::after, .project-visit svg, .text-link svg, .faq-list summary span { transition: none; }
  .work-index { position: static; }
  .process-track::after { transform: scaleX(1); }
  .work-stage .project-artwork img { transform: none; }
}

/* Brand colour belongs to the products; the surrounding studio keeps its theme. */
[data-product-brand="autonex"] { --product-accent: #a8540c; --product-glow: #ffb646; }
[data-product-brand="orbitor"] { --product-accent: #4865b3; --product-glow: #a39be9; }
[data-product-brand="freleads"] { --product-accent: #087d70; --product-glow: #57ddbc; }
html[data-theme="dark"] [data-product-brand="autonex"] { --product-accent: #ffbc63; }
html[data-theme="dark"] [data-product-brand="orbitor"] { --product-accent: #aeb1f5; }
html[data-theme="dark"] [data-product-brand="freleads"] { --product-accent: #69e5cb; }
.home-project-shortcuts a::before { background: var(--product-accent); width: 6px; height: 6px; }
.work-index a[aria-current="true"] { background: color-mix(in srgb, var(--product-accent) 10%, var(--bg)); color: var(--fg); box-shadow: inset 0 -2px var(--product-accent); }
.project-features li { border-color: color-mix(in srgb, var(--product-accent) 28%, var(--rule)); background: color-mix(in srgb, var(--product-accent) 5%, var(--bg)); }
.project-visit { border-color: var(--product-accent); }
.project-frame .project-artwork figcaption { border-left: 2px solid var(--product-accent); }
