:root {
  color-scheme: dark;
  --bg: #170524;
  --surface: #260b3a;
  --card: #32104b;
  --text: #ffffff;
  --muted: #e1d4e9;
  --silver: #ffffff;
  --silver-dark: #d8c4e5;
  --purple: #8d42c6;
  --purple-soft: #ffffff;
  --border: rgba(255, 255, 255, 0.17);
  --page: min(1240px, calc(100vw - 10%));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; background: var(--bg); }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 300px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(202, 147, 238, 0.35), transparent 34rem),
    radial-gradient(circle at 88% 36%, rgba(246, 231, 255, 0.15), transparent 28rem),
    linear-gradient(180deg, #1a0629 0%, #2a0a40 46%, #170524 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #d8e7ea; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100; padding: 0.7rem 1rem; color: #071014; background: var(--text); border-radius: 8px; font-weight: 800; transform: translateY(-160%); transition: transform 0.2s; }
.skip-link:focus { transform: translateY(0); }
.grain { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.ambient-light { position: fixed; z-index: 0; pointer-events: none; width: min(76vw, 980px); height: min(58vw, 720px); left: 50%; top: var(--light-y, 8%); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.24), rgba(223, 181, 250, 0.18) 24%, rgba(165, 74, 220, 0.16) 48%, transparent 74%); filter: blur(44px); mix-blend-mode: screen; will-change: top; }
main, .site-footer { position: relative; z-index: 1; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 40; border-bottom: 1px solid var(--border); background: rgba(24, 5, 37, 0.76); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); transition: background 0.25s, box-shadow 0.25s; }
.site-header.scrolled { background: rgba(24, 5, 37, 0.94); box-shadow: 0 10px 36px rgba(12, 0, 20, 0.35); }
.site-nav { width: var(--page); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); font-size: 0.95rem; font-weight: 850; letter-spacing: 0.11em; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; color: var(--muted); font-size: 0.9rem; }
.nav-links > a { margin: 0 0.65rem; transition: color 0.2s, transform 0.2s; }
.nav-links > a:hover { color: var(--text); }
.nav-cta { margin-left: 0.65rem !important; padding: 0.62rem 1.15rem; color: #3a1051 !important; background: #fff; border-radius: 999px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.01em; text-transform: none; box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2); }
.nav-cta:hover { transform: translateY(-2px); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: #fff; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform 0.25s; }

.hero { position: relative; width: min(980px, calc(100vw - 2rem)); min-height: 100svh; margin: 0 auto; padding: 8rem 1rem 5rem; display: flex; align-items: center; justify-content: center; overflow: visible; text-align: center; }
.hero::before { content: ""; position: absolute; left: 50%; top: 15%; width: min(68vw, 680px); aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 80px rgba(190, 105, 235, 0.08), 0 0 0 160px rgba(255, 255, 255, 0.025); }
.hero-grid { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 22% 34%, rgba(199, 164, 244, 0.16) 0 2px, transparent 3px), radial-gradient(circle at 78% 66%, rgba(213, 229, 233, 0.14) 0 2px, transparent 3px); }
.hero-content { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0 0 1rem; color: var(--silver); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-logo { width: clamp(120px, 17vw, 185px); height: auto; margin: 0 0 1.2rem; filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.6)); }
.hero h1 { max-width: 960px; margin: 0; color: #fff; font-size: clamp(3.5rem, 7.7vw, 6rem); font-weight: 850; letter-spacing: -0.065em; line-height: 0.93; text-transform: uppercase; }
.hero h1 span { color: #fff; -webkit-text-stroke: 0; text-stroke: 0; text-shadow: 0 0 34px rgba(255, 255, 255, 0.18); }
.hero-copy { max-width: 660px; margin: 1.6rem auto 0; color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.7rem 1.3rem; color: var(--text); border: 1px solid var(--border); border-radius: 999px; font-size: 0.86rem; font-weight: 800; transition: transform 0.2s, background 0.2s, box-shadow 0.2s; }
.button:hover { transform: translateY(-2px); background: var(--surface); }
.button-primary { color: #3a1051; border: 0; background: #fff; box-shadow: 0 10px 30px rgba(255, 255, 255, 0.22); }
.button-primary:hover { background: #f4eafa; box-shadow: 0 14px 36px rgba(255, 255, 255, 0.3); }
.text-link { display: inline-flex; min-height: 46px; align-items: center; padding: 0.7rem 1.3rem; color: var(--text); border: 1px solid var(--border); border-radius: 999px; font-size: 0.86rem; font-weight: 750; }
.text-link:hover { background: var(--surface); }
.scroll-cue { display: none; }

.capability-ticker { width: 100%; overflow: hidden; border-block: 1px solid var(--border); background: #fff; color: #4a1762; }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 2rem; padding: 1rem 0; font-size: 0.82rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; animation: ticker-scroll 28s linear infinite; }
.ticker-track span { white-space: nowrap; }
.ticker-track b { color: #9d51c7; font-size: 1rem; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

.section { width: var(--page); margin: 0 auto; padding: 7.5rem 0; border-top: 1px solid var(--border); }
.section-heading { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-heading > div { display: contents; }
.section-heading h2, .contact-grid h2 { margin: 0 0 0.85rem; color: var(--text); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 780; line-height: 1; letter-spacing: -0.055em; text-transform: none; }
.section-heading > p { max-width: 630px; margin: 0 auto; color: var(--muted); font-size: 1rem; }
.portfolio-group + .portfolio-group { margin-top: 5rem; }
.group-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.3rem; }
.group-heading span { color: var(--silver); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.group-heading p { max-width: 480px; margin: 0; color: var(--muted); font-size: 0.86rem; text-align: right; }
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 0 0 1.35rem; }
.portfolio-filter { min-height: 42px; padding: 0.7rem 1rem; color: var(--muted); background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border); border-radius: 999px; font: inherit; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s; }
.portfolio-filter:hover { color: #fff; border-color: rgba(255, 255, 255, 0.45); transform: translateY(-1px); }
.portfolio-filter:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.42); outline-offset: 3px; }
.portfolio-filter.is-active { color: #47165e; background: #fff; border-color: #fff; box-shadow: 0 8px 22px rgba(255, 255, 255, 0.16); }
.portfolio-grid { display: flex; gap: 1.15rem; overflow-x: auto; padding: 0.4rem 0 1.2rem; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--silver-dark) transparent; }
.portfolio-grid.is-auto-scrolling { scroll-snap-type: none; }
.portfolio-grid::-webkit-scrollbar { height: 6px; }
.portfolio-grid::-webkit-scrollbar-thumb { background: var(--silver-dark); border-radius: 999px; }
.portfolio-grid-featured { justify-content: flex-start; }
.portfolio-grid-featured .project-card, .portfolio-grid-clients .project-card, .portfolio-grid-clients .project-card-wide { flex: 0 0 clamp(275px, 29vw, 355px); transform: none; scroll-snap-align: start; }
.portfolio-grid-featured .project-card-landscape { flex-basis: clamp(420px, 48vw, 580px); }
.project-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; color: inherit; background: linear-gradient(145deg, rgba(167, 87, 218, 0.42), rgba(58, 15, 84, 0.74)); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 40px rgba(13, 0, 22, 0.32); transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s, opacity 0.2s; }
.project-card[hidden] { display: none; }
.project-card:hover { border-color: rgba(199, 211, 215, 0.55); transform: translateY(-6px); box-shadow: 0 24px 54px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(190, 214, 219, 0.1); }
.project-card > a { display: flex; min-height: 100%; flex-direction: column; }
.project-title { order: 2; min-height: 0; margin: 0; padding: 1.25rem 1.35rem 0; color: var(--text); font-size: 1.2rem; letter-spacing: -0.02em; }
.project-media { position: relative; width: min(100%, 230px); aspect-ratio: 9 / 16; margin-inline: auto; overflow: hidden; background: #000; border-bottom: 1px solid var(--border); }
.project-card-landscape .project-media { width: 100%; aspect-ratio: 16 / 9; }
.project-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.68)); }
.project-action { position: absolute; inset: auto 0.9rem 0.9rem; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.project-action b { width: 42px; height: 42px; display: grid; place-items: center; padding-left: 2px; color: #fff; background: rgba(8, 10, 13, 0.78); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; font-size: 0.72rem; }
.project-action em { padding: 0.35rem 0.6rem; color: #fff; background: rgba(0, 0, 0, 0.68); border-radius: 999px; font-size: 0.61rem; font-style: normal; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.project-meta { order: 3; flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 1.1rem 1.35rem 1.35rem; }
.project-meta span { color: var(--silver); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.project-meta h3 { margin: 0.4rem 0 0; color: var(--text); font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.025em; }
.project-meta p { margin: 0.65rem 0 1rem; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.project-meta a { margin-top: auto; color: #fff; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.project-meta a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.portfolio-grid-featured .project-meta { padding-top: 1.2rem; }
.portfolio-motion-note { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.portfolio-note { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; color: #7f898e; font-size: 0.69rem; letter-spacing: 0.11em; text-transform: uppercase; }

.client-heading { align-items: center; }
.client-logo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.client-logo { position: relative; min-height: 190px; display: grid; place-items: center; overflow: hidden; padding: 1.35rem; background: linear-gradient(145deg, rgba(153, 70, 207, 0.7), rgba(57, 13, 84, 0.92)); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 22px; box-shadow: 0 16px 34px rgba(15, 0, 24, 0.28); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.client-logo::after { content: "↗"; position: absolute; right: 0.75rem; top: 0.65rem; color: #fff; font-size: 0.8rem; opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.2s, transform 0.2s; }
.client-logo img { width: 112px; height: 112px; object-fit: cover; border: 4px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 12px 28px rgba(19, 0, 30, 0.32); transition: transform 0.25s; }
.client-logo:hover { transform: translateY(-6px); border-color: #fff; box-shadow: 0 22px 44px rgba(15, 0, 24, 0.42); }
.client-logo:hover::after { opacity: 1; transform: none; }
.client-logo:hover img { transform: scale(1.06); }

.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 1080px; margin: 0 auto; }
.service-card { position: relative; min-height: 300px; padding: 2.2rem; overflow: hidden; color: #fff; background: linear-gradient(135deg, #b66ee1, #7f38ad 48%, #3c1455); border: 1px solid rgba(255, 255, 255, 0.48); border-radius: 28px; box-shadow: 8px 10px #54206f, 16px 20px #2e0c42, 0 26px 52px rgba(12, 0, 20, 0.4); }
.service-card::after { content: ""; position: absolute; width: 75%; height: 2px; right: -14%; bottom: 29%; transform: rotate(-38deg); background: #fff; box-shadow: 0 0 18px #fff, 0 0 34px #b7d2d8; }
.service-card:nth-child(2) { color: #fff; background: linear-gradient(135deg, #8746b0, #582276 52%, #250a37); border-color: rgba(255, 255, 255, 0.34); }
.service-card:nth-child(3) { color: #fff; background: linear-gradient(135deg, #cc8cec, #9853be 48%, #56256e); border-color: rgba(255, 255, 255, 0.5); }
.service-card > * { position: relative; z-index: 1; }
.service-card > span { color: currentColor; opacity: 0.62; font-size: 0.73rem; font-weight: 850; letter-spacing: 0.16em; }
.service-card h3 { max-width: 82%; margin: 5.2rem 0 0.8rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 0.98; letter-spacing: -0.055em; text-transform: uppercase; }
.service-card p { max-width: 76%; margin: 0; color: currentColor; opacity: 0.78; font-size: 0.95rem; line-height: 1.55; }

.process-section { border-top: 1px solid var(--border); }
.process-grid { max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; padding: 0; margin: 0 auto; list-style: none; counter-reset: process; }
.process-card { position: relative; min-height: 350px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 1.75rem; background: linear-gradient(155deg, rgba(192, 107, 232, 0.42), rgba(57, 13, 84, 0.88)); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 24px; box-shadow: 0 18px 42px rgba(13, 0, 22, 0.28); }
.process-card::before { content: ""; position: absolute; width: 200px; height: 200px; right: -80px; top: -80px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255, 255, 255, 0.025), 0 0 0 64px rgba(255, 255, 255, 0.018); }
.process-card > * { position: relative; z-index: 1; }
.process-card > span { position: absolute; left: 1.75rem; top: 1.5rem; color: #fff; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.17em; }
.process-card h3 { margin: 0 0 0.8rem; color: #fff; font-size: clamp(1.65rem, 2.7vw, 2.35rem); line-height: 1; letter-spacing: -0.045em; text-transform: uppercase; }
.process-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.process-card:nth-child(2) { margin-top: 2rem; background: linear-gradient(155deg, rgba(128, 57, 170, 0.7), rgba(42, 9, 63, 0.94)); }
.process-card:nth-child(3) { background: linear-gradient(155deg, rgba(224, 160, 250, 0.4), rgba(83, 25, 109, 0.9)); }

.statement-section { position: relative; max-width: 1240px; min-height: 520px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; overflow: hidden; padding: clamp(3rem, 7vw, 5rem); background: radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.2), transparent 24rem), linear-gradient(135deg, #7e34a9, #4d176b 58%, #260b38); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 30px; box-shadow: 10px 12px #54206f, 20px 24px #2c0b40, 0 30px 64px rgba(12, 0, 20, 0.45); }
.statement-section::after { content: "♛"; position: absolute; right: clamp(1rem, 5vw, 4rem); bottom: -0.12em; color: rgba(199, 164, 244, 0.1); font-size: clamp(11rem, 25vw, 20rem); line-height: 1; transform: rotate(8deg); }
.statement-section > * { position: relative; z-index: 1; }
.statement { max-width: 920px; margin: 0; color: var(--text); font-size: clamp(3rem, 7vw, 6rem); line-height: 0.95; letter-spacing: -0.065em; }
.statement em { color: #fff; font-style: normal; text-shadow: 0 0 28px rgba(255, 255, 255, 0.2); }

.team-section { border-top: 0; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.team-card { position: relative; min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 1.7rem; color: #fff; background: linear-gradient(145deg, rgba(159, 72, 211, 0.78), rgba(49, 11, 73, 0.94)); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 26px; box-shadow: 8px 10px #54206f, 16px 20px #2e0c42, 0 26px 52px rgba(12, 0, 20, 0.38); }
.team-card::before { content: attr(data-initials); position: absolute; right: -0.06em; top: -0.12em; color: rgba(255, 255, 255, 0.09); font-size: clamp(8rem, 15vw, 13rem); font-weight: 900; line-height: 1; letter-spacing: -0.12em; }
.team-card::after { content: ""; position: absolute; width: 75%; height: 2px; right: -18%; bottom: 28%; transform: rotate(-37deg); background: rgba(255, 255, 255, 0.78); box-shadow: 0 0 18px rgba(255, 255, 255, 0.75), 0 0 34px rgba(218, 172, 245, 0.5); }
.team-card > * { position: relative; z-index: 1; }
.team-card-featured { grid-column: span 2; color: #43175a; background: linear-gradient(135deg, #fff, #e9dff0 52%, #bd8ed2); border-color: #fff; box-shadow: 8px 10px #8e4aac, 16px 20px #532468, 0 26px 52px rgba(12, 0, 20, 0.38); }
.team-card-featured::before { color: rgba(91, 35, 115, 0.1); }
.team-card-featured::after { background: #fff; }
.team-number { font-size: 0.72rem; font-weight: 850; letter-spacing: 0.17em; opacity: 0.72; }
.team-role { margin: 0 0 0.45rem; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.76; }
.team-card h3 { max-width: 90%; margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 0.94; letter-spacing: -0.06em; text-transform: uppercase; }

.contact-section { max-width: 760px; text-align: center; }
.contact-grid { display: block; }
.contact-grid h2 { font-size: clamp(3rem, 7vw, 5.5rem); text-transform: uppercase; }
.contact-panel { margin-top: 2.2rem; padding: 2rem; background: linear-gradient(145deg, rgba(151, 70, 204, 0.52), rgba(49, 12, 73, 0.8)); border: 1px solid var(--border); border-radius: 20px; }
.contact-label { margin: 0 0 0.6rem !important; color: var(--silver) !important; font-size: 0.73rem !important; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.contact-panel > p { max-width: 500px; margin: 0 auto 1.5rem; color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 1.2rem; margin-top: 1.6rem; }
.contact-links a { display: flex; align-items: center; gap: 0.55rem; color: var(--muted); font-size: 0.86rem; overflow-wrap: anywhere; transition: color 0.2s; }
.contact-links a:hover { color: var(--text); }
.contact-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; color: var(--silver); background: var(--surface); border: 1px solid var(--border); border-radius: 50%; font-size: 0.76rem; }
.site-footer { width: 100%; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.45rem 1.5rem; padding: 3rem 1rem max(3rem, env(safe-area-inset-bottom)); color: var(--muted); border-top: 1px solid var(--border); font-size: 0.82rem; text-align: center; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.75, 0.25, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  :root { --page: calc(100vw - 2rem); }
  .site-nav { min-height: 68px; }
  .brand { font-size: 0.8rem; }
  .brand img { width: 38px; height: 38px; }
  .menu-toggle { position: relative; z-index: 2; display: block; }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-3px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 0; visibility: hidden; opacity: 0; transform: translateY(-10px); display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 0.35rem; padding: 5rem 1.5rem; background: rgba(31, 7, 47, 0.97); backdrop-filter: blur(18px); transition: 0.25s; }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; }
  .nav-links > a { margin: 0; padding: 0.45rem 0; color: var(--text); font-size: clamp(1.9rem, 9vw, 3.4rem); font-weight: 800; letter-spacing: -0.05em; }
  .nav-cta { width: max-content; margin: 1rem 0 0 !important; padding: 0.7rem 1.25rem !important; font-size: 0.9rem !important; letter-spacing: 0 !important; }
  .section { padding: 5.5rem 0; }
  .client-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; max-width: 620px; }
  .process-card, .process-card:nth-child(2) { min-height: 260px; margin-top: 0; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-card-featured { grid-column: span 2; }
  .service-card { min-height: 270px; padding: 1.8rem; border-radius: 24px; box-shadow: 7px 9px #54206f, 14px 18px #2e0c42, 0 24px 44px rgba(12, 0, 20, 0.36); }
  .service-card h3 { margin-top: 4rem; }
  .statement-section { width: calc(100vw - 2rem); min-height: 470px; border-radius: 24px; }
}

@media (max-width: 560px) {
  .hero { min-height: 100svh; padding-top: 7rem; }
  .hero h1 { font-size: clamp(2.85rem, 14vw, 4.2rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .button, .hero-actions .text-link { width: 100%; }
  .group-heading { display: block; }
  .group-heading p { margin-top: 0.65rem; text-align: left; }
  .portfolio-filters { flex-wrap: nowrap; margin-inline: calc((100vw - var(--page)) / -2); padding: 0 calc((100vw - var(--page)) / 2) 0.35rem; overflow-x: auto; scrollbar-width: none; }
  .portfolio-filters::-webkit-scrollbar { display: none; }
  .portfolio-filter { flex: 0 0 auto; }
  .portfolio-grid-featured .project-card, .portfolio-grid-clients .project-card, .portfolio-grid-clients .project-card-wide { flex-basis: min(86vw, 340px); }
  .portfolio-grid-featured { justify-content: flex-start; }
  .portfolio-note { display: block; }
  .portfolio-note span { display: block; margin-top: 0.3rem; }
  .client-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-logo { min-height: 160px; padding: 1rem; }
  .client-logo:last-child { grid-column: 1 / -1; width: calc(50% - 0.5rem); justify-self: center; }
  .client-logo img { width: 96px; height: 96px; }
  .service-card h3, .service-card p { max-width: 86%; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card, .team-card-featured { min-height: 250px; grid-column: auto; padding: 1.45rem; border-radius: 22px; }
  .statement-section { padding: 2.2rem 1.5rem; }
  .statement { font-size: clamp(2.7rem, 14vw, 4rem); }
  .contact-panel { padding: 1.4rem 1rem; }
  .contact-panel .button { width: 100%; }
  .contact-links { display: grid; justify-content: start; text-align: left; }
  .ticker-track { gap: 1.4rem; padding: 0.85rem 0; font-size: 0.72rem; animation-duration: 22s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ambient-light { display: none; }
  .ticker-track { animation: none; }
}

/* Dungeon art direction ---------------------------------------------------- */
:root {
  --bg: #050306;
  --surface: #110816;
  --card: #190c21;
  --text: #fbf8ff;
  --muted: #cabed1;
  --silver: #eadcf2;
  --silver-dark: #8e7d99;
  --purple: #9b55d3;
  --purple-deep: #3a164d;
  --rune: #d8b5ef;
  --border: rgba(226, 201, 240, 0.19);
}

html { background: #050306; }
body {
  background:
    radial-gradient(circle at 50% -8%, rgba(122, 54, 161, 0.29), transparent 31rem),
    radial-gradient(circle at 8% 28%, rgba(112, 39, 151, 0.13), transparent 24rem),
    radial-gradient(circle at 92% 68%, rgba(91, 35, 122, 0.12), transparent 28rem),
    linear-gradient(180deg, #07040a 0%, #0d0611 42%, #050306 100%);
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body::before { display: none; }
body::after {
  background:
    radial-gradient(circle at center, transparent 38%, rgba(0, 0, 0, 0.28) 76%, rgba(0, 0, 0, 0.66) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.22));
}

.dungeon-atmosphere { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.torch-glow { position: absolute; width: clamp(220px, 28vw, 470px); aspect-ratio: 1; top: 28vh; border-radius: 50%; opacity: 0.26; background: radial-gradient(circle, rgba(184, 105, 231, 0.2), rgba(100, 36, 139, 0.08) 38%, transparent 72%); animation: torch-breathe 7s ease-in-out infinite alternate; }
.torch-glow-left { left: -14vw; }
.torch-glow-right { right: -14vw; animation-delay: -2.7s; }
@keyframes torch-breathe { from { opacity: 0.24; transform: scale(0.92); } to { opacity: 0.48; transform: scale(1.08); } }

.ambient-light { opacity: 0.5; background: radial-gradient(ellipse at center, rgba(224, 196, 241, 0.09), rgba(139, 65, 181, 0.08) 30%, rgba(65, 22, 87, 0.04) 54%, transparent 76%); filter: none; mix-blend-mode: normal; will-change: auto; }
:focus-visible { outline-color: var(--rune); }

.site-header { border-bottom-color: rgba(221, 196, 236, 0.14); background: rgba(6, 3, 8, 0.72); }
.site-header.scrolled { background: rgba(6, 3, 8, 0.94); box-shadow: 0 12px 42px rgba(0, 0, 0, 0.56); }
.brand { letter-spacing: 0.16em; }
.brand img { filter: drop-shadow(0 0 12px rgba(197, 139, 229, 0.2)); }
.nav-links { color: #b9acbf; }
.nav-links > a { position: relative; }
.nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -0.5rem; height: 1px; background: var(--rune); transition: left 0.22s, right 0.22s; }
.nav-links > a:not(.nav-cta):hover::after { left: 0; right: 0; }
.nav-cta,
.button,
.text-link { border-radius: 3px; clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); }
.nav-cta { color: #2c1039 !important; background: linear-gradient(135deg, #fff, #dfc8ec); box-shadow: 0 10px 30px rgba(164, 92, 204, 0.2); }
.boss-progress { position: absolute; inset: auto 0 -1px; height: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.045); }
.boss-progress span { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #6c2e8e, #d8b5ef 52%, #fff); box-shadow: 0 0 15px rgba(216, 181, 239, 0.72); will-change: transform; }

.hero { min-height: 100svh; padding: 8.5rem 1rem 6.5rem; isolation: isolate; }
.hero::before { top: auto; bottom: 4%; width: min(86vw, 900px); height: 21%; aspect-ratio: auto; border: 0; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(155, 85, 211, 0.16), transparent 68%); box-shadow: none; filter: blur(18px); }
.hero-grid { opacity: 0.5; background-image: linear-gradient(rgba(225, 203, 238, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(225, 203, 238, 0.05) 1px, transparent 1px); background-size: 80px 80px; -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 69%); mask-image: radial-gradient(ellipse at center, #000 0%, transparent 69%); }
.dungeon-arch { position: absolute; z-index: -1; left: 50%; top: clamp(6.5rem, 11vh, 8rem); bottom: 4.6rem; width: min(790px, 83vw); transform: translate3d(calc(-50% + var(--stage-x, 0px)), var(--stage-y, 0px), 0); border: 1px solid rgba(225, 197, 240, 0.23); border-bottom: 0; border-radius: 390px 390px 18px 18px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 13%, transparent 87%, rgba(255, 255, 255, 0.025)); box-shadow: inset 0 0 70px rgba(105, 42, 139, 0.11), 0 0 50px rgba(78, 28, 104, 0.08); transition: transform 0.4s cubic-bezier(0.2, 0.75, 0.2, 1); }
.dungeon-arch::before { content: ""; position: absolute; inset: 20px 20px 0; border: 1px solid rgba(227, 207, 239, 0.1); border-bottom: 0; border-radius: inherit; }
.dungeon-arch::after { content: ""; position: absolute; left: 50%; top: -1px; width: 35%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--rune), transparent); box-shadow: 0 0 24px rgba(216, 181, 239, 0.62); }
.arch-sigil { position: absolute; left: 50%; top: -18px; width: 36px; height: 36px; display: grid; place-items: center; transform: translateX(-50%) rotate(45deg); color: var(--rune); background: #09050b; border: 1px solid rgba(225, 197, 240, 0.4); box-shadow: 0 0 24px rgba(139, 65, 181, 0.24); font-size: 0.68rem; }
.arch-sigil::first-letter { transform: rotate(-45deg); }
.arch-rune { position: absolute; top: 42%; color: rgba(226, 199, 240, 0.24); font-family: Georgia, serif; font-size: 1rem; text-shadow: 0 0 16px rgba(201, 148, 232, 0.45); }
.arch-rune-left { left: 12px; }
.arch-rune-right { right: 12px; }
.hero-content { max-width: 900px; padding-inline: 2rem; }
.hero .eyebrow { color: var(--rune); text-shadow: 0 0 18px rgba(176, 101, 219, 0.3); }
.hero-logo { width: clamp(112px, 13vw, 158px); margin-bottom: 1rem; filter: drop-shadow(0 24px 35px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 24px rgba(180, 103, 225, 0.16)); transform: translate3d(calc(var(--stage-x, 0px) * -0.16), calc(var(--stage-y, 0px) * -0.16), 0); transition: transform 0.45s cubic-bezier(0.2, 0.75, 0.2, 1); }
.hero h1 { font-size: clamp(3.8rem, 8vw, 7rem); font-weight: 760; letter-spacing: -0.07em; line-height: 0.82; text-shadow: 0 8px 35px rgba(0, 0, 0, 0.7); }
.hero h1 span { display: inline-block; margin-top: 0.14em; color: #ead7f6; font-family: Iowan Old Style, Baskerville, "Times New Roman", serif; font-size: 1.12em; font-style: italic; font-weight: 500; letter-spacing: -0.055em; text-transform: none; text-shadow: 0 0 32px rgba(172, 93, 217, 0.3); }
.hero-copy { max-width: 610px; color: #d2c6d8; }
.encounter-meter { width: min(560px, 100%); margin-top: 1.65rem; padding: 0.72rem 0.85rem 0.8rem; background: rgba(7, 3, 9, 0.64); border: 1px solid rgba(224, 197, 238, 0.18); box-shadow: inset 0 0 24px rgba(120, 52, 157, 0.09), 0 14px 34px rgba(0, 0, 0, 0.28); }
.encounter-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; color: #cdbed5; font-size: 0.61rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.encounter-track { position: relative; height: 7px; padding: 1px; background: #070309; border: 1px solid rgba(224, 197, 238, 0.25); }
.encounter-track span { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(90deg, #6d2c91 0 18px, #8540ad 18px 36px, #bd7bdd 36px 38px); box-shadow: 0 0 14px rgba(172, 93, 217, 0.48); }
.hero-actions { margin-top: 1.5rem; }
.button { min-height: 50px; padding-inline: 1.55rem; letter-spacing: 0.035em; }
.button-primary { color: #2b0e38; background: linear-gradient(135deg, #fff 0%, #e7d6f0 62%, #c899df 100%); box-shadow: 0 12px 34px rgba(142, 69, 183, 0.28); }
.button-primary:hover { background: #fff; box-shadow: 0 16px 42px rgba(167, 94, 208, 0.4); }
.text-link { border-color: rgba(225, 199, 239, 0.27); background: rgba(8, 4, 10, 0.32); }
.scroll-cue { position: absolute; bottom: 1.1rem; left: 50%; display: flex; align-items: center; gap: 0.55rem; margin: 0; transform: translateX(-50%); color: #8f8098; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.scroll-cue span { color: var(--rune); }

.capability-ticker { color: #ded1e6; background: rgba(8, 4, 10, 0.86); border-color: rgba(225, 199, 239, 0.14); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.25); }
.ticker-track { padding-block: 0.9rem; }
.ticker-track b { color: var(--rune); text-shadow: 0 0 14px rgba(185, 113, 226, 0.5); }

.section { position: relative; padding: 9rem 0; border-top-color: transparent; }
.section[data-chamber]::before { content: attr(data-chamber); position: absolute; left: 50%; top: 2.5rem; z-index: 2; min-width: 230px; padding: 0.55rem 2rem; transform: translateX(-50%); color: #aa98b4; background: linear-gradient(90deg, transparent, rgba(19, 9, 24, 0.96) 14%, rgba(19, 9, 24, 0.96) 86%, transparent); border-block: 1px solid rgba(223, 197, 237, 0.13); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.2em; text-align: center; text-transform: uppercase; white-space: nowrap; }
.section-heading { max-width: 800px; }
.section-heading .eyebrow,
.statement-section > .eyebrow { color: var(--rune); }
.section-heading h2,
.contact-grid h2 { font-family: Iowan Old Style, Baskerville, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.045em; line-height: 0.94; }
.section-heading h2::after {
  content: "";
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  margin: 1.15rem auto 0;
  background: rgba(216, 181, 239, 0.62);
  box-shadow: 0 0 18px rgba(177, 101, 221, 0.34);
  transform: rotate(45deg);
}
.section-heading > p { color: #bfb1c6; }

.portfolio-filter { border-radius: 3px; background: rgba(13, 7, 16, 0.62); clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.portfolio-filter.is-active { color: #2f103e; background: linear-gradient(135deg, #fff, #dec5eb); border-color: #eadcf2; box-shadow: 0 8px 26px rgba(157, 83, 199, 0.2); }
.project-card { position: relative; background: linear-gradient(155deg, rgba(45, 21, 57, 0.96), rgba(12, 6, 15, 0.98)); border-color: rgba(221, 195, 235, 0.2); border-radius: 7px; box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 20px 44px rgba(0, 0, 0, 0.4); }
.project-card::before { content: ""; position: absolute; inset: 0 16% auto; z-index: 3; height: 1px; background: linear-gradient(90deg, transparent, rgba(223, 182, 245, 0.74), transparent); box-shadow: 0 0 18px rgba(187, 112, 229, 0.28); }
.project-card:hover { border-color: rgba(225, 195, 241, 0.48); box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 28px 58px rgba(0, 0, 0, 0.58), 0 0 32px rgba(106, 42, 141, 0.12); }
.project-media { border-bottom-color: rgba(221, 195, 235, 0.16); }
.project-meta span { color: #d6bce4; }
.project-meta p { color: #baadc1; }
.project-meta a { color: #eadcf2; }
.portfolio-grid::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #5d286f, #b57bd1); }
.client-logo { min-height: 176px; background: radial-gradient(circle at 50% 42%, rgba(112, 52, 143, 0.37), transparent 52%), linear-gradient(155deg, #1e0e26, #0c070f); border-color: rgba(221, 195, 235, 0.18); border-radius: 7px; box-shadow: inset 0 0 34px rgba(107, 43, 140, 0.08), 0 18px 38px rgba(0, 0, 0, 0.38); }
.client-logo img { border-width: 2px; border-color: #e5d5ed; box-shadow: 0 0 0 7px rgba(114, 51, 146, 0.15), 0 16px 32px rgba(0, 0, 0, 0.48); }
.client-logo:hover { border-color: rgba(232, 208, 245, 0.52); box-shadow: inset 0 0 34px rgba(107, 43, 140, 0.12), 0 24px 48px rgba(0, 0, 0, 0.5); }

.services-grid { gap: 1.15rem; }
.service-card { min-height: 330px; padding: 2rem; color: #f7f1fa; background: radial-gradient(circle at 88% 10%, rgba(171, 99, 210, 0.2), transparent 34%), linear-gradient(155deg, #27122f, #0e0712 72%); border-color: rgba(224, 197, 239, 0.24); border-radius: 4px; box-shadow: inset 0 0 0 7px rgba(229, 205, 242, 0.025), inset 0 0 46px rgba(105, 40, 137, 0.09), 0 24px 54px rgba(0, 0, 0, 0.44); clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); }
.service-card::before {
  content: "";
  position: absolute;
  right: 2rem;
  top: 1.8rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid rgba(222, 187, 240, 0.34);
  box-shadow: 0 0 22px rgba(177, 101, 221, 0.2);
  transform: rotate(45deg);
}
.service-card::after { inset: 8px; width: auto; height: auto; right: 8px; bottom: 8px; transform: none; background: none; border: 1px solid rgba(224, 197, 239, 0.07); box-shadow: none; pointer-events: none; }
.service-card:nth-child(2) { background: radial-gradient(circle at 88% 10%, rgba(136, 68, 175, 0.25), transparent 34%), linear-gradient(155deg, #211029, #0b060e 72%); border-color: rgba(224, 197, 239, 0.2); }
.service-card:nth-child(3) { background: radial-gradient(circle at 88% 10%, rgba(197, 128, 231, 0.2), transparent 34%), linear-gradient(155deg, #2b1534, #0f0712 72%); border-color: rgba(224, 197, 239, 0.26); }
.service-card > span { color: #cda9df; opacity: 1; }
.service-card h3 { margin-top: 6rem; font-size: clamp(2rem, 3.5vw, 2.9rem); }
.service-card p { color: #c7bacd; opacity: 1; }

.process-grid { position: relative; gap: 1.25rem; }
.process-grid::before { content: ""; position: absolute; left: 8%; right: 8%; top: 2.2rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(211, 172, 232, 0.36), transparent); }
.process-card,
.process-card:nth-child(2),
.process-card:nth-child(3) { min-height: 330px; margin-top: 0; background: radial-gradient(circle at 84% 14%, rgba(140, 70, 177, 0.15), transparent 34%), linear-gradient(155deg, rgba(32, 15, 39, 0.96), rgba(10, 5, 12, 0.98)); border-color: rgba(221, 194, 235, 0.18); border-radius: 6px; box-shadow: inset 0 0 34px rgba(107, 43, 140, 0.07), 0 20px 46px rgba(0, 0, 0, 0.4); }
.process-card::before { width: 86px; height: 86px; right: 1rem; top: 1rem; border-color: rgba(224, 198, 238, 0.14); box-shadow: inset 0 0 24px rgba(130, 57, 167, 0.1), 0 0 0 8px rgba(224, 198, 238, 0.018); }
.process-card > span { color: #d6b8e6; }
.process-card p { color: #bfb1c6; }

.statement-section { min-height: 550px; padding-top: 7.5rem; background: radial-gradient(circle at 72% 28%, rgba(170, 99, 210, 0.22), transparent 17rem), linear-gradient(145deg, #25102f, #0b060e 70%); border-color: rgba(225, 198, 240, 0.25); border-radius: 260px 260px 10px 10px; box-shadow: inset 0 0 90px rgba(104, 39, 137, 0.15), 0 30px 70px rgba(0, 0, 0, 0.52); }
.statement-section::after { color: rgba(214, 176, 234, 0.08); text-shadow: 0 0 45px rgba(145, 65, 186, 0.12); }
.statement { font-family: Iowan Old Style, Baskerville, "Times New Roman", serif; font-weight: 500; }
.statement em { color: #e8ceF5; font-style: italic; }

.team-grid { gap: 1.1rem; }
.team-card { min-height: 290px; color: #f8f3fb; background: radial-gradient(circle at 90% 14%, rgba(142, 71, 179, 0.18), transparent 35%), linear-gradient(155deg, #211028, #0b060e 72%); border-color: rgba(224, 197, 239, 0.2); border-radius: 6px; box-shadow: inset 0 0 40px rgba(103, 39, 134, 0.08), 0 22px 48px rgba(0, 0, 0, 0.42); }
.team-card::before { color: rgba(225, 196, 240, 0.055); font-family: Iowan Old Style, Baskerville, serif; font-weight: 500; }
.team-card::after { height: 1px; background: linear-gradient(90deg, transparent, rgba(232, 207, 245, 0.6), transparent); box-shadow: 0 0 18px rgba(187, 112, 229, 0.2); }
.team-card-featured { color: #fff; background: radial-gradient(circle at 88% 14%, rgba(210, 160, 237, 0.24), transparent 35%), linear-gradient(145deg, #4b205f, #180a20 76%); border-color: rgba(230, 203, 244, 0.4); box-shadow: inset 0 0 60px rgba(173, 92, 215, 0.1), 0 26px 56px rgba(0, 0, 0, 0.5); }
.team-card-featured::before { color: rgba(244, 225, 253, 0.07); }
.team-role { color: #d7c0e3; opacity: 1; }

.contact-section { max-width: 880px; }
.contact-grid h2 { font-size: clamp(3.2rem, 7vw, 6rem); }
.contact-panel { position: relative; margin-top: 2.6rem; padding: 4rem 2rem 2.4rem; overflow: hidden; background: radial-gradient(circle at 50% 0, rgba(173, 99, 214, 0.2), transparent 17rem), linear-gradient(155deg, #211029, #0a050d 76%); border-color: rgba(224, 197, 239, 0.23); border-radius: 180px 180px 8px 8px; box-shadow: inset 0 0 60px rgba(105, 41, 138, 0.1), 0 24px 58px rgba(0, 0, 0, 0.46); }
.contact-panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--rune);
  box-shadow: 0 0 18px rgba(190, 117, 230, 0.5);
  transform: translateX(-50%) rotate(45deg);
}
.contact-label { color: #d7bfe4 !important; }
.contact-panel > p { color: #c4b7ca; }
.contact-icon { border-radius: 3px; background: #160a1c; }
.site-footer { position: relative; color: #918498; border-top-color: rgba(223, 196, 237, 0.12); }
.footer-sigil { color: #b78aca; }

/* Scroll-linked dungeon chambers ------------------------------------------ */
.dungeon-world {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #030204;
}

.dungeon-scene {
  --scene-y: 0px;
  position: absolute;
  inset: -7%;
  opacity: 0;
  overflow: hidden;
  transform: none;
  transform-origin: center;
  will-change: opacity;
}

.dungeon-scene:first-child { opacity: 1; }
.dungeon-scene::before,
.dungeon-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}

/* Entrance hall: old stone, a central vault and restrained violet light. */
.dungeon-scene-entrance {
  background:
    radial-gradient(ellipse at 50% 26%, rgba(157, 84, 199, 0.3), transparent 28%),
    radial-gradient(ellipse at 50% 92%, rgba(81, 30, 108, 0.28), transparent 46%),
    linear-gradient(180deg, #0b0610, #050307 72%);
}
.dungeon-scene-entrance::before {
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(223, 204, 235, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 204, 235, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, transparent 62px, rgba(223, 204, 235, 0.08) 63px, transparent 64px);
  background-size: 126px 63px, 126px 63px, 126px 126px;
  background-position: center top, center top, 63px 63px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 74%);
  mask-image: radial-gradient(ellipse at center, #000, transparent 74%);
}
.dungeon-scene-entrance::after {
  inset: 9% 18% -25%;
  border: 1px solid rgba(224, 197, 240, 0.1);
  border-bottom: 0;
  border-radius: 46vw 46vw 0 0;
  box-shadow: inset 0 0 100px rgba(107, 44, 141, 0.08), 0 0 80px rgba(91, 36, 120, 0.08);
}

/* Archive: tall shelving, cold amethyst shafts and deep reading alcoves. */
.dungeon-scene-archive {
  background:
    radial-gradient(ellipse at 22% 30%, rgba(103, 101, 203, 0.24), transparent 25%),
    radial-gradient(ellipse at 78% 66%, rgba(125, 69, 171, 0.22), transparent 29%),
    linear-gradient(180deg, #070815, #090511 58%, #040306);
}
.dungeon-scene-archive::before {
  opacity: 0.34;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 8vw, rgba(182, 175, 237, 0.14) 8vw calc(8vw + 1px)),
    repeating-linear-gradient(0deg, transparent 0 72px, rgba(183, 173, 229, 0.08) 72px 73px),
    linear-gradient(90deg, rgba(13, 13, 34, 0.78), transparent 18%, transparent 82%, rgba(13, 13, 34, 0.78));
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.15) 48%, #000);
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.15) 48%, #000);
}
.dungeon-scene-archive::after {
  inset: 6% 4%;
  background:
    linear-gradient(90deg, rgba(7, 5, 14, 0.9) 0 5%, transparent 5% 14%, rgba(7, 5, 14, 0.72) 14% 18%, transparent 18% 82%, rgba(7, 5, 14, 0.72) 82% 86%, transparent 86% 95%, rgba(7, 5, 14, 0.9) 95%),
    linear-gradient(180deg, rgba(179, 161, 237, 0.08), transparent 24%);
  border-top: 1px solid rgba(190, 181, 239, 0.1);
}

/* Arsenal: black iron geometry with low, smouldering light. */
.dungeon-scene-arsenal {
  background:
    radial-gradient(ellipse at 50% 88%, rgba(173, 64, 68, 0.25), transparent 37%),
    radial-gradient(circle at 18% 28%, rgba(147, 76, 174, 0.16), transparent 22%),
    linear-gradient(180deg, #100609, #090406 65%, #040203);
}
.dungeon-scene-arsenal::before {
  opacity: 0.34;
  background:
    repeating-linear-gradient(132deg, transparent 0 108px, rgba(210, 125, 129, 0.11) 108px 110px, transparent 110px 216px),
    repeating-linear-gradient(48deg, transparent 0 108px, rgba(142, 85, 163, 0.09) 108px 110px, transparent 110px 216px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 43% 57%, #000);
  mask-image: linear-gradient(90deg, #000, transparent 43% 57%, #000);
}
.dungeon-scene-arsenal::after {
  inset: auto 0 0;
  height: 38%;
  background:
    linear-gradient(90deg, transparent, rgba(238, 119, 102, 0.11), transparent),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(218, 113, 106, 0.1) 46px 47px);
  border-top: 1px solid rgba(230, 142, 134, 0.1);
  transform: perspective(360px) rotateX(58deg);
  transform-origin: bottom;
}

/* Ritual room: concentric sigils and mineral-blue spell light. */
.dungeon-scene-ritual {
  background:
    radial-gradient(circle at 50% 58%, rgba(52, 148, 162, 0.2), transparent 24%),
    radial-gradient(circle at 50% 58%, rgba(106, 73, 175, 0.17), transparent 48%),
    linear-gradient(180deg, #040b10, #070714 62%, #030406);
}
.dungeon-scene-ritual::before {
  inset: -12%;
  opacity: 0.48;
  background: repeating-radial-gradient(circle at 50% 58%, transparent 0 72px, rgba(112, 198, 207, 0.09) 73px 74px, transparent 75px 144px);
  transform: perspective(650px) rotateX(54deg) translateY(24%);
  transform-origin: center 70%;
}
.dungeon-scene-ritual::after {
  opacity: 0.2;
  background:
    linear-gradient(60deg, transparent 49.7%, rgba(140, 206, 217, 0.16) 50%, transparent 50.3%),
    linear-gradient(-60deg, transparent 49.7%, rgba(133, 107, 207, 0.14) 50%, transparent 50.3%);
  background-size: 160px 280px;
  -webkit-mask-image: radial-gradient(circle at 50% 58%, #000, transparent 64%);
  mask-image: radial-gradient(circle at 50% 58%, #000, transparent 64%);
}

/* Throne hall: a high central arch with a muted imperial-red horizon. */
.dungeon-scene-throne {
  background:
    radial-gradient(ellipse at 50% 38%, rgba(173, 65, 113, 0.25), transparent 30%),
    radial-gradient(ellipse at 50% 100%, rgba(98, 39, 127, 0.22), transparent 42%),
    linear-gradient(180deg, #0d050b, #080308 68%, #030203);
}
.dungeon-scene-throne::before {
  inset: 3% 21% -28%;
  border: 1px solid rgba(217, 148, 185, 0.12);
  border-bottom: 0;
  border-radius: 48vw 48vw 0 0;
  box-shadow:
    -18vw 4vw 0 -1px rgba(13, 5, 12, 0.76),
    18vw 4vw 0 -1px rgba(13, 5, 12, 0.76),
    inset 0 0 120px rgba(128, 46, 93, 0.08);
}
.dungeon-scene-throne::after {
  inset: auto 0 0;
  height: 33%;
  background: linear-gradient(180deg, transparent, rgba(63, 18, 43, 0.18)), repeating-linear-gradient(90deg, transparent 0 11vw, rgba(213, 130, 174, 0.08) 11vw calc(11vw + 1px));
  border-top: 1px solid rgba(216, 146, 184, 0.08);
}

/* Inner sanctum: cold crystal niches surrounding the core team. */
.dungeon-scene-sanctum {
  background:
    radial-gradient(circle at 24% 32%, rgba(74, 120, 181, 0.2), transparent 25%),
    radial-gradient(circle at 76% 62%, rgba(121, 74, 179, 0.22), transparent 28%),
    linear-gradient(180deg, #050915, #080612 62%, #030305);
}
.dungeon-scene-sanctum::before {
  opacity: 0.42;
  background:
    linear-gradient(116deg, rgba(120, 173, 220, 0.12) 0 1px, transparent 1px 100%) 0 0 / 17vw 100%,
    linear-gradient(64deg, transparent calc(100% - 1px), rgba(146, 113, 211, 0.1) calc(100% - 1px)) 0 0 / 17vw 100%;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}
.dungeon-scene-sanctum::after {
  background: linear-gradient(90deg, rgba(4, 6, 15, 0.84), transparent 17%, transparent 83%, rgba(4, 6, 15, 0.84));
  border-block: 1px solid rgba(140, 167, 218, 0.06);
}

/* Final chamber: a bright violet portal held inside near-black stone. */
.dungeon-scene-final {
  background:
    radial-gradient(ellipse at 50% 54%, rgba(197, 119, 227, 0.3), transparent 16%),
    radial-gradient(ellipse at 50% 54%, transparent 0 22%, rgba(136, 69, 171, 0.16) 22.5% 23%, transparent 23.5% 35%, rgba(112, 53, 144, 0.1) 35.5% 36%, transparent 36.5%),
    linear-gradient(180deg, #09040d, #050307 66%, #020203);
}
.dungeon-scene-final::before {
  inset: 6% 25% -30%;
  border: 1px solid rgba(224, 185, 241, 0.14);
  border-bottom: 0;
  border-radius: 50vw 50vw 0 0;
  box-shadow: inset 0 0 120px rgba(170, 84, 206, 0.1), 0 0 80px rgba(154, 74, 190, 0.08);
}
.dungeon-scene-final::after {
  inset: auto 8% 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 203, 243, 0.2), transparent);
  box-shadow: 0 0 28px rgba(188, 116, 218, 0.25);
}

/* Pixel-built optical flares: sharp blocks first, glow second. */
.pixel-flare {
  --flare-scale: 1;
  display: none;
  position: absolute;
  z-index: 3;
  width: 6px;
  height: 6px;
  background: #fff;
  box-shadow:
    -6px 0 0 rgba(255, 255, 255, 0.54),
    6px 0 0 rgba(255, 255, 255, 0.54),
    0 -6px 0 rgba(255, 255, 255, 0.45),
    0 6px 0 rgba(255, 255, 255, 0.45),
    -12px 0 0 rgba(207, 157, 235, 0.18),
    12px 0 0 rgba(207, 157, 235, 0.18),
    0 0 14px rgba(210, 157, 238, 0.62);
  image-rendering: pixelated;
  animation: pixel-flare-drift 8s steps(8, end) infinite alternate;
}
.pixel-flare::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(100px, 18vw, 310px);
  height: 3px;
  transform: translate(-50%, -50%);
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(226, 194, 244, 0.25) 7px 11px, transparent 11px 19px);
  box-shadow: 0 0 8px rgba(190, 119, 228, 0.16);
}
.pixel-flare::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(228, 199, 243, 0.24);
  box-shadow: 0 0 0 7px rgba(181, 111, 217, 0.04), 0 0 0 14px rgba(181, 111, 217, 0.025);
}
.pixel-flare-primary { left: 17%; top: 24%; }
.pixel-flare-secondary { --flare-scale: 0.58; right: 14%; bottom: 24%; animation-delay: -3.6s; animation-duration: 11s; }
.dungeon-scene-archive .pixel-flare-primary { left: 11%; top: 31%; }
.dungeon-scene-archive .pixel-flare-secondary { right: 19%; bottom: 18%; }
.dungeon-scene-arsenal .pixel-flare-primary { left: 77%; top: 28%; }
.dungeon-scene-arsenal .pixel-flare-secondary { right: auto; left: 21%; bottom: 19%; }
.dungeon-scene-ritual .pixel-flare-primary { left: 49%; top: 23%; }
.dungeon-scene-ritual .pixel-flare-secondary { right: 17%; bottom: 27%; }
.dungeon-scene-throne .pixel-flare-primary { left: 50%; top: 18%; }
.dungeon-scene-throne .pixel-flare-secondary { right: 12%; bottom: 31%; }
.dungeon-scene-sanctum .pixel-flare-primary { left: 23%; top: 21%; }
.dungeon-scene-sanctum .pixel-flare-secondary { right: 22%; bottom: 23%; }
.dungeon-scene-final .pixel-flare-primary { left: 50%; top: 31%; }
.dungeon-scene-final .pixel-flare-secondary { right: 18%; bottom: 17%; }

@keyframes pixel-flare-drift {
  from { opacity: 0.28; transform: translate3d(0, 0, 0) scale(var(--flare-scale)); }
  48% { opacity: 0.8; }
  to { opacity: 0.42; transform: translate3d(14px, 8px, 0) scale(var(--flare-scale)); }
}

/* Each content chamber carries the palette of the fixed environment behind it. */
[data-dungeon="entrance"] { --chamber-accent: #d8b5ef; --chamber-glow: rgba(159, 85, 199, 0.14); --chamber-line: rgba(222, 193, 239, 0.26); }
[data-dungeon="archive"] { --chamber-accent: #b7b1f2; --chamber-glow: rgba(101, 96, 189, 0.13); --chamber-line: rgba(181, 176, 236, 0.27); }
[data-dungeon="arsenal"] { --chamber-accent: #dc9a9e; --chamber-glow: rgba(164, 59, 73, 0.13); --chamber-line: rgba(222, 141, 146, 0.26); }
[data-dungeon="ritual"] { --chamber-accent: #9bcdd4; --chamber-glow: rgba(58, 143, 157, 0.12); --chamber-line: rgba(132, 196, 205, 0.27); }
[data-dungeon="throne"] { --chamber-accent: #dea1c0; --chamber-glow: rgba(159, 54, 104, 0.13); --chamber-line: rgba(218, 143, 182, 0.27); }
[data-dungeon="sanctum"] { --chamber-accent: #a9c9e7; --chamber-glow: rgba(71, 112, 171, 0.13); --chamber-line: rgba(148, 184, 222, 0.27); }
[data-dungeon="final"] { --chamber-accent: #e5bdf2; --chamber-glow: rgba(176, 89, 211, 0.15); --chamber-line: rgba(224, 185, 240, 0.3); }

.section[data-dungeon]:not(.statement-section) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: max(5vw, calc((100vw - 1240px) / 2));
  background: linear-gradient(180deg, transparent 0%, var(--chamber-glow) 19%, rgba(5, 3, 7, 0.08) 52%, var(--chamber-glow) 81%, transparent 100%);
}
.section[data-dungeon]::before {
  color: var(--chamber-accent);
  border-color: var(--chamber-line);
  text-shadow: 0 0 16px var(--chamber-glow);
}
.section[data-dungeon] .eyebrow,
.section[data-dungeon] .group-heading > span,
.section[data-dungeon] .project-meta > span,
.section[data-dungeon] .team-role { color: var(--chamber-accent); }
.section[data-dungeon] .section-heading h2::after {
  background: var(--chamber-accent);
  box-shadow: 0 0 18px var(--chamber-line);
}
.contact-section .contact-grid { width: min(880px, 100%); margin-inline: auto; }

#work .project-card::before { background: linear-gradient(90deg, transparent, #aaa8ef, transparent); box-shadow: 0 0 18px rgba(115, 110, 215, 0.34); }
#work .portfolio-filter.is-active { color: #17152f; background: linear-gradient(135deg, #faf9ff, #c6c2f4); border-color: #dcd9ff; }
#work .client-logo { background: radial-gradient(circle at 50% 42%, rgba(94, 93, 180, 0.3), transparent 52%), linear-gradient(155deg, #111128, #080710); border-color: rgba(181, 176, 236, 0.2); }

#services .service-card,
#services .service-card:nth-child(2),
#services .service-card:nth-child(3) { background: radial-gradient(circle at 88% 10%, rgba(187, 79, 86, 0.2), transparent 34%), linear-gradient(155deg, #2a111b, #0d0609 72%); border-color: rgba(219, 140, 145, 0.24); box-shadow: inset 0 0 0 7px rgba(232, 169, 171, 0.02), inset 0 0 46px rgba(140, 44, 54, 0.08), 0 24px 54px rgba(0, 0, 0, 0.46); }
#services .service-card::before { border-color: rgba(224, 151, 155, 0.42); box-shadow: 0 0 22px rgba(190, 72, 81, 0.24); }
#services .service-card > span { color: #dfa2a5; }

#process .process-grid::before { background: linear-gradient(90deg, transparent, rgba(124, 194, 203, 0.42), transparent); }
#process .process-card,
#process .process-card:nth-child(2),
#process .process-card:nth-child(3) { background: radial-gradient(circle at 84% 14%, rgba(62, 149, 163, 0.18), transparent 34%), linear-gradient(155deg, rgba(10, 28, 34, 0.97), rgba(4, 8, 12, 0.98)); border-color: rgba(131, 194, 204, 0.2); box-shadow: inset 0 0 34px rgba(50, 145, 159, 0.07), 0 20px 46px rgba(0, 0, 0, 0.42); }
#process .process-card::before { border-color: rgba(138, 201, 210, 0.18); box-shadow: inset 0 0 24px rgba(51, 142, 155, 0.11), 0 0 0 8px rgba(139, 202, 211, 0.018); }
#process .process-card > span { color: #9bcdd4; }

#about.statement-section { background: radial-gradient(circle at 72% 28%, rgba(190, 83, 133, 0.22), transparent 17rem), linear-gradient(145deg, #2d101f, #0b0509 70%); border-color: rgba(218, 143, 182, 0.26); box-shadow: inset 0 0 90px rgba(137, 42, 86, 0.14), 0 30px 70px rgba(0, 0, 0, 0.54); }
#about .statement em { color: #f0bdd6; }

#team .team-card { background: radial-gradient(circle at 90% 14%, rgba(76, 122, 181, 0.2), transparent 35%), linear-gradient(155deg, #0c1729, #050810 72%); border-color: rgba(145, 182, 221, 0.22); box-shadow: inset 0 0 40px rgba(58, 104, 160, 0.09), 0 22px 48px rgba(0, 0, 0, 0.44); }
#team .team-card-featured { background: radial-gradient(circle at 88% 14%, rgba(144, 184, 224, 0.22), transparent 35%), linear-gradient(145deg, #1d3450, #09111e 76%); border-color: rgba(161, 197, 231, 0.38); box-shadow: inset 0 0 60px rgba(89, 140, 194, 0.11), 0 26px 56px rgba(0, 0, 0, 0.52); }
#team .team-card::after { background: linear-gradient(90deg, transparent, rgba(165, 202, 234, 0.62), transparent); box-shadow: 0 0 18px rgba(87, 139, 194, 0.23); }

#contact .contact-panel { background: radial-gradient(circle at 50% 0, rgba(203, 128, 230, 0.23), transparent 17rem), linear-gradient(155deg, #25102e, #09050c 76%); border-color: rgba(225, 186, 241, 0.28); box-shadow: inset 0 0 70px rgba(140, 57, 174, 0.12), 0 28px 64px rgba(0, 0, 0, 0.52), 0 0 90px rgba(129, 52, 160, 0.08); }

@media (hover: hover) and (pointer: fine) {
  .service-card,
  .process-card,
  .team-card { transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease; }
  .service-card:hover,
  .process-card:hover,
  .team-card:hover { transform: translateY(-7px); border-color: rgba(229, 202, 243, 0.46); box-shadow: inset 0 0 42px rgba(117, 46, 151, 0.11), 0 30px 62px rgba(0, 0, 0, 0.54); }
}

@media (max-width: 820px) {
  .nav-links { background: radial-gradient(circle at 50% 20%, rgba(89, 36, 116, 0.22), transparent 24rem), rgba(7, 3, 9, 0.98); }
  .dungeon-arch { width: min(88vw, 680px); }
  .dungeon-scene { inset: -10%; }
  .section[data-dungeon]:not(.statement-section) { padding-inline: 1rem; }
  .section { padding: 8rem 0 6rem; }
  .section[data-chamber]::before { top: 2rem; }
  .services-grid { max-width: 620px; }
  .process-grid::before { left: 2.2rem; right: auto; top: 5%; bottom: 5%; width: 1px; height: auto; background: linear-gradient(transparent, rgba(211, 172, 232, 0.34), transparent); }
  .statement-section { min-height: 500px; border-radius: 180px 180px 8px 8px; }
}

@media (max-width: 560px) {
  .hero { min-height: 100svh; padding: 6.8rem 0.25rem 5.2rem; }
  .hero-content { padding-inline: 0.9rem; }
  .dungeon-arch { top: 5.6rem; bottom: 3.4rem; width: calc(100vw - 1.3rem); border-radius: 48vw 48vw 12px 12px; }
  .dungeon-arch::before { inset: 11px 11px 0; }
  .arch-rune { display: none; }
  .hero-logo { width: 106px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.45rem); line-height: 0.84; }
  .hero-copy { max-width: 34ch; margin-top: 1.25rem; }
  .encounter-meter { margin-top: 1.25rem; padding: 0.64rem 0.68rem 0.7rem; }
  .encounter-meta { gap: 0.5rem; font-size: 0.52rem; letter-spacing: 0.1em; }
  .hero-actions { width: min(100%, 360px); gap: 0.65rem; }
  .scroll-cue { display: none; }
  .section { padding: 7rem 0 5rem; }
  .section[data-chamber]::before { top: 1.6rem; min-width: min(78vw, 270px); padding-inline: 1rem; font-size: 0.56rem; }
  .service-card { min-height: 275px; padding: 1.5rem; }
  .service-card h3 { margin-top: 4.5rem; }
  .process-card,
  .process-card:nth-child(2),
  .process-card:nth-child(3) { min-height: 270px; }
  .statement-section { width: calc(100vw - 1rem); min-height: 440px; padding: 6rem 1.35rem 2.4rem; border-radius: 48vw 48vw 7px 7px; }
  .statement-section[data-chamber]::before { top: 1.8rem; }
  .team-card,
  .team-card-featured { min-height: 245px; }
  .contact-panel { padding: 3.5rem 1rem 1.6rem; border-radius: 44vw 44vw 7px 7px; }
  .contact-links { width: min(100%, 330px); margin-inline: auto; }
  .pixel-flare { --flare-scale: 0.72; }
  .pixel-flare-secondary { display: none; }
  .pixel-flare::before { width: min(38vw, 145px); }
  .dungeon-scene-archive::before { background-size: 25vw 64px, 25vw 64px, auto; }
}

@media (prefers-reduced-motion: reduce) {
  .torch-glow { animation: none; }
  .dungeon-arch,
  .hero-logo { transform: translateX(-50%); transition: none; }
  .hero-logo { transform: none; }
  .boss-progress span { transition: none; }
  .dungeon-scene { transform: scale(1.045); will-change: auto; }
  .pixel-flare { animation: none; }
}
