/* Fliarts Creations — shared styles, "Amplify" direction.
   Dark navy base, oversized uppercase Jost, and the orange-to-red swoosh from the logo's F mark as a gradient. */
:root {
  --deep: #06122a;
  --navy: #0a1b38;
  --navy-2: #12284f;
  --orange: #f49922;
  --red: #e2362b;
  --grad: linear-gradient(100deg, #ffc04a 0%, var(--orange) 40%, var(--red) 100%);
  --white: #fff;
  --mute: rgba(255,255,255,.7);
  --line: rgba(255,255,255,.14);
  --field: rgba(255,255,255,.06);
  --error: #ff8f85;
  --ok: #7ee2a8;
  --radius: 18px;
  --wrap: 1240px;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--white); background: var(--deep); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--sans); line-height: 1; margin: 0 0 .6em; }
h1, h2 { font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; }
h1 { font-size: clamp(3.2rem, 11vw, 10.5rem); line-height: .88; letter-spacing: -.035em; }
h2 { font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: .95; }
h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0 0 1.1em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--orange); color: var(--deep); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font: 700 1rem var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s ease, filter .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: var(--deep); }
.btn-primary:hover { filter: brightness(1.08); color: var(--deep); }
.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-dark { background: var(--white); color: var(--deep); }
.btn-dark:hover { background: var(--orange); color: var(--deep); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Hero — big type and the logo's arc */
.hero { position: relative; overflow: hidden; padding: clamp(96px, 16vw, 200px) 0 clamp(48px, 7vw, 80px); }
.hero::before { content: ""; position: absolute; pointer-events: none; width: min(80vw, 900px); aspect-ratio: 1; right: -30vw; top: -26vw; border-radius: 50%; border: clamp(40px, 7vw, 110px) solid transparent; border-top-color: var(--orange); border-left-color: var(--red); transform: rotate(16deg); opacity: .9; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { margin: 18px 0 32px; max-width: 11ch; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: end; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 26px; }
.hero .lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 50ch; color: var(--mute); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero { padding: clamp(72px, 11vw, 140px) 0 clamp(40px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(2.6rem, 7.5vw, 6.4rem); max-width: 14ch; }

.eyebrow { display: block; font: 500 .8rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }

/* Services marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--navy); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font-size: clamp(1.5rem, 3.4vw, 2.8rem); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.marquee-track span::after { content: "\2726"; color: var(--orange); margin-left: 48px; font-size: .6em; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-alt { background: var(--navy); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: end; margin-bottom: 44px; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 46ch; color: var(--mute); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose p { color: var(--mute); }
.prose p:first-child { font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.35; font-weight: 500; color: var(--white); }
.prose p:first-child em { font-style: normal; color: var(--orange); }

/* Numbered service rows (home and services page) */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: center; padding: 32px 8px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; transition: background-color .25s, padding .25s; position: relative; }
.service-row:hover { background: var(--navy); padding-left: 24px; }
.section-alt .service-row:hover { background: var(--navy-2); }
.service-row .num { color: var(--orange); font-weight: 500; font-size: 1.05rem; }
.service-row h2, .service-row h3 { font-size: clamp(1.5rem, 3.3vw, 2.7rem); font-weight: 700; text-transform: none; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
.service-row p { color: var(--mute); max-width: 60ch; margin: 10px 0 0; }
.service-row .go { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.3rem; text-decoration: none; transition: .25s; }
.service-row .go::after { content: ""; position: absolute; inset: 0; } /* whole row is clickable */
.service-row:hover .go { background: var(--grad); color: var(--deep); border-color: transparent; transform: rotate(-45deg); }

/* Sectors */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; color: var(--mute); font-weight: 500; }

/* Client logo wall */
.clients { --cols: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 0; }
.clients li { flex: 0 1 calc((100% - (var(--cols) - 1) * 12px) / var(--cols)); background: var(--white); border-radius: 12px; overflow: hidden; }
.clients img { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.clients li:hover img { filter: none; opacity: 1; }

/* Call to action band */
.cta-band { position: relative; overflow: hidden; background: var(--navy); border: 1px solid var(--line); border-radius: 28px; padding: clamp(36px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.cta-band::before { content: ""; position: absolute; width: 360px; aspect-ratio: 1; right: -160px; bottom: -220px; border-radius: 50%; border: 48px solid transparent; border-top-color: var(--orange); border-left-color: var(--red); transform: rotate(24deg); opacity: .8; pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; color: var(--mute); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-list li { display: grid; gap: 4px; padding: 22px 24px; background: var(--deep); }
.section-alt .contact-list li { background: var(--navy); }
.contact-list .label { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); font-weight: 500; }
.contact-list a, .contact-list address { font-size: clamp(1.15rem, 2vw, 1.5rem); font-style: normal; font-weight: 600; text-decoration: none; letter-spacing: -.01em; word-break: break-word; }

/* Request form — dark panel, services as gradient chips */
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.request-form { background: var(--navy); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 52px); }
.form-aside { position: sticky; top: 110px; }
.form-aside h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.form-aside p { color: var(--mute); }
.field { margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
fieldset { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
legend, .field > label { display: block; font-weight: 600; margin-bottom: 10px; padding: 0; color: var(--white); }
#services-group legend { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -.01em; }
.hint { display: block; font-size: .93rem; color: var(--mute); margin: -4px 0 12px; font-weight: 400; }
.optional { font-weight: 400; color: var(--mute); font-size: .92rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; font: inherit; color: var(--white); background: var(--field);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px;
}
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23f49922' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
select option { color: #1a1b1a; }
::placeholder { color: rgba(255,255,255,.45); }
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,153,34,.3); background-color: rgba(255,255,255,.09); }
input[type="file"] { font: inherit; width: 100%; padding: 12px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--field); color: var(--mute); }
input[type="file"]::file-selector-button { font: 600 .95rem var(--sans); background: var(--white); color: var(--deep); border: 0; border-radius: 999px; padding: 8px 16px; margin-right: 12px; cursor: pointer; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.error-msg { display: block; color: var(--error); font-size: .93rem; font-weight: 500; margin-top: 8px; }
.error-msg:empty { display: none; }

.choice-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; line-height: 1.25; transition: background-color .2s, border-color .2s; }
.choice span::before { content: "+"; font-weight: 700; color: var(--orange); width: 1em; text-align: center; }
.choice input:hover + span { border-color: rgba(255,255,255,.4); }
.choice input:checked + span { background: var(--grad); color: var(--deep); border-color: transparent; }
.choice input:checked + span::before { content: "\2713"; color: var(--deep); }
.choice input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
fieldset[aria-invalid="true"] .choice span { border-color: var(--error); }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { border: 1.5px solid var(--error); background: rgba(255,143,133,.08); border-radius: 14px; padding: 16px 20px; margin-bottom: 26px; }
.error-summary h2 { font: 600 1.05rem var(--sans); text-transform: none; letter-spacing: 0; color: var(--error); margin: 0 0 6px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error); }
.form-status { border-radius: 14px; padding: 16px 20px; margin-top: 20px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { background: rgba(126,226,168,.1); color: var(--ok); border: 1.5px solid rgba(126,226,168,.5); }
.form-status.is-error { background: rgba(255,143,133,.08); color: var(--error); border: 1.5px solid rgba(255,143,133,.5); }
.form-note { font-size: .92rem; color: var(--mute); margin: 16px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 28px; color: var(--mute); }
.footer-big { display: inline-block; font-size: clamp(1.7rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--white); text-decoration: none; margin-bottom: 48px; word-break: break-word; }
.footer-big:hover { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img { width: 150px; margin-bottom: 14px; }
.site-footer h2 { font: 500 .8rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer address { font-style: normal; }
.footer-base { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 22px; font-size: .9rem; }

/* Responsive */
@media (max-width: 960px) {
  .split, .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
  .clients { --cols: 4; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .service-row { grid-template-columns: 48px 1fr auto; gap: 14px; padding: 26px 4px; align-items: start; }
  .service-row .num { padding-top: .35em; }
  .service-row:hover { padding-left: 4px; }
  .service-row .go { width: 42px; height: 42px; }
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .clients { --cols: 2; }
  .hero::before { width: 300px; right: -170px; top: -150px; border-width: 34px; opacity: .6; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
  .service-row { grid-template-columns: 36px 1fr; }
  .service-row .go { display: none; }
  .service-row .go-text { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  * { transition: none !important; }
}
@media (max-width: 600px) {
  .service-row .btn { grid-column: 2; width: auto; justify-self: start; }
}

/* Request popup (native <dialog>, opened by site.js) */
html.dialog-open { overflow: hidden; }
.request-dialog {
  width: min(100% - 32px, 780px); max-width: none; max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--navy); color: var(--white); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
}
.request-dialog::backdrop { background: rgba(3,9,22,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.request-dialog[open] { animation: dialog-in .28s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.dialog-head {
  position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: start; gap: 16px;
  padding: clamp(20px, 3.5vw, 36px) clamp(20px, 4vw, 48px) 16px; background: var(--navy); border-bottom: 1px solid var(--line);
}
.dialog-head .eyebrow { margin-bottom: 8px; }
.dialog-head h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); margin: 0; }
.dialog-close {
  flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--white); font: 400 1.9rem/1 var(--sans); cursor: pointer; display: grid; place-items: center; transition: .2s;
}
.dialog-close:hover { background: var(--grad); color: var(--deep); border-color: transparent; }
.dialog-intro { color: var(--mute); margin: 0; padding: 18px clamp(20px, 4vw, 48px) 0; }
.request-dialog .request-form { background: none; border: 0; border-radius: 0; padding: 22px clamp(20px, 4vw, 48px) clamp(24px, 4vw, 44px); }
@media (max-width: 600px) {
  .request-dialog { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .request-dialog[open] { animation: none; } }
.request-dialog { scrollbar-color: rgba(255,255,255,.28) transparent; scrollbar-width: thin; }

/* Hero background animation: drifting brand-colour glows, a slow-panning grid and a swinging logo arc.
   Only transform and opacity animate. A scrim keeps the text side dark so contrast never drops. */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,18,42,.92) 0%, rgba(6,18,42,.7) 38%, rgba(6,18,42,.15) 70%, rgba(6,18,42,0) 100%),
    linear-gradient(0deg, var(--deep) 0%, rgba(6,18,42,0) 28%);
}
.hero-grid {
  position: absolute; inset: -64px;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 75% 35%, #000 0%, transparent 75%);
  animation: hero-grid 24s linear infinite;
}
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob-1 { width: 46vw; aspect-ratio: 1; right: -6vw; top: -14vw; background: radial-gradient(circle, rgba(244,153,34,.55) 0%, rgba(244,153,34,0) 65%); animation: blob-1 22s ease-in-out infinite alternate; }
.blob-2 { width: 38vw; aspect-ratio: 1; right: 18vw; top: 12vw; background: radial-gradient(circle, rgba(226,54,43,.45) 0%, rgba(226,54,43,0) 65%); animation: blob-2 26s ease-in-out infinite alternate; }
.blob-3 { width: 52vw; aspect-ratio: 1; right: -18vw; top: 38vw; background: radial-gradient(circle, rgba(64,110,210,.35) 0%, rgba(64,110,210,0) 65%); animation: blob-3 30s ease-in-out infinite alternate; }
.hero::before { z-index: 0; animation: hero-arc 16s ease-in-out infinite alternate; }
.hero-bg { z-index: 0; }

@keyframes hero-grid { to { transform: translate3d(64px, 64px, 0); } }
@keyframes blob-1 { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-8vw, 6vw, 0) scale(1.12); } 100% { transform: translate3d(-3vw, 12vw, 0) scale(.95); } }
@keyframes blob-2 { 0% { transform: translate3d(0,0,0) scale(.9); opacity: .7; } 50% { transform: translate3d(10vw, -6vw, 0) scale(1.1); opacity: 1; } 100% { transform: translate3d(4vw, 8vw, 0) scale(1); opacity: .8; } }
@keyframes blob-3 { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-12vw, -10vw, 0) scale(1.15); } }
@keyframes hero-arc { from { transform: rotate(10deg); } to { transform: rotate(34deg); } }

/* Paused by site.js while the hero is off-screen */
.hero.is-paused::before, .hero.is-paused .hero-grid, .hero.is-paused .blob { animation-play-state: paused; }

@media (max-width: 600px) {
  .blob-1 { width: 90vw; right: -40vw; top: -30vw; }
  .blob-2 { width: 70vw; right: -10vw; top: 50vw; }
  .blob-3 { width: 100vw; right: -50vw; top: 127vw; }
  /* Text runs full width on phones, so darken evenly rather than from the left */
  .hero-bg::after { background: linear-gradient(180deg, rgba(6,18,42,.1) 0%, rgba(6,18,42,.6) 50%, var(--deep) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero-grid, .blob { animation: none; }
}

/* ---------- Subtle motion (transform and opacity only) ---------- */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* Hero headline rises in word by word on load (pure CSS, ends fully visible) */
.hero h1 .w { display: inline-block; animation: word-in .7s var(--ease-out) both; }
.hero h1 .w:nth-child(2) { animation-delay: .12s; }
.hero h1 .w:nth-child(3) { animation-delay: .24s; }
.hero .eyebrow { animation: fade-up .6s var(--ease-out) both; }
.hero .hero-foot, .hero .lede { animation: fade-up .7s var(--ease-out) .35s both; }
@keyframes word-in { from { opacity: 0; transform: translateY(.45em) rotate(2deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

/* Scroll reveal: hidden only once site.js has added .reveal-ready, so content shows if JS fails */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }


/* Arrows nudge forward on hover */
.arr { display: inline-block; transition: transform .3s var(--ease-out); }
a:hover .arr, .btn:hover .arr { transform: translateX(4px); }
.service-row .go span[aria-hidden] { display: inline-block; transition: transform .3s var(--ease-out); }

/* Service rows: number slides in a touch on hover */
.service-row .num { display: inline-block; transition: transform .35s var(--ease-out); }
.service-row:hover .num { transform: translateX(6px); }

/* Client logos lift slightly */
.clients li { transition: transform .35s var(--ease-out); }
.clients li:hover { transform: translateY(-4px); }

/* Cards in the contact list and the CTA band lift on hover */
.cta-band { transition: transform .5s var(--ease-out); }
.cta-band:hover { transform: translateY(-3px); }

/* Service chips in the form give a small press */
.choice span { transition: transform .2s var(--ease-out), background-color .2s, border-color .2s; }
.choice input:active + span { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .w, .hero .eyebrow, .hero .hero-foot, .hero .lede { animation: none; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .brand img, .site-header.is-scrolled .brand img, .clients li:hover, .cta-band:hover, .service-row:hover .num, a:hover .arr, .btn:hover .arr { transform: none; }
}
/* Keep hover effects working on revealed items */
.reveal-ready .service-row[data-reveal] { transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), background-color .25s, padding .25s; }
.reveal-ready .clients li.is-in:hover { transform: translateY(-4px); }
.reveal-ready .cta-band.is-in:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready .clients li.is-in:hover, .reveal-ready .cta-band.is-in:hover { transform: none; }
}

/* ---------- Header: floating glass pill ----------
   Fixed and inset from the edges. The glass sits on a pseudo-element so the full-screen
   mobile menu (position: fixed) is not trapped inside a backdrop-filter containing block. */
:root { --header-space: 80px; }
.hero { padding-top: calc(var(--header-space) + clamp(96px, 16vw, 200px)); }
.page-hero { padding-top: calc(var(--header-space) + clamp(72px, 11vw, 140px)); }
.skip-link { z-index: 200; }

.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; padding: 0 16px; pointer-events: none; transition: transform .45s var(--ease-out); }
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); }
.header-bar {
  position: relative; pointer-events: auto; max-width: 1240px; margin: 0 auto; height: 64px;
  display: flex; align-items: center; gap: 12px; padding: 0 8px 0 22px; border-radius: 999px;
}
.header-bar::before, .header-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; }
.header-bar::before { background: rgba(10,27,56,.42); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.header-bar::after { background: rgba(6,18,42,.9); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); opacity: 0; transition: opacity .35s ease; }
.site-header.is-scrolled .header-bar::after { opacity: 1; }

.brand { position: relative; z-index: 2; display: block; margin-right: auto; border-radius: 8px; }
.brand img { width: 118px; transform-origin: left center; transition: transform .35s var(--ease-out); }
.site-header.is-scrolled .brand img { transform: scale(.92); }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.site-nav ul a { position: relative; display: block; padding: 9px 16px; border-radius: 999px; color: var(--mute); text-decoration: none; font-weight: 500; font-size: .98rem; letter-spacing: .01em; }
.site-nav ul a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.08); opacity: 0; transform: scale(.85); transition: opacity .25s, transform .3s var(--ease-out); z-index: -1; }
.site-nav ul a:hover { color: var(--white); }
.site-nav ul a:hover::before { opacity: 1; transform: none; }
.site-nav ul a[aria-current="page"] { color: var(--white); }
.site-nav ul a[aria-current="page"]::before { opacity: 1; transform: none; background: rgba(255,255,255,.12); }
.site-nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--orange); }
.site-nav ul li { position: relative; z-index: 0; }
.nav-contact, .nav-menu-cta { display: none; }

