/* =========================================================
   Deveign Agency — styles
   Brand colours: change --orange / --navy to re-theme the site
   ========================================================= */
:root {
  /* Brand colours (from the Deveign logo) */
  --orange: #d6582e;
  --orange-2: #e38a36;      /* amber */
  --orange-dark: #b94620;
  --amber: #e38a36;
  --peach: #e9bbab;
  --blue: #3459d6;
  --blue-deep: #1b3c7a;
  --orange-rgb: 214, 88, 46;
  --blue-rgb: 52, 89, 214;
  --grad: linear-gradient(135deg, #1b3c7a 0%, #3459d6 28%, #e38a36 68%, #d6582e 100%);
  --grad-warm: linear-gradient(100deg, #e9bbab 0%, #d6582e 55%, #e38a36 100%);
  /* Surfaces */
  --navy: #050507;          /* brand black */
  --navy-2: #0f0f14;
  --navy-3: #18181f;
  --text: #0b0b0f;
  --muted: #5f6470;
  --light: #c9c9d1;
  --bg: #ffffff;
  --bg-alt: #f8f5f2;
  --tint: #fcf0ea;
  --tint-2: #f9ddd0;
  --border: #ebe6e2;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(11, 11, 15, .10);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 1.4rem 0 .7rem; }
p { margin: 0 0 1em; }
.hl { color: var(--orange); background: var(--grad-warm); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #fff; padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(100deg, var(--orange), var(--amber)); color: #fff; box-shadow: 0 10px 24px rgba(var(--orange-rgb),.35); }
.btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 14px 34px rgba(var(--orange-rgb),.5), 0 0 0 4px rgba(var(--orange-rgb),.12); }
.btn--outline { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--text); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.btn--light:hover { background: var(--navy); color: #fff; }
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn--xs { padding: .45rem .9rem; font-size: .8rem; box-shadow: none; }
.btn--block { width: 100%; }

/* ---------- Top bar + header ---------- */
.topbar { background: #000; color: var(--light); font-size: .78rem; font-weight: 600; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding: 8px 20px; }
.topbar__right { display: flex; gap: 1.5rem; }
.topbar a:hover { color: var(--orange); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(5,5,7,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: .6rem; color: #fff; }
.logo__mark { width: 40px; height: 40px; object-fit: contain; transition: transform .5s var(--ease); filter: drop-shadow(0 4px 14px rgba(var(--orange-rgb),.35)); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.08); }
.logo__text { font-weight: 800; font-size: 1.25rem; line-height: 1; display: grid; letter-spacing: .02em; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo__text small { font-size: .58rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; -webkit-text-fill-color: #fff; opacity: .75; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a:not(.btn) { color: var(--light); font-weight: 600; font-size: .9rem; padding: .45rem .95rem; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.06); }
.nav a.active { background: linear-gradient(100deg, var(--orange), var(--amber)); color: #fff; }
.nav .btn { margin-left: .75rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }

/* ---------- Shared hero background ---------- */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 72px 0 96px; isolation: isolate; min-height: calc(100vh - 106px); display: flex; align-items: center; }
.hero__aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero__aurora span:nth-child(1) { width: 520px; height: 520px; background: var(--orange); right: -120px; top: -160px; opacity: .28; animation: drift1 18s ease-in-out infinite alternate; }
.hero__aurora span:nth-child(2) { width: 460px; height: 460px; background: var(--blue); left: -160px; bottom: -200px; opacity: .25; animation: drift2 22s ease-in-out infinite alternate; }
.hero__aurora span:nth-child(3) { width: 300px; height: 300px; background: var(--amber); right: 30%; bottom: -120px; opacity: .14; animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-120px, 120px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(160px, -80px) scale(1.1); } }

.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .6rem; color: var(--light); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 1.3rem; }
.kicker::before, .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.hero h1 { margin-bottom: .45em; }
.typed { color: var(--orange); background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.caret { display: inline-block; width: 4px; height: .9em; background: var(--orange); margin-left: 6px; vertical-align: -.08em; border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { color: var(--light); max-width: 560px; font-size: 1.06rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__trust { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0; }
.hero__trust li { color: var(--light); font-size: .88rem; padding: 0 1.3rem; border-left: 1px solid rgba(255,255,255,.14); }
.hero__trust li:first-child { padding-left: 0; border-left: 0; }
.hero__trust strong { display: block; color: #fff; font-size: 1.3rem; }

.js .hero__content > * { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; }
.js .hero__content > *:nth-child(2) { animation-delay: .1s; }
.js .hero__content > *:nth-child(3) { animation-delay: .2s; }
.js .hero__content > *:nth-child(4) { animation-delay: .3s; }
.js .hero__content > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Service orbit (home hero, right side) ---------- */
.orbit { position: relative; width: min(100%, 540px); aspect-ratio: 1; margin: 0 auto; }
.orbit [data-depth] { transition: translate .3s ease-out; }
.orbit__ring { position: absolute; border-radius: 50%; pointer-events: none; }
.orbit__ring--outer { inset: 3%; border: 1px dashed rgba(255,255,255,.16); animation: spin 90s linear infinite; }
.orbit__ring--outer::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 16px 4px rgba(var(--orange-rgb),.6); }
.orbit__ring--inner { inset: 21%; border: 1px solid rgba(var(--blue-rgb),.35); animation: spin 40s linear infinite reverse; }
.orbit__ring--inner::after { content: ""; position: absolute; bottom: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px 4px rgba(var(--blue-rgb),.7); }
.orbit__chips { position: absolute; inset: 0; }
.orbit__spin { position: absolute; inset: 0; animation: spin 70s linear infinite; }
.chip {
  position: absolute; left: calc(50% + cos(var(--a) * 45deg - 90deg) * var(--rad, 46%)); top: calc(50% + sin(var(--a) * 45deg - 90deg) * var(--rad, 46%));
  translate: -50% -50%; white-space: nowrap;
  font-size: .8rem; font-weight: 700; color: var(--light);
  padding: .45rem .85rem; border-radius: 999px;
  background: rgba(15,15,20,.85); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: spin 70s linear infinite reverse;
  transition: background .4s, color .4s, border-color .4s, box-shadow .4s, scale .4s var(--ease);
}
.chip.active { background: linear-gradient(100deg, var(--orange), var(--amber)); border-color: var(--orange); color: #fff; scale: 1.12; box-shadow: 0 10px 30px rgba(var(--orange-rgb),.45); }
@keyframes spin { to { transform: rotate(360deg); } }

.stage {
  position: absolute; inset: 25%; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 4px;
  background: radial-gradient(circle at 50% 35%, rgba(var(--orange-rgb),.14), rgba(15,15,20,.92) 65%);
  border: 1px solid rgba(var(--orange-rgb),.3);
  box-shadow: 0 0 0 10px rgba(var(--orange-rgb),.04), 0 30px 80px rgba(0,0,0,.45), inset 0 0 40px rgba(var(--orange-rgb),.08);
}
.stage::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(var(--orange-rgb),.25); animation: pulse 3.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.94); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
.art { width: 64%; height: auto; overflow: visible; }
.art__set { opacity: 0; transition: opacity .45s ease; }
.art__set.on { opacity: 1; }
.art__set > * { fill: none; stroke: url(#artGrad); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.art__set > .soft { stroke: rgba(255,255,255,.6); stroke-width: 1.7; }
.art__set.on > * { animation: draw 1.5s var(--ease) forwards; }
.art__set.on > *:nth-child(2) { animation-delay: .18s; }
.art__set.on > *:nth-child(3) { animation-delay: .36s; }
.art__set.on > *:nth-child(4) { animation-delay: .54s; }
.art__set.on > *:nth-child(5) { animation-delay: .72s; }
.art__set.on > *:nth-child(6) { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
html:not(.js) .art__set:first-child { opacity: 1; }
html:not(.js) .art__set > * { stroke-dashoffset: 0; }
.stage__label { text-align: center; line-height: 1.3; }
.stage__label strong { display: block; color: #fff; font-size: 1rem; }
.stage__label span { color: var(--light); font-size: .74rem; }
.stage__label.swap { animation: labelIn .5s var(--ease); }
@keyframes labelIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes bandflow { to { background-position: 100% 0; } }
@keyframes bPop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; padding: 90px 0 80px; }
.page-hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(500px 300px at 85% 0%, rgba(var(--orange-rgb),.22), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(var(--blue-rgb),.18), transparent 70%); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); animation: riseIn .8s var(--ease) both; }
.page-hero p { color: var(--light); max-width: 620px; font-size: 1.08rem; animation: riseIn .8s .12s var(--ease) both; }
.crumbs { display: flex; gap: .5rem; color: var(--light); font-size: .82rem; font-weight: 600; margin-bottom: 1rem; }
.crumbs a:hover { color: var(--orange); }
.crumbs span:last-child { color: var(--orange); }

/* ---------- Ticker ---------- */
.ticker { background: #000; border-top: 1px solid rgba(255,255,255,.06); overflow: hidden; padding: 14px 0; }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker span { color: var(--light); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 0 1.5rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; }
.ticker span::after { content: "◆"; color: var(--orange); font-size: .6rem; }
.ticker span:nth-child(even)::after { color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: 56px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.stat { position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.stat strong { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.stat em { font-style: normal; color: var(--orange); }
.stat > span { color: var(--muted); font-size: .85rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--orange); margin-bottom: .75rem; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.head-row h2 { margin: 0; }
.head-row p { max-width: 400px; color: var(--muted); margin: 0; }
.center-head { text-align: center; margin-bottom: 36px; }
.link-more { display: inline-block; margin-top: 28px; font-weight: 700; font-size: .92rem; }
.link-more:hover { color: var(--orange); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; display: flex; flex-direction: column; padding: 28px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden; }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__num { position: absolute; top: 18px; right: 20px; font-size: .75rem; font-weight: 700; color: #d6d0cb; }
.card__icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--tint); margin-bottom: 1.2rem; transition: transform .3s var(--ease); }
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); }
.card p { color: var(--muted); font-size: .9rem; margin: 0 0 1rem; flex: 1; }
.card__more { font-size: .85rem; font-weight: 700; color: var(--orange); }

/* ---------- Portfolio ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.work__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work__item[hidden] { display: none; }
.work__open { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.work__thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.work__item:hover .work__thumb img { transform: scale(1.06); }
.work__thumb .pill { position: absolute; top: 12px; left: 12px; }
.work__thumb .pill + .pill { left: auto; right: 12px; }
.pill { display: inline-block; font-size: .7rem; font-weight: 700; background: #fff; color: var(--text); padding: .25rem .65rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.pill--dark { background: rgba(5,5,7,.8); color: #fff; }
.pill--ok { background: #16a34a; color: #fff; }
.work__info { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 20px 22px; }
.work__info h3 { margin-bottom: .3rem; font-size: 1rem; }
.work__info p { margin: 0; color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arrow { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; transition: background .2s, color .2s, transform .2s; }
.work__item:hover .arrow { background: var(--orange); color: #fff; border-color: var(--orange); transform: rotate(-45deg); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter { border: 1px solid var(--border); background: #fff; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--muted); transition: all .2s; }
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.legend { color: var(--muted); font-size: .85rem; margin-bottom: 28px; }
.legend .pill { box-shadow: none; }
.empty { color: var(--muted); }
.work__item.show { animation: bPop .45s var(--ease) both; }

.modal { width: min(920px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 18px; overflow: auto; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.modal::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.modal[open] { animation: bPop .35s var(--ease); }
.modal__content { display: grid; grid-template-columns: 1.2fr 1fr; }
.modal__content > img { width: 100%; height: auto; align-self: center; }
.modal__body { padding: 32px; }
.modal__body h3 { font-size: 1.35rem; margin-top: .8rem; }
.modal__body p { color: var(--muted); }
.modal__body .btn { margin-top: 1.4rem; }
.modal__tags { display: flex; gap: 6px; }
.modal__tags .pill { box-shadow: none; border: 1px solid var(--border); }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); cursor: pointer; font-weight: 700; }

/* ---------- Chips + check lists ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--border); transition: all .2s; }
.chips span:hover { border-color: var(--orange); color: var(--orange-dark); background: var(--tint); }
.chips--cloud span { background: #fff; font-size: .88rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--tint-2); color: var(--orange-dark); display: grid; place-items: center; font-size: .7rem; font-weight: 800; }

/* ---------- Services page ---------- */
.subnav { position: sticky; top: 70px; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.subnav__inner { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; font-size: .82rem; font-weight: 700; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; transition: all .2s; }
.subnav a:hover, .subnav a.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.svc-list { display: grid; gap: 28px; }
.svc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; scroll-margin-top: 140px; }
.svc__text { position: relative; padding: 40px; }
.svc__num { position: absolute; top: 28px; right: 32px; font-size: 3rem; font-weight: 800; color: var(--bg-alt); line-height: 1; }
.svc__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--tint); margin-bottom: 1.2rem; }
.svc__text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc__text > p { color: var(--muted); }
.svc__panel { background: var(--navy); color: #fff; padding: 40px; position: relative; overflow: hidden; }
.svc__panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.svc__panel h4 { color: var(--orange); margin-top: 0; position: relative; }
.svc__panel .chips { position: relative; }
.svc__panel .chips span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: var(--border); }
.svc__panel .chips span:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.svc--flip .svc__text { order: 2; }

/* ---------- Dark section / why ---------- */
.dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.dark p { color: var(--light); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.why__item { display: flex; flex-direction: column; background: var(--navy-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px; border-top: 3px solid transparent; border-image: var(--grad) 1; border-image-slice: 1; border-left: 0; border-right: 0; border-bottom: 0; transition: transform .25s var(--ease), background .25s; }
.why__item:hover { transform: translateY(-5px); background: var(--navy-3); }
.why__ico { font-size: 1.5rem; margin-bottom: .8rem; }
.why__item p { font-size: .9rem; flex: 1; }
.why__item span { font-size: .75rem; font-weight: 700; color: var(--orange); }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.step { position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.step__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--tint-2); }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Reviews + platforms ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reviews--mt { margin-top: 40px; }
.review { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.stars { color: var(--orange); letter-spacing: 2px; margin-bottom: .75rem; }
.stars small { color: var(--muted); font-weight: 700; letter-spacing: 0; margin-left: .25rem; }
.review blockquote { margin: 0 0 1rem; font-weight: 700; flex: 1; }
.review figcaption { color: var(--muted); font-size: .85rem; }
.platforms { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); }
.platforms__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.platforms ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.platforms li { font-weight: 700; font-size: .88rem; border: 1px solid var(--border); background: #fff; padding: .45rem 1rem; border-radius: 8px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about__text p { color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts div { padding: 24px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.facts div:nth-child(2), .facts div:nth-child(3) { background: var(--tint); color: var(--text); }
.facts strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--orange); }
.facts span { font-size: .85rem; opacity: .8; }
.person { display: flex; align-items: center; gap: 1rem; margin-top: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); }
.person__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.4rem; background: linear-gradient(135deg, var(--orange), var(--blue-deep)); }
.person strong { display: block; }
.person span { color: var(--muted); font-size: .88rem; }
.person__link { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); font-weight: 700; }
.person__link:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.focus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.focus div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.focus span { font-size: 1.6rem; }
.focus h3 { margin: .6rem 0 .2rem; }
.focus p { color: var(--muted); font-size: .88rem; margin: 0; }
.awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.award { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, transform .25s var(--ease); }
.award:hover { border-color: var(--orange); transform: translateY(-4px); }
.award__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--tint-2); margin-bottom: 1rem; }
.award p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact__info { display: grid; gap: 14px; }
.info-card { display: flex; gap: 1rem; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.info-card:hover { border-color: var(--orange); }
.info-card__ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-2); font-size: 1.2rem; }
.info-card h3 { margin-bottom: .2rem; }
.info-card p { color: var(--muted); font-size: .9rem; margin: 0 0 .3rem; }
.info-card a { font-weight: 700; font-size: .88rem; color: var(--orange-dark); }
.form { background: #fff; color: var(--text); padding: 32px; border-radius: 18px; display: grid; gap: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form h2 { font-size: 1.5rem; margin: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .85rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .78rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; background: #fff; }
.form__status { margin: 0; font-size: .88rem; min-height: 1.2em; }
.form__status.ok { color: #059669; }
.form__status.err { color: #dc2626; }
.form__status a { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; transition: border-color .2s; }
.faq details[open] { border-color: var(--orange); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- CTA band + footer ---------- */
.cta-band { background: linear-gradient(110deg, var(--blue-deep), var(--blue), var(--amber), var(--orange), var(--blue-deep)); background-size: 300% 100%; animation: bandflow 14s ease-in-out infinite alternate; color: #fff; padding: 40px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 22px); }
.cta-band__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .2rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; opacity: .9; }

.footer { background: #000; color: var(--light); padding: 64px 0 0; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; }
.footer__grid p { margin: 1rem 0; max-width: 320px; }
.footer__badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .4rem .8rem; border-radius: 999px; border: 1px solid rgba(var(--orange-rgb),.4); color: var(--orange-2); }
.footer h4 { color: #fff; margin: 0 0 1rem; }
.footer__grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer__grid a:not(.btn):not(.logo):not(.footer__badge):hover { color: var(--orange); }
.footer__grid .btn { margin-top: .5rem; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding: 22px 20px; font-size: .8rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero__content > * { opacity: 1; transform: none; }
  .art__set > * { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 20px; }
  .hero { min-height: 0; }
  .orbit { width: min(100%, 480px); }
}
@media (max-width: 1000px) {
  .stats__grid, .why, .steps, .focus { grid-template-columns: repeat(2, 1fr); }
  .work, .work--3 { grid-template-columns: repeat(2, 1fr); }
  .reviews, .awards, .cards { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .svc { grid-template-columns: 1fr; }
  .svc--flip .svc__text { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .modal__content { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); padding: 12px 20px 20px; display: none; }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__scroll { display: none; }
}
@media (max-width: 600px) {
  .topbar__inner > span:first-child { display: none; }
  .topbar__right { width: 100%; justify-content: space-between; gap: 1rem; }
  .hero { padding: 48px 0 56px; }
  .hero__trust li { padding: 0 .9rem; }
  .hero__trust strong { font-size: 1.1rem; }
  .orbit { width: min(100%, 360px); margin-top: 12px; --rad: 40%; }
  .orbit__ring--outer { inset: 9%; }
  .chip { font-size: .62rem; padding: .3rem .55rem; }
  .stage { inset: 27%; }
  .stage__label strong { font-size: .82rem; }
  .stage__label span { font-size: .62rem; }
  .page-hero { padding: 64px 0 56px; }
  .section { padding: 68px 0; }
  .stats__grid, .why, .steps, .focus, .work, .work--3, .cards--4 { grid-template-columns: 1fr; }
  .stat strong { font-size: 1.9rem; }
  .svc__text, .svc__panel { padding: 28px 22px; }
  .svc__num { font-size: 2.2rem; top: 22px; right: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .modal__body { padding: 24px; }
}

/* =========================================================
   Brand layer + site-wide animations
   ========================================================= */

/* Tagline (serif, like the brand banner) */
.tagline { font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; font-size: 1.02rem; color: #fff; letter-spacing: -.01em; margin: 1.6rem 0 0; }
.tagline em { font-style: normal; }
.t-amber { color: var(--amber); }
.t-blue { color: #5b7cf0; }
.footer .tagline { font-size: .95rem; margin: 1rem 0 0; }

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px rgba(var(--orange-rgb), .6); }

/* Back to top with progress ring */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; background: var(--navy); color: #fff; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { position: absolute; inset: 2px; width: 44px; height: 44px; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 3; }
.to-top .to-top__ring { stroke: var(--orange); stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.to-top span { position: relative; font-weight: 800; font-size: 1.1rem; }

/* Header gains depth once you scroll */
.header { transition: background .3s, box-shadow .3s; }
.header.scrolled { background: rgba(5,5,7,.94); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); opacity: 0; transition: opacity .3s; }
.header.scrolled::after { opacity: .7; }

/* Page fade in / out */
.js body { animation: pageIn .6s var(--ease) both; }
body.leaving { opacity: 0; transition: opacity .25s ease; }
@keyframes pageIn { from { opacity: 0; } }

/* Eyebrow line grows in */
.eyebrow::before, .kicker::before { background: var(--grad); }
.js .reveal .eyebrow::before { width: 0; transition: width .8s .25s var(--ease); }
.js .reveal.visible .eyebrow::before { width: 28px; }

/* Heading underline sweep */
.head-row h2, .center-head h2 { position: relative; padding-bottom: .35em; }
.head-row h2::after, .center-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .9s .3s var(--ease); }
.center-head h2::after { left: 50%; margin-left: -32px; transform-origin: center; }
.head-row.visible h2::after, .center-head h2::after { transform: scaleX(1); }
html:not(.js) .head-row h2::after { transform: scaleX(1); }

/* Mouse spotlight on cards (JS sets --mx / --my) */
.card, .work__item, .award, .info-card, .step, .review, .focus > div {
  background-image: radial-gradient(320px circle at var(--mx, -500px) var(--my, -500px), rgba(var(--orange-rgb), .09), transparent 60%);
}
.why__item { background-image: radial-gradient(320px circle at var(--mx, -500px) var(--my, -500px), rgba(var(--blue-rgb), .22), transparent 60%); }
.card:hover, .work__item:hover, .award:hover, .info-card:hover { box-shadow: 0 18px 44px rgba(11,11,15,.12), 0 0 0 1px rgba(var(--orange-rgb), .25); }

/* Why cards: gradient top bar (replaces border-image) */
.why__item { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-image: none; }
.why__item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }

/* 3D tilt helper */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Portfolio image wipe-in */
.js .work__item.reveal .work__thumb img { clip-path: inset(0 0 100% 0); transition: clip-path 1s .15s var(--ease), transform .6s var(--ease); }
.js .work__item.reveal.visible .work__thumb img { clip-path: inset(0 0 0 0); }

/* Stats numbers in brand gradient */
.stat strong span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Dark sections: slow moving brand glows */
.dark::before, .dark::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .22; pointer-events: none; z-index: 0; }
.dark::before { background: var(--blue); left: -180px; top: -200px; animation: drift2 20s ease-in-out infinite alternate; }
.dark::after { background: var(--orange); right: -180px; bottom: -220px; animation: drift1 24s ease-in-out infinite alternate; }
.dark > .container { position: relative; z-index: 1; }
.page-hero__glow { animation: glowShift 14s ease-in-out infinite alternate; }
@keyframes glowShift { to { transform: translate(-40px, 20px) scale(1.08); } }

/* Filters, tabs, sub-nav in brand gradient */
.filter.active, .subnav a.active { background: linear-gradient(100deg, var(--orange), var(--amber)); border-color: transparent; color: #fff; }
.subnav a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips span { transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.chips span:hover { transform: translateY(-2px); }

/* Services panel glow */
.svc__panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--orange-rgb), .35), transparent 70%); animation: drift1 16s ease-in-out infinite alternate; pointer-events: none; }
.svc:nth-child(even) .svc__panel::after { background: radial-gradient(circle, rgba(var(--blue-rgb), .45), transparent 70%); }

/* Brand banner (about page) */
.brandband { background: #000; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.brandband img { width: 100%; max-width: 1100px; margin: 0 auto; }
.js .brandband.reveal img { opacity: 0; transform: scale(.96); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .brandband.reveal.visible img { opacity: 1; transform: none; }

/* Footer top gradient line */
.footer { position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); background-size: 200% 100%; animation: bandflow 8s linear infinite alternate; }

/* Pill shimmer for "Client project" */
.pill--ok { background: linear-gradient(100deg, #15803d, #22c55e, #15803d); background-size: 200% auto; animation: shimmer 4s linear infinite; }

/* Magnetic buttons use the translate property (JS) */
.btn--lg, .hero__cta .btn, .cta-band .btn { transition: transform .2s var(--ease), translate .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s; }

@media (prefers-reduced-motion: reduce) {
  .hl, .pill--ok, .cta-band, .footer::before { animation: none !important; }
  .js .work__item.reveal .work__thumb img { clip-path: none; }
  .js .reveal .eyebrow::before { width: 28px; }
  .head-row h2::after { transform: scaleX(1); }
  .js body { animation: none; }
}
@media (max-width: 600px) {
  .tagline { font-size: .9rem; }
  .to-top { right: 14px; bottom: 14px; }
  .dark::before, .dark::after { width: 320px; height: 320px; }
}
.tilt.settled, html:not(.js) .tilt { transition: transform .18s ease-out, box-shadow .25s, border-color .25s, background .25s; }

/* =========================================================
   Blueprint layer for white sections (premium structure lines)
   JS adds .lined plus one .deco motif and a margin label
   ========================================================= */
.lined { position: relative; overflow: hidden; isolation: isolate; }
.lined > .container { position: relative; z-index: 1; }

/* vertical layout guides aligned to the content grid */
.lined::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%;
  width: min(1160px, calc(100% - 40px)); transform: translateX(-50%); pointer-events: none;
  background:
    linear-gradient(rgba(11,11,15,.07), rgba(11,11,15,.07)) 0 0 / 1px 100% no-repeat,
    linear-gradient(rgba(11,11,15,.045), rgba(11,11,15,.045)) 25% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(var(--orange-rgb),.10), rgba(var(--orange-rgb),.10)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(11,11,15,.045), rgba(11,11,15,.045)) 75% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(11,11,15,.07), rgba(11,11,15,.07)) 100% 0 / 1px 100% no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
}
/* registration crosshairs on the outer guides */
.lined::after {
  content: ""; position: absolute; z-index: -1; top: 28px; left: 50%; height: 15px; pointer-events: none;
  width: calc(min(1160px, calc(100% - 40px)) + 15px); transform: translateX(-50%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cpath d='M7.5 0v15M0 7.5h15' stroke='%23d6582e' stroke-opacity='.55' stroke-width='1.2'/%3E%3Ccircle cx='7.5' cy='7.5' r='3.5' fill='none' stroke='%23d6582e' stroke-opacity='.4'/%3E%3C/svg%3E") 0 0 / 15px 15px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15'%3E%3Cpath d='M7.5 0v15M0 7.5h15' stroke='%233459d6' stroke-opacity='.55' stroke-width='1.2'/%3E%3Ccircle cx='7.5' cy='7.5' r='3.5' fill='none' stroke='%233459d6' stroke-opacity='.4'/%3E%3C/svg%3E") 100% 0 / 15px 15px no-repeat;
}
.section--alt.lined { background-image: radial-gradient(rgba(11,11,15,.05) 1px, transparent 1.2px); background-size: 24px 24px; }

/* line-art motifs */
.deco { position: absolute; z-index: 0; width: 340px; height: 340px; pointer-events: none; opacity: .9; }
.deco--tr { top: -110px; right: -170px; opacity: .7; }
.deco--tr2 { top: 30px; right: -120px; opacity: .8; }
.deco--bl { bottom: -70px; left: -100px; }
.deco--tl { top: 40px; left: -70px; }
.deco--br { bottom: -60px; right: -80px; }
.deco * { fill: none; stroke: url(#decoGrad); stroke-width: 1.3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.deco .g { stroke: rgba(11,11,15,.14); stroke-width: 1; }
.deco .dot { fill: #fff; stroke: var(--orange); stroke-width: 1.3; }
.deco text { fill: rgba(11,11,15,.35); stroke: none; font: 600 10px "Plus Jakarta Sans", sans-serif; letter-spacing: .12em; }
.js .deco .d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease); }
.js .deco .d:nth-child(2) { transition-delay: .2s; } .js .deco .d:nth-child(3) { transition-delay: .4s; }
.js .deco .d:nth-child(4) { transition-delay: .6s; } .js .deco .d:nth-child(5) { transition-delay: .8s; }
.js .deco .dot, .js .deco text { opacity: 0; transition: opacity .8s 1.4s; }
.lined.deco-on .deco .d { stroke-dashoffset: 0; }
.lined.deco-on .deco .dot, .lined.deco-on .deco text { opacity: 1; }
.deco--spin { animation: spin 140s linear infinite; }
.deco--float { animation: decoFloat 12s ease-in-out infinite alternate; }
@keyframes decoFloat { to { transform: translate(14px, -16px) rotate(3deg); } }

/* editorial margin label */
.side-label {
  position: absolute; z-index: 1; top: 96px; left: max(14px, calc((100% - 1160px) / 2 - 52px));
  transform: rotate(180deg); writing-mode: vertical-rl;
  font-size: .68rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: rgba(11,11,15,.32);
  display: none; align-items: center; gap: 14px;
}
.side-label b { color: var(--orange); font-weight: 800; }
.side-label::before { content: ""; width: 1px; height: 54px; background: var(--grad); }
@media (min-width: 1360px) { .side-label { display: flex; } }

@media (max-width: 860px) {
  .deco { width: 230px; height: 230px; opacity: .6; }
  .lined::before {
    background:
      linear-gradient(rgba(11,11,15,.07), rgba(11,11,15,.07)) 0 0 / 1px 100% no-repeat,
      linear-gradient(rgba(var(--orange-rgb),.10), rgba(var(--orange-rgb),.10)) 50% 0 / 1px 100% no-repeat,
      linear-gradient(rgba(11,11,15,.07), rgba(11,11,15,.07)) 100% 0 / 1px 100% no-repeat;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js .deco .d { stroke-dashoffset: 0; transition: none; }
  .js .deco .dot, .js .deco text { opacity: 1; }
  .deco--spin, .deco--float { animation: none; }
}

/* Brand banner rebuilt in HTML (about page) */
.brandmark { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 40px); max-width: 1100px; margin: 0 auto; color: #fff; }
.brandmark__badge { display: grid; font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; line-height: 1.05; font-size: clamp(.9rem, 1.7vw, 1.5rem); }
.brandmark__badge em { font-style: normal; color: var(--amber); }
.brandmark__badge strong { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; color: #6fda44; letter-spacing: -.02em; font-size: 1.15em; }
.brandmark__word { font-weight: 800; font-size: clamp(3rem, 11vw, 9rem); line-height: .9; letter-spacing: -.02em; text-align: center; background: linear-gradient(100deg, #f1cfc1 0%, #e9a585 22%, #d6582e 60%, #c9481f 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brandmark__tag { display: grid; gap: .35em; padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid rgba(255,255,255,.35); font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; font-size: clamp(.85rem, 1.6vw, 1.4rem); white-space: nowrap; }
.brandmark__tag em { font-style: normal; }
.js .brandband.reveal .brandmark { opacity: 0; transform: scale(.96); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .brandband.reveal.visible .brandmark { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .brandmark { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .brandmark__badge { grid-auto-flow: column; gap: .4em; align-items: baseline; }
  .brandmark__tag { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.3); padding-top: 12px; }
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Project gallery (pop-up) */
.modal { width: min(1080px, calc(100% - 32px)); }
.gallery { display: grid; grid-template-rows: 1fr auto; min-width: 0; background: #0f0f14; }
.gallery__stage { position: relative; display: grid; place-items: center; min-height: 320px; max-height: 72vh; overflow: hidden; background: radial-gradient(circle at 50% 40%, #23232c, #0b0b0f); }
.gallery__main { width: 100%; height: 100%; max-height: 72vh; object-fit: contain; display: block; }
.gallery__main.is-in { animation: galIn .35s var(--ease); }
@keyframes galIn { from { opacity: .2; transform: scale(.985); } }
.gallery__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.92); color: var(--text); font-size: 1.6rem; line-height: 1; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); transition: background .2s, color .2s, scale .2s; }
.gallery__nav:hover { background: var(--orange); color: #fff; scale: 1.06; }
.gallery__nav--prev { left: 12px; } .gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; left: 12px; bottom: 12px; padding: .2rem .6rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; font-weight: 700; }
.gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; background: #0b0b0f; }
.gallery__thumb { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #1b1b22; opacity: .6; transition: opacity .2s, border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: .9; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--orange); }
.modal__link { display: inline-block; margin: -.2rem 0 .4rem; font-weight: 700; color: var(--orange-dark); }
.modal__link:hover { text-decoration: underline; }
.work__thumb .pill.work__count { position: absolute; left: 12px; bottom: 12px; top: auto; right: auto; }
@media (max-width: 1000px) {
  .gallery__stage { max-height: 52vh; min-height: 240px; }
  .gallery__main { max-height: 52vh; }
}

/* Client work: one broad Upwork portfolio */
.cw { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow); margin-bottom: 72px; }
.cw__mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); min-height: 460px; gap: 6px; padding: 6px; background: var(--navy); }
.cw__tile { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: #1b1b22; }
.cw__tile--big { grid-column: span 2; grid-row: span 2; }
.cw__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.cw__tile span { position: absolute; left: 8px; bottom: 8px; padding: .2rem .6rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.cw__tile:hover img { transform: scale(1.07); }
.cw__tile:hover span, .cw__tile:focus-visible span { opacity: 1; transform: none; }
.cw__tile--big span { opacity: 1; transform: none; }
.cw__text { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.cw__text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.cw__text > p { color: var(--muted); }
.cw__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 18px; }
.cw__stats div { padding: 12px; border-radius: 12px; background: var(--tint); }
.cw__stats strong { display: block; font-size: 1.6rem; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cw__stats span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.cw__chips { margin-bottom: 22px; }
.cw__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cw__live { font-weight: 700; font-size: .9rem; color: var(--orange-dark); }
.cw__live:hover { text-decoration: underline; }
.cw__next { margin-top: 8px; }
/* inside the pop-up */
.gallery__caption { position: absolute; right: 12px; bottom: 12px; max-width: 60%; padding: .25rem .7rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw__jumps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 6px; }
.cw__jump { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: .6rem .85rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-weight: 700; font-size: .9rem; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.cw__jump:hover { border-color: var(--orange); background: var(--tint); }
.cw__jump small { font-weight: 700; color: var(--muted); background: var(--bg-alt); border-radius: 999px; padding: .05rem .5rem; }
.cw__shopify { font-size: .9rem; }
.cw__shopify a { font-weight: 700; color: var(--orange-dark); }
@media (max-width: 1000px) {
  .cw { grid-template-columns: 1fr; }
  .cw__mosaic { grid-template-rows: repeat(3, 160px); min-height: 0; }
  .cw__text { padding: 28px 22px; }
}
@media (max-width: 600px) {
  .cw__mosaic { grid-template-rows: repeat(3, 100px); }
  .cw { margin-bottom: 56px; }
}
