@property --service-icon-accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #ffac28;
}

@font-face {
  font-family: "Criativa Montserrat";
  src: url("./assets/fonts/Montserrat-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #07090b;
  --surface: #101419;
  --surface-raised: #171d21;
  --ink: #f4f2eb;
  --muted: #9aa2a6;
  --line: #293238;
  --orange: #ffac28;
  --orange-soft: #f07e38;
  --gutter: clamp(22px, 5vw, 76px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.site-header { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 24px var(--gutter); background: rgba(7, 9, 11, .82); backdrop-filter: blur(14px); }
.brand { display: block; line-height: 0; }
.brand img { display: block; width: 142px; height: auto; }
nav { position: relative; display: flex; gap: 34px; margin-left: 10vw; color: var(--muted); font-size: 14px; }
.language-nav { margin-left: auto; }
nav a, .header-action, .language-switch { transition: color .35s var(--ease); }
nav a:hover, .header-action:hover, .language-switch:hover { color: var(--orange); }
.language-switch { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; letter-spacing: .12em; cursor: pointer; }
.language-switch svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.3; transition: transform .3s var(--ease); }
.language-switch[aria-expanded="true"] svg { transform: rotate(180deg); }
.language-switch:focus-visible, .language-menu button:focus-visible { outline: 1px solid var(--orange); outline-offset: 4px; }
.language-menu { position: absolute; z-index: 30; top: calc(100% + 12px); right: -14px; display: grid; min-width: 164px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); box-shadow: 0 16px 36px rgba(0,0,0,.38); }
.language-menu[hidden] { display: none !important; }
.language-menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); text-align: left; font-size: 13px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.language-menu button span { order: 0; }
.language-menu button .language-flag { order: 1; }
.language-flag { width: 18px; height: 12px; flex: 0 0 18px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.language-menu button:hover, .language-menu button[aria-selected="true"] { background: rgba(255,255,255,.06); color: var(--ink); }
.header-action { display: none; }
.header-action > span:last-child { color: var(--orange); margin-left: 8px; }
.hero { min-height: 100vh; padding: 150px var(--gutter) 32px; position: relative; display: grid; grid-template-columns: minmax(280px, .8fr) 1.5fr; grid-template-rows: 1fr auto; gap: 30px; align-items: center; }
.hero-particles { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-copy { position: relative; z-index: 3; max-width: 570px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; }
.eyebrow > span:first-child { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 36px 0 28px; font-size: clamp(66px, 8.8vw, 150px); line-height: .82; letter-spacing: -.075em; }
h1 em, h2 em { color: var(--orange); font-style: normal; }
h1 em { white-space: nowrap; }
.hero-intro { max-width: 370px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.about-section { position: relative; isolation: isolate; display: grid; box-sizing: border-box; min-height: 82svh; align-items: center; overflow: hidden; padding: clamp(72px, 8vh, 112px) var(--gutter); background: var(--bg); }
.about-glow { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to bottom, var(--bg), var(--orange) 18%, var(--orange) 82%, var(--bg)); opacity: var(--about-glow-opacity, 1); pointer-events: none; }
.about-copy-wrap { position: relative; width: min(100%, 1020px); margin-inline: auto; }
.about-copy { position: relative; margin: 0; color: var(--bg); font-family: "Criativa Montserrat", Arial, Helvetica, sans-serif; font-size: clamp(30px, 4.25vw, 60px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; text-align: center; }
.about-copy-base { display: block; }
.orbit-stage { position: relative; min-height: min(680px, 70vh); display: grid; place-items: center; perspective: 1200px; transform-style: preserve-3d; }
.orbit-canvas { position: absolute; inset: 0; z-index: 5; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.orbit-canvas canvas { display: block; width: 100%; height: 100%; }
.orbit-stage.is-3d-ready .orbit-canvas { opacity: 1; pointer-events: auto; }
.orbit-stage.is-3d-ready .orbit-line, .orbit-stage.is-3d-ready .orbit-track, .orbit-stage.is-3d-ready .orbit-core { opacity: 0; pointer-events: none; }
.orbit-stage.is-3d-ready .preview-card { z-index: 20; }
.orbit-line { position: absolute; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; transform: rotate(-18deg); }
.orbit-line-one { width: min(550px, 90%); aspect-ratio: 1; }
.orbit-line-two { width: min(390px, 65%); aspect-ratio: 1; transform: rotate(55deg) scaleY(.66); border-color: #39434a; }
.orbit-core { position: relative; z-index: 4; width: 134px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--orange); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 14px rgba(255,172,40,.04), 0 20px 55px rgba(0,0,0,.35); transform: translateZ(42px); transform-style: preserve-3d; text-align: center; }
.core-logo { width: 60px; height: auto; }
.orbit-track { position: absolute; inset: 0; pointer-events: none; transform-style: preserve-3d; }
.orbit-node { position: absolute; left: 0; top: 0; width: 126px; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; pointer-events: auto; overflow: hidden; transform-style: preserve-3d; backface-visibility: hidden; will-change: transform, filter, opacity; transition: border-color .45s var(--ease), opacity .45s var(--ease), filter .45s var(--ease); }
.orbit-node:hover, .orbit-node:focus-visible, .orbit-node.is-active { border-color: #566168; outline: none; }
.node-cover { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; background-color: var(--project-tint); background-image: var(--project-image); background-position: center; background-repeat: no-repeat; background-size: cover; color: var(--orange); font-size: 30px; font-weight: 800; letter-spacing: -.08em; }
.node-cover::before { content: ""; position: absolute; inset: 0; background: rgba(7, 9, 11, .28); box-shadow: inset 0 0 26px rgba(0,0,0,.42); }
.preview-card { position: absolute; z-index: 30; width: 245px; padding: 10px; background: var(--surface-raised); border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(0,0,0,.32); opacity: 0; pointer-events: none; transform: translateY(10px) scale(.97); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.preview-card.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.preview-cover { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background-color: var(--surface); color: var(--orange); font-size: 24px; font-weight: 800; }
.preview-cover img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.preview-content { padding: 12px 4px 4px; }
.preview-type { margin-bottom: 6px; color: var(--orange); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.preview-card h2 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.05em; }
.preview-description { margin-bottom: 13px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.preview-cta { color: var(--ink); font-size: 12px; }
.preview-cta b { color: var(--orange); margin-left: 7px; }
.hero-footer { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.scroll-line { height: 1px; flex: 1; background: var(--line); }
.project-gallery { position: absolute; right: var(--gutter); bottom: 40px; left: var(--gutter); z-index: 5; display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 8px; min-width: 0; }
.gallery-viewport { min-width: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.gallery-viewport.is-dragging { cursor: grabbing; }
.gallery-viewport .mobile-project-list { display: flex; gap: 12px; width: max-content; padding: 6px 16px 12px; }
.gallery-viewport .mobile-project-card { flex: 0 0 clamp(156px, 15vw, 204px); min-width: 0; display: grid; grid-template-rows: auto auto; padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 14px 32px rgba(0,0,0,.22); transition: border-color .35s var(--ease), transform .45s var(--ease), background .35s var(--ease); }
.gallery-viewport .mobile-project-card:hover, .gallery-viewport .mobile-project-card:focus-visible { border-color: var(--orange); background: var(--surface-raised); outline: none; transform: translateY(-5px); }
.gallery-viewport .mobile-project-image { display: block; width: 100%; aspect-ratio: 16 / 8.5; border-radius: 8px; background-color: var(--project-tint); background-image: var(--project-image); background-position: center; background-size: cover; }
.gallery-viewport .mobile-project-copy { display: grid; gap: 2px; padding: 7px 3px 3px; }
.gallery-viewport .mobile-project-copy small { overflow: hidden; color: var(--orange); font-size: 7px; letter-spacing: .1em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.gallery-viewport .mobile-project-copy strong { overflow: hidden; font-size: 13px; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.gallery-viewport .mobile-project-copy span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.gallery-viewport .mobile-project-card > b { align-self: end; justify-self: end; margin: -22px 4px 1px 0; color: var(--orange); font-size: 15px; font-weight: 400; }
.gallery-arrow { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: rgba(244,242,235,.56) !important; font-size: 0; line-height: 1; cursor: pointer; transition: color .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease); }
.gallery-arrow svg { display: block; width: 19px; height: 19px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.gallery-arrow:hover:not(:disabled), .gallery-arrow:focus-visible:not(:disabled) { color: rgba(255,172,40,.72) !important; outline: none; transform: scale(1.06); }
.gallery-arrow:disabled { cursor: default; opacity: .28; }
.mobile-project-list { display: none; }
.marquee-band { overflow: hidden; padding: 28px 0 24px; background: var(--orange); color: var(--bg); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 34px; white-space: nowrap; animation: marquee 24s linear infinite; }
.marquee-track span { font-size: clamp(31px, 5vw, 76px); font-weight: 800; line-height: .9; letter-spacing: -.07em; }
.marquee-track b { color: var(--bg); font-size: clamp(28px, 4vw, 60px); font-weight: 400; }
.marquee-track .marquee-mark { display: grid; width: clamp(24px, 3.2vw, 48px); height: clamp(24px, 3.2vw, 48px); place-items: center; flex: 0 0 auto; }
.marquee-track .marquee-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.services { padding: 120px var(--gutter) 0; background: var(--surface); }
.services h2 { max-width: 720px; margin: 25px 0 24px; font-size: clamp(54px, 8vw, 130px); line-height: .84; letter-spacing: -.075em; }
.services-intro { max-width: 660px; margin: 0 0 72px; color: var(--muted); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.5; }
.service-list { border-top: 1px solid var(--line); }
.service-row { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) 76px; gap: 20px; align-items: center; min-height: 154px; padding: 34px 0; border-bottom: 1px solid var(--line); isolation: isolate; transition: border-color .72s var(--ease), color .72s var(--ease); }
.service-row::before { position: absolute; z-index: 0; inset: 0; content: ""; background: var(--orange); transform: scaleY(0); transform-origin: center bottom; transition: transform .72s cubic-bezier(.16, 1, .3, 1); }
.service-row > * { position: relative; z-index: 1; }
.service-row > span:first-child { color: var(--muted); font-size: 12px; transition: color .45s var(--ease); }
.service-row > div { transform: translateY(12px); transition: transform .72s var(--ease); }
.service-row h3 { margin-bottom: 9px; font-size: clamp(32px, 5vw, 72px); letter-spacing: -.07em; line-height: .9; }
.service-row p { margin: 0; max-width: 640px; color: var(--muted); line-height: 1.4; opacity: .82; transition: color .5s var(--ease), opacity .55s var(--ease); }
.service-icon { display: grid; width: 66px; height: 66px; place-items: center; justify-self: end; color: var(--ink); --service-icon-accent: var(--orange); transition: color .72s var(--ease), --service-icon-accent .72s var(--ease); }
.service-icon-art { display: block; width: 100%; height: 100%; overflow: visible; }
.service-row:hover, .service-row:focus-within, .service-row.is-hover { border-color: rgba(7,9,11,.22); color: var(--bg); }
.service-row:hover::before, .service-row:focus-within::before, .service-row.is-hover::before { transform: scaleY(1); }
.service-row:hover > div, .service-row:focus-within > div, .service-row.is-hover > div { transform: translateY(0); }
.service-row:hover p, .service-row:focus-within p, .service-row.is-hover p { opacity: 1; }
.service-row:hover > span:first-child, .service-row:focus-within > span:first-child, .service-row.is-hover > span:first-child,
.service-row:hover h3, .service-row:focus-within h3, .service-row.is-hover h3 { color: var(--bg); }
.service-row:hover p, .service-row:focus-within p, .service-row.is-hover p { color: var(--bg); }
.service-row:hover .service-icon, .service-row:focus-within .service-icon, .service-row.is-hover .service-icon { color: var(--bg); --service-icon-accent: #fff; }
.touch-motion .service-row { min-height: 190px; }
.contact-section { padding: 120px var(--gutter) 78px; background: #edece7; color: var(--bg); }
.contact-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; margin-bottom: 72px; }
.contact-heading h2 { margin: 0; font-size: clamp(54px, 7.5vw, 118px); line-height: .86; letter-spacing: -.075em; }
.contact-heading h2 em { color: var(--orange-soft); font-style: normal; }
.contact-heading > p { max-width: 360px; margin: 0 0 4px; color: #42484b; font-size: 18px; line-height: 1.45; }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: clamp(32px, 5vw, 64px); background: var(--bg); color: var(--ink); border-radius: 16px; }
.contact-copy h3 { margin: 34px 0 28px; font-size: clamp(34px, 4vw, 66px); line-height: .9; letter-spacing: -.065em; }
.contact-copy h3 em { color: var(--orange); font-style: normal; }
.contact-email { display: inline-block; padding-bottom: 8px; border-bottom: 1px solid var(--muted); color: var(--ink); transition: color .35s var(--ease), border-color .35s var(--ease); }
.contact-email:hover { color: var(--orange); border-color: var(--orange); }
.contact-links { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; padding: 19px 24px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 18px; transition: transform .45s var(--ease), border-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease); }
.contact-links a b { color: var(--orange); font-weight: 400; transition: transform .45s var(--ease); }
.contact-links a:hover, .contact-links a:focus-visible { transform: translateX(8px); border-color: var(--orange); background: var(--surface); outline: none; }
.contact-links a:hover b, .contact-links a:focus-visible b { transform: translate(5px, -5px); }
.contact-section { background: var(--surface); color: var(--ink); }
.contact-heading > p { color: var(--muted); }
.contact-heading h2 em { color: var(--orange); }
.site-footer { padding: 0 var(--gutter) 28px; color: var(--muted); text-align: right; font-size: 11px; letter-spacing: .03em; background: var(--surface); }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; transition: color .35s var(--ease); }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--orange); }
.cursor-dot, .cursor-ring { position: fixed; z-index: 40; pointer-events: none; transform: translate(-50%, -50%); border-radius: 50%; opacity: 0; }
.cursor-dot { width: 6px; height: 6px; background: var(--orange); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid var(--orange); transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease); }
body.has-pointer .cursor-dot, body.has-pointer .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 58px; height: 58px; background: rgba(255,172,40,.1); }
.project-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 3vw; background: rgba(7,9,11,.94); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.project-modal.is-open { opacity: 1; pointer-events: auto; }
.modal-inner { width: min(1440px, 94vw); height: min(900px, 92vh); display: flex; flex-direction: column; padding: clamp(24px, 4vw, 54px); background: var(--surface); border: 1px solid var(--line); }
.modal-inner h2 { margin: 30px 0 12px; font-size: clamp(44px, 7vw, 90px); line-height: .85; letter-spacing: -.07em; }
.modal-description { margin-bottom: 0; color: var(--muted); }
.iframe-placeholder { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; flex: 0 0 auto; min-height: 0; margin: 30px auto 0; display: grid; place-items: center; align-content: center; gap: 10px; overflow: hidden; background: var(--bg); border: 1px dashed var(--line); color: var(--orange); }
.iframe-fallback { position: absolute; inset: 0; z-index: 1; display: none; place-items: center; align-content: center; gap: 10px; padding: 16px; background: var(--bg); color: var(--muted); text-align: center; }
.iframe-fallback img { display: block; width: 100%; height: 100%; object-fit: contain; opacity: .9; }
.iframe-fallback span { position: absolute; right: 16px; bottom: 14px; left: 16px; padding: 8px 10px; background: rgba(7,9,11,.78); color: var(--ink); font-size: 11px; }
.project-modal.has-fallback .iframe-fallback { display: grid; }
.project-modal.has-fallback .iframe-placeholder iframe { display: none; }
.iframe-placeholder small { color: var(--muted); }
.iframe-placeholder::after { display: none; position: absolute; inset: 0; z-index: 2; place-items: center; content: "Carregando prévia…"; background: linear-gradient(135deg, rgba(18,22,26,.96), rgba(7,9,11,.88)); color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.project-modal.is-loading .iframe-placeholder::after { display: grid; animation: iframe-loading 1.4s ease-in-out infinite alternate; }
@keyframes iframe-loading { from { opacity: .72; } to { opacity: 1; } }
.iframe-placeholder iframe { position: absolute; top: 50%; left: 50%; width: 1280px; height: 800px; max-width: none; border: 0; background: var(--bg); opacity: .01; transform: translate(-50%, -50%) scale(var(--iframe-scale, 1)); transform-origin: center; transition: opacity .6s var(--ease), transform .35s var(--ease); }
.iframe-placeholder:has(iframe[src]) iframe { opacity: 1; }
.iframe-placeholder:has(iframe[src]) > span, .iframe-placeholder:has(iframe[src]) > small { position: absolute; z-index: -1; }
.modal-link, .modal-external { color: var(--orange); }
.modal-action-row { display: none; align-items: baseline; gap: 16px; margin-top: 18px; }
.modal-action-row.is-visible { display: flex; }
.modal-external { display: none; width: fit-content; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.modal-external.is-visible { display: inline-block; }
.modal-note { display: none; color: var(--muted); font-size: 11px; line-height: 1.35; }
.modal-note.is-visible { display: block; }
.modal-close { position: absolute; top: 24px; right: 30px; border: 0; background: none; font-size: 38px; cursor: pointer; }
.motion-ready [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.motion-ready [data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
.motion-ready .service-row:nth-child(2) { transition-delay: .08s; }
.motion-ready .service-row:nth-child(3) { transition-delay: .16s; }
.motion-ready .service-row:nth-child(4) { transition-delay: .24s; }
@media (max-width: 1099px) { .project-gallery { position: static; display: contents; } .gallery-viewport { display: contents; } .gallery-arrow { display: none; } nav { margin-left: 0; } .header-action { display: none; } .hero { display: block; padding-top: 130px; } .hero-copy { margin-bottom: 35px; } .orbit-stage { min-height: clamp(420px, 58vw, 480px); margin-bottom: 64px; overflow: visible; } .orbit-line-one { width: 380px; } .orbit-line-two { width: 280px; } .orbit-node { width: 94px; } .preview-card { display: none; } .mobile-project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 0; overflow-x: clip; } .mobile-project-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 6px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: rgba(255,255,255,.065); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 50px rgba(0,0,0,.18); backdrop-filter: blur(22px) saturate(135%); -webkit-backdrop-filter: blur(22px) saturate(135%); color: var(--ink); text-align: left; cursor: pointer; transform: translate3d(var(--scroll-shift, 0px), 0, 0) scale(var(--scroll-scale, 1)); transition: transform .18s linear, border-color .3s var(--ease); } .mobile-project-card:active, .mobile-project-card:focus-visible { border-color: var(--orange); outline: none; } .mobile-project-image { width: 100%; aspect-ratio: 16 / 10; display: block; border-radius: 10px; background-color: var(--project-tint); background-image: var(--project-image); background-position: center; background-size: cover; } .mobile-project-copy { min-width: 0; display: grid; gap: 3px; padding: 8px 3px 6px; } .mobile-project-copy small { overflow: hidden; color: var(--orange); font-size: 7px; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; } .mobile-project-copy strong { overflow: hidden; font-size: 13px; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; } .mobile-project-copy span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; } .mobile-project-card > b { align-self: flex-end; margin: -23px 5px 2px 0; color: var(--orange); font-size: 16px; font-weight: 400; } .hero-footer { margin-top: 24px; } }
@media (max-width: 1099px) { .mobile-project-card[data-loop-copy="true"] { display: none; } }
@media (max-width: 1099px), (hover: none) { .orbit-canvas { display: none; } .orbit-stage.is-3d-ready .orbit-canvas { display: none; } .orbit-stage.is-3d-ready .orbit-line, .orbit-stage.is-3d-ready .orbit-track, .orbit-stage.is-3d-ready .orbit-core { opacity: 1; pointer-events: auto; } }
@media (max-width: 1099px) { .hero-copy { max-width: none; text-align: center; } .hero-copy .eyebrow { justify-content: center; } .hero-copy h1 { margin-right: auto; margin-left: auto; font-size: clamp(30px, 8vw, 82px); line-height: .92; white-space: nowrap; } .hero-copy h1 br { display: none; } .hero-intro { max-width: none; margin-right: auto; margin-left: auto; font-size: clamp(8px, 2.2vw, 17px); letter-spacing: -.02em; white-space: nowrap; } }
@media (max-width: 1099px) { .mobile-project-list { position: relative; width: calc(100% + (var(--gutter) * 2)); margin-left: calc(var(--gutter) * -1); padding-right: var(--gutter); padding-left: var(--gutter); overflow-x: hidden; } .mobile-project-list::before, .mobile-project-list::after { position: absolute; z-index: 2; top: 0; bottom: 0; width: clamp(42px, 11vw, 110px); content: ""; pointer-events: none; } .mobile-project-list::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(7,9,11,0)); } .mobile-project-list::after { right: 0; background: linear-gradient(270deg, var(--bg), rgba(7,9,11,0)); } .mobile-project-card { position: relative; z-index: 1; margin-right: -3px; margin-left: -3px; } }
@media (max-width: 1099px) { .mobile-project-list { width: 100vw; margin-left: calc(50% - 50vw); padding-right: 0; padding-left: 0; } }
@media (max-width: 1099px) { .mobile-project-list { gap: 16px; } .mobile-project-card { margin-right: 0; margin-left: 0; } .mobile-project-image { aspect-ratio: 16 / 9; } }
@media (max-width: 1099px) { .mobile-project-card { position: relative; display: block; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; } .mobile-project-image { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; } .mobile-project-copy { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; display: grid; gap: 2px; padding: 7px; background: rgba(7,9,11,.76); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } .mobile-project-copy small { font-size: 6px; } .mobile-project-copy strong { font-size: 12px; } .mobile-project-copy span { font-size: 8px; line-height: 1.15; } .mobile-project-card > b { position: absolute; z-index: 2; top: 5px; right: 7px; margin: 0; font-size: 16px; } }
@media (max-width: 1099px) { .gallery-arrow { display: none !important; } body.desktop-pointer .gallery-arrow { display: grid !important; } }
.gallery-arrow { appearance: none; -webkit-appearance: none; background: transparent !important; border: 1px solid var(--line) !important; border-radius: 50% !important; color: var(--ink) !important; }
.gallery-arrow[hidden] { display: none !important; }
@media (max-width: 560px) { .mobile-project-list::before, .mobile-project-list::after { width: 22px; } .mobile-project-list { gap: 10px; } }
@media (max-width: 560px) { .mobile-project-copy { padding: 6px; } .mobile-project-copy small, .mobile-project-copy span { display: none; } .mobile-project-copy strong { font-size: 12px; } }
@media (max-width: 560px) { .site-header { padding: 18px var(--gutter); } nav { gap: 18px; font-size: 12px; } h1 { font-size: clamp(62px, 19vw, 98px); } .orbit-stage { min-height: 430px; margin-bottom: 76px; } .orbit-line-one { width: 340px; } .orbit-line-two { width: 250px; } .orbit-core { width: 108px; } .orbit-node { width: 76px; } .mobile-project-card { padding: 6px; border-radius: 14px; } .mobile-project-image { border-radius: 9px; } .mobile-project-copy { padding: 9px 3px 7px; } .mobile-project-copy strong { font-size: 15px; } .mobile-project-copy span { font-size: 10px; } .mobile-project-card > b { margin-top: -25px; margin-right: 5px; font-size: 17px; } .service-row { grid-template-columns: 32px 1fr 28px; gap: 10px; padding: 26px 0; } .service-row h3 { font-size: 36px; } .service-row p { font-size: 13px; } .contact-section { padding: 120px var(--gutter) 50px; } .contact-heading { display: block; margin-bottom: 45px; } .contact-heading > p { margin-top: 28px; font-size: 16px; } .contact-panel { display: block; padding: 28px 20px; } .contact-links { margin-top: 45px; gap: 10px; } .contact-links a { padding: 16px 18px; font-size: 15px; } .cursor-dot, .cursor-ring { display: none; } }
@media (max-width: 700px) {
  .project-modal { padding: 12px; align-items: center; }
  .modal-inner { width: 100%; height: calc(100vh - 24px); max-height: none; overflow-y: auto; padding: 22px 16px 16px; }
  .modal-inner h2 { margin: 20px 0 10px; font-size: clamp(34px, 10vw, 60px); }
  .modal-description { font-size: 13px; line-height: 1.4; }
  .iframe-placeholder { width: 100%; aspect-ratio: 16 / 10; margin-top: 20px; }
  .modal-close { top: 10px; right: 14px; font-size: 32px; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 700px) {
  .hero { display: grid; grid-template-columns: minmax(260px, .8fr) 1.5fr; grid-template-rows: minmax(0, 1fr) auto; padding-top: 150px; }
  .hero-copy { margin-bottom: 0; text-align: left; }
  .hero-copy .eyebrow { justify-content: flex-start; }
  .hero-copy h1 { margin: 36px 0 28px; font-size: clamp(62px, 8.8vw, 150px); line-height: .82; white-space: normal; }
  .hero-copy h1 br { display: block; }
  .hero-intro { max-width: 370px; margin-right: 0; margin-left: 0; font-size: 17px; white-space: normal; }
  .orbit-stage { min-height: min(680px, 70vh); margin-bottom: 0; overflow: visible; }
  .orbit-line-one { width: min(550px, 90%); }
  .orbit-line-two { width: min(390px, 65%); }
  .orbit-node { width: 126px; }
  .project-gallery { position: absolute; display: grid; }
  .gallery-viewport { display: block; }
  .gallery-arrow { display: grid; }
  .gallery-viewport .mobile-project-list { display: flex; width: max-content; }
  .gallery-viewport .mobile-project-card { display: grid; aspect-ratio: auto; padding: 7px; }
  .gallery-viewport .mobile-project-image { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; }
  .gallery-viewport .mobile-project-copy { position: static; padding: 9px 3px 4px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .gallery-viewport .mobile-project-copy small { display: block; font-size: 7px; }
  .gallery-viewport .mobile-project-copy strong { font-size: 14px; }
  .gallery-viewport .mobile-project-copy span { display: -webkit-box; font-size: 10px; }
  .gallery-viewport .mobile-project-card > b { position: static; margin: -22px 4px 1px 0; font-size: 15px; }
}
  body.desktop-pointer .hero { display: grid; grid-template-columns: minmax(260px, .8fr) 1.5fr; grid-template-rows: minmax(0, 1fr) auto; min-height: calc(100vh + 120px); padding-top: 112px; align-items: center; }
  body.desktop-pointer .hero-copy { padding-top: 0; }
  body.desktop-pointer .hero-copy { margin-bottom: 0; text-align: left; }
  body.desktop-pointer .hero-copy .eyebrow { justify-content: flex-start; }
  body.desktop-pointer .hero-copy h1 { margin: 36px 0 28px; font-size: clamp(62px, 8.8vw, 150px); line-height: .82; white-space: normal; }
  body.desktop-pointer .hero-copy h1 br { display: block; }
  body.desktop-pointer .hero-intro { max-width: 370px; margin-right: 0; margin-left: 0; font-size: 17px; white-space: normal; }
  body.desktop-pointer .orbit-stage { min-height: min(560px, 62vh); margin-bottom: 0; overflow: visible; }
  body.desktop-pointer .orbit-line-one { width: min(550px, 90%); }
  body.desktop-pointer .orbit-line-two { width: min(390px, 65%); }
  body.desktop-pointer .orbit-node { width: 126px; }
  body.desktop-pointer .project-gallery { position: absolute; display: grid; }
  body.desktop-pointer .gallery-viewport { display: block; }
  body.desktop-pointer .gallery-arrow { display: grid; }
  body.desktop-pointer .gallery-viewport .mobile-project-list { display: flex; width: max-content; }
  body.desktop-pointer .gallery-viewport .mobile-project-card { display: grid; aspect-ratio: auto; padding: 7px; }
  body.desktop-pointer .gallery-viewport .mobile-project-image { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 8px; }
  body.desktop-pointer .gallery-viewport .mobile-project-copy { position: static; padding: 9px 3px 4px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.desktop-pointer .gallery-viewport .mobile-project-copy small { display: block; font-size: 7px; }
  body.desktop-pointer .gallery-viewport .mobile-project-copy strong { font-size: 14px; }
  body.desktop-pointer .gallery-viewport .mobile-project-copy span { display: -webkit-box; font-size: 10px; }
  body.desktop-pointer .gallery-viewport .mobile-project-card > b { position: static; margin: -22px 4px 1px 0; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } .marquee-track { animation: none; transform: translateX(0); } .motion-ready [data-reveal] { opacity: 1; transform: none; } }

/* Half-screen and tablet landscape: keep the composition vertical so the
   title, orbit, and project gallery each have a clear visual lane. */
@media (hover: hover) and (pointer: fine) and (min-width: 700px) and (max-width: 1099px) {
  .hero { display: block; min-height: auto; padding: 128px var(--gutter) 58px; }
  .hero-copy { max-width: 760px; margin: 0 auto 30px; text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-copy h1 { margin: 28px auto 18px; font-size: clamp(54px, 9vw, 92px); line-height: .88; white-space: nowrap; }
  .hero-copy h1 br { display: none; }
  .hero-intro { max-width: 620px; margin: 0 auto; font-size: clamp(14px, 1.8vw, 17px); white-space: normal; }
  .orbit-stage { min-height: clamp(340px, 40vw, 420px); margin: 0 auto 42px; overflow: visible; }
  .project-gallery { position: static; display: block; width: 100%; }
  .gallery-viewport { display: block; overflow: visible; }
  .gallery-arrow { display: none !important; }
  .project-gallery .gallery-viewport .mobile-project-list { display: grid; width: 100%; margin: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; overflow: visible; }
  .project-gallery .gallery-viewport .mobile-project-card[data-loop-copy="true"] { display: none; }
  .mobile-project-list::before, .mobile-project-list::after { display: none; }
  .project-gallery .gallery-viewport .mobile-project-card { flex: initial; width: auto; margin: 0; aspect-ratio: 16 / 10; }
}

/* The desktop orbital scene is a transparent atmospheric layer across the
   whole hero. The copy stays above it, so planets can pass behind the title
   without changing the horizontal composition. */
@media (hover: hover) and (pointer: fine) and (min-width: 1100px) {
  body.desktop-pointer .hero-copy { z-index: 10; background: transparent; }
  body.desktop-pointer .orbit-stage { z-index: 1; overflow: visible; }
  body.desktop-pointer .orbit-canvas { left: calc(-1 * clamp(280px, 25vw, 340px)); right: auto; width: calc(100% + clamp(280px, 25vw, 340px) + var(--gutter) - 26px); background: transparent; transform: translateX(38px); }
}

body.desktop-pointer .orbit-stage.is-3d-ready .orbit-canvas { top: -66px; bottom: -66px; }

@media (max-width: 699px), (hover: none) { .hero-particles { display: none; } }

/* Let the 3D scene use the full safe width instead of the text gutter. */
@media (max-width: 1279px) {
  .orbit-stage .orbit-canvas { left: calc(-1 * var(--gutter) + 8px); right: calc(-1 * var(--gutter) + 8px); }
}

/* One responsive carousel below the orbital scene at tablet and phone widths. */
@media (max-width: 1099px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 0; padding: clamp(112px, 12vw, 142px) var(--gutter) clamp(54px, 7vw, 80px); }
  .hero-copy { width: 100%; max-width: 800px; margin: 0 auto clamp(46px, 6vw, 74px); text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-copy h1 { margin: 24px auto 18px; font-size: clamp(30px, 7.5vw, 82px); line-height: .94; white-space: nowrap; }
  .hero-copy h1 br { display: none; }
  .hero-intro { max-width: 620px; margin: 0 auto; font-size: clamp(11px, 1.9vw, 16px); line-height: 1.45; white-space: normal; }
  .orbit-stage { width: 100%; height: clamp(430px, calc(90vw + 60px), 660px); min-height: 0; margin: 0 auto clamp(28px, 4vw, 50px); overflow: visible; }
  .orbit-line-one { width: var(--orbit-outer-size, 90%); }
  .orbit-line-two { width: var(--orbit-inner-size, 65%); }
  .project-gallery { position: relative; inset: auto; display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 6px; width: 100%; margin: 0; }
  .project-gallery .gallery-arrow { display: grid !important; width: 36px; height: 36px; }
  .project-gallery .gallery-viewport { display: block; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
  .project-gallery .gallery-viewport::-webkit-scrollbar { display: none; }
  .project-gallery .gallery-viewport .mobile-project-list { position: relative; display: flex; width: max-content; max-width: none; margin: 0; padding: 6px 10px 12px; gap: 12px; overflow: visible; grid-template-columns: none; }
  .project-gallery .gallery-viewport .mobile-project-list::before, .project-gallery .gallery-viewport .mobile-project-list::after { display: none; }
  .project-gallery .gallery-viewport .mobile-project-card,
  .project-gallery .gallery-viewport .mobile-project-card[data-loop-copy="true"] { position: relative; display: grid; flex: 0 0 clamp(190px, 27vw, 242px); width: clamp(190px, 27vw, 242px); min-width: 0; height: auto; aspect-ratio: auto; margin: 0; padding: 6px; overflow: hidden; transform: none; background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .project-gallery .gallery-viewport .mobile-project-image { position: static; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 16 / 8.5; border-radius: 8px; }
  .project-gallery .gallery-viewport .mobile-project-copy { position: static; inset: auto; display: grid; padding: 7px 3px 3px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .project-gallery .gallery-viewport .mobile-project-copy small { display: block; font-size: 7px; }
  .project-gallery .gallery-viewport .mobile-project-copy strong { display: block; font-size: 14px; }
  .project-gallery .gallery-viewport .mobile-project-copy span { display: -webkit-box; font-size: 10px; }
  .project-gallery .gallery-viewport .mobile-project-card > b { position: static; align-self: end; justify-self: end; margin: -22px 4px 1px 0; font-size: 15px; }
}
@media (max-width: 699px) {
  .hero { padding-top: 112px; }
  .hero-copy { margin-bottom: 44px; }
  .hero-copy h1 { font-size: clamp(29px, 7.5vw, 52px); }
  .hero-intro { font-size: clamp(10px, 2.5vw, 13px); }
  .project-gallery { width: calc(100% + 2 * var(--gutter)); margin-left: calc(-1 * var(--gutter)); grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 0; }
  .project-gallery .gallery-arrow { width: 30px; height: 36px; }
  .project-gallery .gallery-viewport .mobile-project-card,
  .project-gallery .gallery-viewport .mobile-project-card[data-loop-copy="true"] { flex-basis: clamp(190px, 55vw, 230px); width: clamp(190px, 55vw, 230px); }
  .project-gallery .gallery-viewport .mobile-project-copy small,
  .project-gallery .gallery-viewport .mobile-project-copy span { display: none; }
  .project-gallery .gallery-viewport .mobile-project-copy strong { font-size: 13px; }
}

/* Keep the 16:10 preview inside the space left by the modal heading. */
.project-modal .modal-inner { position: relative; width: min(1440px, 100%); height: auto; max-height: min(1100px, calc(100dvh - 24px)); min-height: 0; overflow-y: auto; }
.project-modal .modal-inner h2 { font-size: clamp(34px, 6.3vw, 82px); overflow-wrap: anywhere; }
.project-modal .modal-action-row { flex-wrap: wrap; }
.project-modal .iframe-placeholder { flex: 0 0 auto; width: min(100%, 1000px); height: auto; max-height: none; aspect-ratio: 16 / 10; margin: clamp(18px, 2vw, 28px) auto 0; }

.project-modal .modal-close { z-index: 4; top: 12px; right: 16px; }

/* Keep tablet landscape and half-width desktop windows on the stacked hero. */
@media (min-width: 700px) and (max-width: 1279px), (hover: none) and (pointer: coarse) and (min-width: 700px) and (max-width: 1399px) {
  .hero, body.desktop-pointer .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: calc(100svh - clamp(56px, 5.8vw, 72px));
    gap: 0;
    padding: clamp(122px, 10vw, 132px) var(--gutter) 24px;
  }
  .hero-copy, body.desktop-pointer .hero-copy {
    width: 100%;
    max-width: 850px;
    margin: 0 auto clamp(22px, 2.8vw, 34px);
    text-align: center;
    transform: none;
  }
  .hero-copy .eyebrow, body.desktop-pointer .hero-copy .eyebrow { justify-content: center; }
  .hero-copy h1, body.desktop-pointer .hero-copy h1 {
    margin: 24px auto 18px;
    font-size: clamp(42px, 6.4vw, 72px);
    line-height: .94;
    white-space: nowrap;
  }
  .hero-copy h1 br, body.desktop-pointer .hero-copy h1 br { display: none; }
  .hero-intro, body.desktop-pointer .hero-intro {
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(14px, 1.7vw, 17px);
    white-space: normal;
  }
  .orbit-stage, body.desktop-pointer .orbit-stage {
    width: 100%;
    height: auto;
    min-height: clamp(430px, 45vw, 480px);
    flex: 1 1 clamp(430px, 45vw, 480px);
    margin: 0 auto clamp(20px, 2vw, 26px);
    overflow: visible;
    transform: none;
  }
  .project-gallery, body.desktop-pointer .project-gallery {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 0;
  }
  .project-gallery .gallery-arrow, body.desktop-pointer .project-gallery .gallery-arrow {
    display: grid !important;
    width: 36px;
    height: 36px;
  }
  .project-gallery .gallery-viewport, body.desktop-pointer .project-gallery .gallery-viewport {
    display: block;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .project-gallery .gallery-viewport::-webkit-scrollbar { display: none; }
  .project-gallery .gallery-viewport .mobile-project-list, body.desktop-pointer .project-gallery .gallery-viewport .mobile-project-list {
    display: flex;
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 6px 10px 12px;
    gap: 14px;
    overflow: visible;
  }
  .project-gallery .gallery-viewport .mobile-project-card,
  .project-gallery .gallery-viewport .mobile-project-card[data-loop-copy="true"],
  body.desktop-pointer .project-gallery .gallery-viewport .mobile-project-card,
  body.desktop-pointer .project-gallery .gallery-viewport .mobile-project-card[data-loop-copy="true"] {
    display: grid;
    flex: 0 0 clamp(232px, 22vw, 282px);
    width: clamp(232px, 22vw, 282px);
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    padding: 7px;
  }
  .orbit-node, body.desktop-pointer .orbit-node { width: clamp(70px, 8vw, 82px); }
  .orbit-core, body.desktop-pointer .orbit-core { width: 108px; }
  .orbit-line-two { transform: rotate(55deg); }
  body.desktop-pointer .orbit-canvas { left: 0; right: 0; width: 100%; transform: none; }
  .marquee-band[data-reveal] { opacity: 1; transform: none; }
}

/* Surface-sized viewports need a slightly lower heading block. */
@media (min-width: 850px) and (max-width: 979px),
  (hover: none) and (pointer: coarse) and (min-width: 1280px) and (max-width: 1399px) and (min-aspect-ratio: 7/5) {
  .hero, body.desktop-pointer .hero { padding-top: clamp(136px, 11vw, 146px); }
}

/* iPad Pro layouts get a small extra drop without changing the Mini. */
@media (min-width: 980px) and (max-width: 1279px),
  (hover: none) and (pointer: coarse) and (min-width: 1280px) and (max-width: 1399px) and (max-aspect-ratio: 7/5) {
  .hero, body.desktop-pointer .hero { padding-top: 140px; }
}

@media (max-width: 699px) {
  .hero { min-height: 0; padding-top: clamp(104px, 14svh, 134px); padding-bottom: 0; }
  .hero-copy { margin-bottom: clamp(8px, 1.5svh, 14px); }
  .hero-copy h1 { margin: 18px auto 14px; font-size: clamp(28px, 8vw, 36px); line-height: .94; letter-spacing: -.09em; white-space: nowrap; }
  .hero-copy h1 br { display: none; }
  .hero-intro { width: 100%; max-width: min(100%, 34ch); font-size: clamp(14px, 3.6vw, 16px); line-height: 1.4; white-space: normal; }
  .orbit-stage { height: clamp(340px, 43svh, 410px); min-height: 0; margin-bottom: clamp(10px, 1.5svh, 16px); }
  .orbit-node { width: clamp(52px, 15vw, 66px); }
  .orbit-core { width: 80px; }
  .project-gallery { margin-top: clamp(-47px, calc(22.5svh - 213px), 2px); transform: translateY(-20px); }
}

@media (max-width: 699px) and (min-height: 800px) {
  .hero { padding-top: calc(clamp(104px, 14svh, 134px) + clamp(0px, calc(8svh - 48px), 28px)); }
}

/* Keep the desktop composition in view on compact, touch-enabled displays
   such as Nest Hub Max (1280 × 800). */
@media (hover: none) and (pointer: coarse) and (min-width: 1100px) and (max-width: 1399px) and (max-height: 850px) {
  .hero, body.desktop-pointer .hero {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(0, 1.3fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 100svh;
    min-height: 0;
    padding: 92px var(--gutter) 270px;
  }
  .hero-copy, body.desktop-pointer .hero-copy {
    width: 100%;
    max-width: 500px;
    margin: 0;
    text-align: left;
    z-index: 10;
    background: transparent;
  }
  .hero-copy .eyebrow, body.desktop-pointer .hero-copy .eyebrow { justify-content: flex-start; }
  .hero-copy h1, body.desktop-pointer .hero-copy h1 {
    margin: 26px 0 18px;
    font-size: clamp(58px, 5.3vw, 72px);
    line-height: .88;
    white-space: normal;
  }
  .hero-copy h1 br, body.desktop-pointer .hero-copy h1 br { display: block; }
  .hero-intro, body.desktop-pointer .hero-intro { max-width: 390px; margin: 0; font-size: 16px; }
  .orbit-stage, body.desktop-pointer .orbit-stage {
    z-index: 1;
    width: calc(100% + 160px);
    height: min(420px, calc(100svh - 384px));
    min-height: 0;
    margin: 0 0 0 -80px;
    overflow: visible;
  }
  .project-gallery, body.desktop-pointer .project-gallery {
    position: absolute;
    right: var(--gutter);
    bottom: 18px;
    left: var(--gutter);
    width: auto;
  }
  .marquee-band { display: none; }
}

/* The same Three.js orbital scene runs at every responsive width. */
@media (min-width: 320px) {
  .orbit-stage.is-3d-ready .orbit-canvas { display: block; opacity: 1; pointer-events: auto; }
  .orbit-stage.is-3d-ready .orbit-line,
  .orbit-stage.is-3d-ready .orbit-track,
  .orbit-stage.is-3d-ready .orbit-core { opacity: 0; pointer-events: none; }
}

.service-row:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (max-width: 699px) {
  .service-row { grid-template-columns: 24px minmax(0, 1fr) 46px; gap: 8px; min-height: 138px; padding: 24px 0; }
  .service-row > span:first-child { font-size: 10px; }
  .service-row h3 { font-size: clamp(27px, 8vw, 36px); line-height: .95; }
  .service-row p { max-width: 24ch; font-size: 13px; }
  .service-icon { width: 44px; height: 44px; }
}

@media (max-width: 699px) {
  .marquee-band { position: relative; top: -20px; display: flex; height: 80px; align-items: center; margin-top: 14px; padding: 0; }
  .marquee-band[data-reveal] { opacity: 1; transform: none; }
  .marquee-track span { font-size: clamp(40px, 10vw, 48px); line-height: .9; }
  .marquee-track b { font-size: clamp(36px, 9vw, 44px); }
  .marquee-track .marquee-mark { width: clamp(26px, 7vw, 31px); height: clamp(26px, 7vw, 31px); }
}

/* Fit the desktop hero and the full project gallery within standard monitor viewports. */
@media (hover: hover) and (pointer: fine) and (min-width: 1400px) {
  .hero, body.desktop-pointer .hero {
    box-sizing: border-box;
    height: 100svh;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
    padding-top: 100px;
    padding-bottom: 230px;
  }
  .orbit-stage, body.desktop-pointer .orbit-stage {
    min-height: min(560px, 56vh);
  }
  .project-gallery, body.desktop-pointer .project-gallery {
    bottom: 24px;
  }
}