.header-cta {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 11px 20px; border-radius: 999px; background: var(--grad); color: var(--deep); font-weight: 700; text-decoration: none;
  transition: transform .25s var(--ease-out), filter .25s;
}
.header-cta:hover { color: var(--deep); filter: brightness(1.08); transform: translateY(-1px); }

/* Menu button: two lines that morph into an X */
.nav-toggle { position: relative; z-index: 2; display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--white); cursor: pointer; place-items: center; }
.nav-toggle-lines { position: relative; width: 20px; height: 12px; display: block; }
.nav-toggle-lines span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
.nav-toggle-lines span:first-child { top: 0; }
.nav-toggle-lines span:last-child { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:first-child { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:last-child { transform: translateY(-5px) rotate(-45deg); }
html.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .header-bar { padding-right: 8px; }
  /* Full-screen menu */
  .site-nav {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px;
    padding: 110px 28px 40px; background: var(--deep); overflow-y: auto; overflow-x: hidden;
    opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
  .site-nav::before { content: ""; position: absolute; width: 520px; aspect-ratio: 1; right: -280px; bottom: -260px; border-radius: 50%; border: 70px solid transparent; border-top-color: var(--orange); border-left-color: var(--red); transform: rotate(20deg); opacity: .5; pointer-events: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-nav ul a { padding: 6px 0; font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; line-height: 1.1; color: var(--white); border-radius: 0; }
  .site-nav ul a::before { display: none; }
  .site-nav ul a[aria-current="page"] { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .site-nav ul a[aria-current="page"]::after { display: none; }
  .site-nav ul a:hover { color: var(--orange); }
  .nav-menu-cta { display: inline-flex; align-self: flex-start; }
  .nav-contact { display: grid; gap: 6px; color: var(--mute); }
  .nav-contact a { color: var(--mute); text-decoration: none; font-weight: 500; }
  .nav-contact a:hover { color: var(--white); }
  /* Links slide in one after another */
  .site-nav ul li, .nav-menu-cta, .nav-contact { opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .5s var(--ease-out); }
  .site-nav.is-open ul li, .site-nav.is-open .nav-menu-cta, .site-nav.is-open .nav-contact { opacity: 1; transform: none; }
  .site-nav.is-open ul li:nth-child(1) { transition-delay: .08s; }
  .site-nav.is-open ul li:nth-child(2) { transition-delay: .14s; }
  .site-nav.is-open ul li:nth-child(3) { transition-delay: .2s; }
  .site-nav.is-open .nav-menu-cta { transition-delay: .26s; }
  .site-nav.is-open .nav-contact { transition-delay: .32s; }
  .menu-open .header-bar::before { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open .header-bar::after { opacity: 0; }
}
@media (max-width: 520px) {
  :root { --header-space: 64px; }
  .site-header { top: 10px; padding: 0 10px; }
  .header-bar { height: 60px; padding-left: 18px; }
  .brand img { width: 104px; }
  .header-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header.is-hidden { transition: none; transform: none; }
  .site-nav, .site-nav ul li, .nav-menu-cta, .nav-contact, .nav-toggle-lines span, .header-cta { transition: none !important; }
  .site-nav ul li, .nav-menu-cta, .nav-contact { transform: none; }
}

/* ---------- Header always visible; anchors land below it ---------- */
html { scroll-padding-top: 110px; }

/* ---------- Section motion: varied, mostly outline-based ---------- */
.section, .site-footer { position: relative; }
.section > .wrap, .site-footer > .wrap { position: relative; z-index: 1; }

/* Outlined shapes drifting slowly behind sections */
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.deco span { position: absolute; display: block; right: -120px; top: 12%; width: clamp(220px, 32vw, 420px); aspect-ratio: 1; animation: deco-drift 28s ease-in-out infinite alternate; }
.deco-left span { right: auto; left: -140px; top: auto; bottom: 8%; }
.deco-ring span { border-radius: 50%; border: 1px solid rgba(244,153,34,.22); }
.deco-ring-dash span { border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); animation: deco-spin 80s linear infinite; }
.deco-arc span { border-radius: 50%; border: 1px solid transparent; border-top-color: rgba(226,54,43,.35); border-left-color: rgba(244,153,34,.3); animation: deco-spin 60s linear infinite; }
.deco-square span { width: clamp(160px, 22vw, 300px); border-radius: 36px; border: 1px solid rgba(255,255,255,.1); animation: deco-tilt 34s ease-in-out infinite alternate; }
.deco.is-off span { animation-play-state: paused; }
.marquee.is-off .marquee-track { animation-play-state: paused; }
@keyframes deco-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-40px, 50px, 0); } }
@keyframes deco-spin { to { transform: rotate(360deg); } }
@keyframes deco-tilt { from { transform: rotate(-8deg) translate3d(0, 0, 0); } to { transform: rotate(14deg) translate3d(-30px, 30px, 0); } }

/* Reveal variants */
.reveal-ready [data-reveal="left"] { transform: translateX(-32px); }
.reveal-ready [data-reveal="right"] { transform: translateX(32px); }
.reveal-ready [data-reveal="scale"] { transform: scale(.94); }
.reveal-ready [data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal-ready [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }

/* Headings: outline first, then the solid fill wipes in from the left */
.reveal-ready [data-reveal="outline"] { opacity: 1; transform: none; position: relative; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); }
.reveal-ready [data-reveal="outline"]::before { content: attr(data-text); position: absolute; inset: 0; color: var(--white); -webkit-text-stroke: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-out) .25s; }
.reveal-ready [data-reveal="outline"].is-in::before { clip-path: inset(0 0 0 0); }

/* Split sections: a thin gradient rule grows under the heading */
.reveal-ready [data-reveal="rule"] h2 { position: relative; }
.reveal-ready [data-reveal="rule"] h2::after { content: ""; position: absolute; left: 0; bottom: -18px; width: 72px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out) .35s; }
.reveal-ready [data-reveal="rule"].is-in h2::after { transform: scaleX(1); }

/* Service rows: the arrow's ring draws itself; on hover a gradient line sweeps along the row */
.ring-draw { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; }
.ring-draw circle { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out) .3s; }
.reveal-ready .service-row .go { position: relative; border-color: transparent; }
.service-row.is-in .ring-draw circle { stroke-dashoffset: 0; }
.service-row:hover .ring-draw circle { stroke: transparent; }
.service-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.service-row:hover::after { transform: scaleX(1); }
.service-row:hover, .section-alt .service-row:hover { background: transparent; }

/* CTA band: an orange outline traces around it on reveal */
.reveal-ready [data-reveal="trace"] { opacity: 1; transform: none; }
.trace { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); overflow: visible; pointer-events: none; z-index: 1; }
.trace rect { fill: none; stroke: var(--orange); stroke-opacity: .75; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out) .2s; }
.cta-band.is-in .trace rect { stroke-dashoffset: 0; }

/* Footer: a gradient rule draws across the top edge */
.reveal-ready [data-reveal="line"] { opacity: 1; transform: none; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); z-index: 1; }
.site-footer.is-in::before { transform: scaleX(1); }
.site-footer:not([data-reveal])::before { transform: scaleX(1); opacity: .5; }

/* Popup: a rule grows under the title and fields rise in one after another on open */
.dialog-head { position: relative; }
.dialog-head::after { content: ""; position: absolute; left: clamp(20px, 4vw, 48px); bottom: -1px; width: 90px; height: 2px; background: var(--grad); transform-origin: left; }
.request-dialog[open] .dialog-head::after { animation: grow-x .7s var(--ease-out) .15s both; }
.request-dialog[open] .request-form > :is(fieldset, .field, .field-row, button, .form-note) { animation: fade-up .5s var(--ease-out) both; animation-delay: calc(.12s + var(--i, 0) * 45ms); }
@keyframes grow-x { from { transform: scaleX(0); } }

@media (max-width: 600px) {
  .deco span { width: 220px; right: -110px; }
  .deco-left span { left: -120px; }
  .deco-square span { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .deco span { animation: none; }
  .request-dialog[open] .dialog-head::after, .request-dialog[open] .request-form > * { animation: none; }
  .service-row::after { transition: none; }
}

/* ---------- Footer background: the hero's motion, drawn as outlines ----------
   Same paths and timing as the hero glows, grid and arc, but every moving object is a thin stroke. */
.footer-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.f-grid {
  position: absolute; inset: -64px;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 90% at 80% 40%, #000 0%, transparent 75%);
  animation: hero-grid 24s linear infinite;
}
.f-blob { position: absolute; display: block; aspect-ratio: 1; border: 1px solid; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; will-change: transform; }
.f-blob-1 { width: clamp(220px, 34vw, 520px); right: -6vw; top: -18%; border-color: rgba(244,153,34,.38); animation: blob-1 22s ease-in-out infinite alternate; }
.f-blob-2 { width: clamp(180px, 26vw, 400px); right: 22vw; top: 22%; border-color: rgba(226,54,43,.34); animation: blob-2 26s ease-in-out infinite alternate; }
.f-blob-3 { width: clamp(240px, 40vw, 600px); right: -16vw; bottom: -40%; border-color: rgba(96,140,230,.3); animation: blob-3 30s ease-in-out infinite alternate; }
.f-arc {
  position: absolute; display: block; width: clamp(260px, 36vw, 560px); aspect-ratio: 1; right: -10vw; top: -30%;
  border-radius: 50%; border: 1.5px solid transparent; border-top-color: rgba(244,153,34,.6); border-left-color: rgba(226,54,43,.55);
  animation: hero-arc 16s ease-in-out infinite alternate;
}
.footer-bg.is-off span { animation-play-state: paused; }

@media (max-width: 600px) {
  .f-blob-1 { width: 260px; right: -110px; top: -60px; }
  .f-blob-2 { width: 200px; right: 30%; top: 35%; }
  .f-blob-3 { width: 300px; right: -150px; bottom: -140px; }
  .f-arc { width: 280px; right: -140px; top: -120px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-bg span { animation: none; }
}

/* ---------- Hero outline layer: the footer's stroked shapes, echoing the filled glows ----------
   Sits under the scrim (.hero-bg::after), so the text side stays dark. */
.o-blob { position: absolute; display: block; aspect-ratio: 1; border: 1px solid; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; will-change: transform; }
.o-blob-1 { width: 38vw; right: -2vw; top: -10vw; border-color: rgba(244,153,34,.45); animation: blob-1 22s ease-in-out -6s infinite alternate; }
.o-blob-2 { width: 30vw; right: 22vw; top: 15vw; border-color: rgba(226,54,43,.4); animation: blob-2 26s ease-in-out -9s infinite alternate; }
.o-blob-3 { width: 44vw; right: -12vw; top: 40vw; border-color: rgba(96,140,230,.35); animation: blob-3 30s ease-in-out -12s infinite alternate; }
.o-arc {
  position: absolute; display: block; width: min(100vw, 1120px); aspect-ratio: 1; right: -40vw; top: -36vw;
  border-radius: 50%; border: 1.5px solid transparent; border-top-color: rgba(244,153,34,.55); border-left-color: rgba(226,54,43,.5);
  animation: hero-arc 16s ease-in-out -5s infinite alternate;
}
.hero.is-paused .o-blob, .hero.is-paused .o-arc { animation-play-state: paused; }

@media (max-width: 600px) {
  .o-blob-1 { width: 80vw; right: -34vw; top: -24vw; }
  .o-blob-2 { width: 60vw; right: -4vw; top: 56vw; }
  .o-blob-3 { width: 90vw; right: -44vw; top: 130vw; }
  .o-arc { width: 380px; right: -210px; top: -200px; }
}
@media (prefers-reduced-motion: reduce) {
  .o-blob, .o-arc { animation: none; }
}

/* Services page rows carry a full paragraph, so align number and button with the heading */
.service-row:has(h2) { align-items: start; }
.service-row:has(h2) .num { padding-top: .55em; }
.service-row:has(h2) .btn { margin-top: 4px; }

/* "What's included" list under each service paragraph */
.included { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; max-width: 62ch; }
.included li { font-size: .88rem; font-weight: 500; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }

/* Even out heading lines so no word is left alone on the last line; softer paragraph wraps */
h1, h2, h3, .footer-big { text-wrap: balance; }
p, .included li { text-wrap: pretty; }
/* Never split a phone number across lines */
a[href^="tel:"] { white-space: nowrap; }

/* CTA band ring: swings clockwise then anticlockwise around its own centre, continuously.
   The band clips it (overflow: hidden), and site.js pauses it while the band is off-screen. */
.cta-band::before { animation: cta-ring 12s ease-in-out infinite alternate; }
@keyframes cta-ring { from { transform: rotate(-20deg); } to { transform: rotate(70deg); } }
.cta-band.is-off::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .cta-band::before { animation: none; }
}
@media (max-width: 600px) {
  /* Smaller ring, further into the corner, so it never sits behind the CTA text on phones */
  .cta-band::before { width: 230px; right: -125px; bottom: -150px; border-width: 30px; }
}

/* request.html messages after a plain (no-JavaScript) form post: shown via #sent / #error, or by site.js */
.form-flash { display: none; margin: 0 0 24px; scroll-margin-top: 120px; }
.form-flash:target, .form-flash.is-shown { display: block; }
.form-flash a { color: inherit; }

/* Helpers that replace inline style attributes (keeps the Content-Security-Policy strict) */
.section-flush { padding-top: 0; }
.hint.hint-below { margin: 6px 0 0; }

/* Privacy notice and other plain text pages */
.legal > * { max-width: 72ch; }
.legal h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); text-transform: none; letter-spacing: -.01em; margin: 40px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--mute); }
.legal a { color: var(--white); }
.legal-updated { margin-top: 40px; font-size: .9rem; }
.form-note a { color: inherit; }

/* Contrast: wherever dark text sits on the gradient, end it on a lighter red so text stays above 4.5:1 */
:root { --grad-ui: linear-gradient(100deg, #ffc04a 0%, var(--orange) 45%, #ee6430 100%); }
.btn-primary, .header-cta, .choice input:checked + span,
.service-row:hover .go, .dialog-close:hover { background: var(--grad-ui); }
::placeholder { color: rgba(255,255,255,.55); }

/* The full-screen menu only fades when it is opened or closed, never when the screen size changes */
@media (max-width: 900px) {
  .site-nav:not(.is-open):not(.is-closing) { transition: none; }
}
