@font-face {
  font-family: 'Archivo Black';
  src: url('fonts/archivo-black-regular.ttf?v=20260918b') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/space-grotesk-variable.ttf?v=20260918b') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --black: #090909;
  --surface: #111013;
  --white: #f7f7f2;
  --muted: #b1acba;
  --line: #302a38;
  --lime: #c9ff00;
  --violet: #8a18db;
  --lilac: #bd83f0;
  --cyan: #71e1ef;
  --display: 'Archivo Black', sans-serif;
  --body: 'Space Grotesk', sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --header-height: 98px;
  color-scheme: dark;
  font-family: var(--body);
  font-synthesis: none;
  color: var(--white);
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  scrollbar-color: var(--violet) var(--black);
  scrollbar-width: thin;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
body { -webkit-font-smoothing: antialiased; padding-top: var(--header-height); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
p { line-height: 1.7; }
::selection { color: var(--black); background: var(--lime); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 6px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--violet); }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1200px); margin-inline: auto; }
.section-pad { padding-block: 76px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 14px 20px; color: var(--black); background: var(--lime); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; padding-top: 22px; pointer-events: none; }
.header-inner { min-height: 76px; padding: 12px 15px 12px 21px; border: 1px solid #43364f; border-radius: 16px; display: flex; align-items: center; gap: 30px; background: var(--black); box-shadow: 0 12px 30px #0005; pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 400 23px/1 var(--display); letter-spacing: -.03em; }
.brand img { flex: none; }
.navigation { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 600; }
.navigation a { padding-block: 12px; color: #d7d3dd; transition: color .18s; }
.navigation a:hover { color: var(--lime); }
.navigation .nav-contact { display: inline-flex; align-items: center; gap: 20px; padding: 13px 20px; border-radius: 8px; background: var(--lime); color: var(--black); }
.navigation .nav-contact:hover { background: var(--white); }
.nav-contact .icon { width: 17px; height: 17px; }
.menu-toggle, .menu-toggle[hidden] { display: none; }
.hero { position: relative; isolation: isolate; padding-block: 78px 0; text-align: center; }
.hero h1 { font-size: clamp(62px, 7.3vw, 96px); line-height: 1.06; letter-spacing: -.035em; text-transform: uppercase; }
.hero h1 span { color: var(--lime); }
.hero-signature { margin-top: 15px; font-size: clamp(20px, 2.3vw, 29px); line-height: 1.35; font-weight: 500; letter-spacing: -.025em; }
.hero-signature span { color: var(--lilac); }
.hero-intro { max-width: 620px; margin: 27px auto 0; font-size: 17px; color: var(--muted); }
.hero-intro strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 52px; padding: 14px 23px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 700; transition: background .18s, border-color .18s, color .18s; }
.button .icon { width: 19px; height: 19px; }
.button-lime { background: var(--lime); color: var(--black); }
.button-lime:hover { background: var(--white); }
.button-outline { border-color: #514957; color: var(--white); }
.button-outline:hover { background: var(--surface); border-color: var(--lilac); }
.service-nav { display: grid; grid-template-columns: repeat(3, 1fr); margin: 66px auto 0; padding-block: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-nav a { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 28px; font-size: 15px; font-weight: 600; }
.service-nav a + a { border-left: 1px solid var(--line); }
.service-nav .icon { color: var(--lilac); width: 21px; height: 21px; }
.service-nav a:hover { color: var(--lime); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 42px; margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(32px, 3.7vw, 48px); letter-spacing: -.035em; line-height: 1.1; }
.section-heading h2 > span { color: var(--lime); }
.section-heading > p { max-width: 335px; font-size: 14px; color: var(--muted); margin-bottom: 3px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid #383040; border-radius: 15px; overflow: hidden; background: var(--surface); transition: border-color .2s; }
.project-card:hover { border-color: var(--lilac); }
.project-card:focus-visible { outline-offset: 5px; }
.project-preview { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); overflow: hidden; background: #100d15; }
.project-preview img { width: 100%; height: 100%; object-fit: contain; }
.project-content { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.project-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-title h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.project-title > .icon { color: var(--lilac); width: 20px; height: 20px; }
.project-content > p { margin-top: 15px; font-size: 14px; color: var(--muted); line-height: 1.65; }
.project-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.project-chips span { padding: 4px 9px; border: 1px solid #45374e; border-radius: 5px; font-size: 10px; color: #c8bfd0; }
.project-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 30px; margin-top: auto; color: var(--lime); font-size: 12px; font-weight: 600; }
.project-link .icon { width: 18px; height: 18px; }
.services { padding-top: 32px; }
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 38px 1fr 30px; gap: 27px; padding: 27px 13px; border-bottom: 1px solid var(--line); align-items: center; scroll-margin-top: 30px; }
.service-icon.icon { width: 28px; height: 28px; color: var(--lilac); }
.service-row h3 { font-size: clamp(20px, 2.1vw, 27px); line-height: 1.25; letter-spacing: -.025em; }
.service-row p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.service-arrow { color: #786885; width: 22px; height: 22px; justify-self: end; }
.about { padding-top: 48px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-copy h2 { font-size: clamp(28px, 3vw, 41px); line-height: 1.14; letter-spacing: -.035em; }
.about-copy h2 em { color: var(--lime); font-style: normal; }
.about-copy h2 > span { color: var(--lilac); }
.about-copy > p { max-width: 490px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 15px; padding-block: 10px; font-size: 12px; font-weight: 600; text-underline-offset: 6px; }
.text-link:hover { color: var(--lime); text-decoration: underline; }
.text-link .icon { width: 18px; height: 18px; }
.about-copy .text-link { margin-top: 20px; }
.terminal { min-width: 0; position: relative; isolation: isolate; overflow: hidden; border: 1px solid #685279; border-radius: 15px; background: #100d15; box-shadow: 0 18px 46px #0004; }
.terminal-bar { display: flex; align-items: center; gap: 16px; padding: 17px 20px; border-bottom: 1px solid #46344f; background: #1c1425; font-size: 11px; color: #dacde4; }
.terminal-bar > .icon { width: 15px; height: 15px; color: var(--lilac); margin-left: auto; }
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots i { width: 8px; height: 8px; border-radius: 50%; background: #76508f; }
.terminal-dots i:nth-child(2) { background: var(--lilac); }
.terminal-dots i:nth-child(3) { background: var(--lime); }
.terminal-body { position: relative; padding: 24px; }
.terminal-session { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 25px; font: 11px/1.5 'Cascadia Code', Consolas, monospace; }
.session-label { color: var(--lime); }
.session-language { color: #bcaecc; }
.terminal-screen { min-height: 237px; }
.terminal-comment, .terminal-body pre { font-family: 'Cascadia Code', Consolas, monospace; font-size: 12px; line-height: 2; }
.terminal-comment { color: #bcaecc; }
.terminal-body pre { margin: 14px 0 19px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--white); }
.terminal-command { color: var(--lilac); }
.terminal-value { color: var(--lime); }
.terminal-prompt { color: var(--lime); }
.terminal-response { color: #bcaecc; }
.terminal-flow { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding-top: 23px; border-top: 1px solid #342b3f; font-size: 12px; color: #d9cce4; }
.terminal-flow .icon { width: 16px; height: 16px; color: var(--lilac); }
.terminal-note { margin-top: 24px; font-size: 10px; line-height: 1.6; color: #bcaecc; }
.contact { padding-top: 20px; }
.contact-panel { padding: 58px 32px; border-radius: 18px; text-align: center; background: var(--lime); color: var(--black); }
.contact-panel h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.1; letter-spacing: -.035em; }
.contact-status { max-width: 490px; margin: 24px auto 28px; font-size: 15px; line-height: 1.7; }
.contact-status strong { font-weight: 700; }
.button-black { background: var(--black); color: var(--lime); }
.button-black:hover { background: #30233b; color: var(--white); }
.contact-panel :focus-visible { outline-color: var(--black); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 142px; display: flex; align-items: center; gap: 34px; }
.footer-inner .brand { font-size: 21px; }
.footer-inner p { color: var(--muted); font-size: 11px; }
.back-top { margin-left: auto; }
@media (max-width: 1000px) {
  .header-inner { gap: 20px; }
  .navigation { gap: 22px; }
  .hero { padding-top: 64px; }
  .hero-intro { font-size: 16px; max-width: 590px; }
  .projects-grid { gap: 16px; }
  .project-content { padding: 20px; }
  .project-title h3 { font-size: 20px; }
  .project-content > p { font-size: 13px; }
  .about-grid { gap: 35px; }
  .terminal-body { padding-inline: 20px; }
  .terminal-flow { gap: 6px; font-size: 11px; }
}
@media (max-width: 800px) and (min-width: 701px) {
  .header-inner { padding-left: 15px; }
  .brand { font-size: 20px; gap: 7px; }
  .brand img { width: 34px; height: 34px; }
  .navigation { gap: 18px; font-size: 12px; }
  .navigation .nav-contact { padding: 12px 14px; gap: 12px; }
  .section-heading { gap: 26px; }
  .section-heading > p { max-width: 260px; font-size: 13px; }
  .project-title h3 { font-size: 18px; }
  .project-title > .icon { width: 16px; height: 16px; }
  .project-content { padding: 17px; }
  .project-link { font-size: 11px; gap: 8px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-copy { max-width: 570px; }
  .terminal { max-width: 570px; width: 100%; }
}
@media (max-width: 700px) {
  :root { --gutter: 22px; --header-height: 81px; }
  html:not(.js) { --header-height: 139px; }
  .section-pad { padding-block: 60px; }
  .site-header { padding-top: 15px; }
  .header-inner { min-height: 66px; flex-wrap: wrap; gap: 0; padding: 10px 13px; border-radius: 12px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand img { width: 33px; height: 33px; }
  .menu-toggle:not([hidden]) { margin-left: auto; padding: 10px 0 10px 14px; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--white); font-size: 12px; }
  .menu-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .navigation { width: 100%; order: 3; justify-content: space-between; gap: 10px; margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 9px; font-size: 11px; }
  .navigation .nav-contact { padding: 10px 0; border-radius: 0; background: transparent; color: var(--lime); gap: 6px; }
  .navigation .nav-contact:hover { background: transparent; }
  .nav-contact .icon { width: 14px; height: 14px; }
  .js .navigation { display: none; }
  .js .navigation.is-open { display: flex; }
  .hero { padding-top: 57px; }
  .hero h1 { font-size: clamp(44px, 12.7vw, 72px); line-height: 1.1; letter-spacing: -.035em; }
  .hero-signature { margin-top: 13px; font-size: 18px; }
  .hero-intro { max-width: 430px; margin-top: 22px; font-size: 14px; line-height: 1.75; }
  .hero-actions { gap: 11px; margin-top: 25px; }
  .button { min-height: 49px; padding: 13px 18px; font-size: 12px; gap: 17px; }
  .hero-actions .button { flex: 0 1 auto; }
  .service-nav { margin-top: 43px; padding-block: 19px; gap: 0; }
  .service-nav a { flex-direction: column; gap: 11px; font-size: 11px; padding-inline: 6px; line-height: 1.5; }
  .service-nav .icon { width: 21px; height: 21px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading h2 { font-size: 32px; }
  .section-heading > p { font-size: 13px; margin-top: 18px; max-width: 330px; }
  .projects-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-content { padding: 24px; }
  .project-title h3 { font-size: 24px; }
  .project-title > .icon { width: 20px; height: 20px; }
  .project-content > p { font-size: 14px; }
  .project-link { font-size: 12px; padding-top: 25px; }
  .services { padding-top: 15px; }
  .service-row { grid-template-columns: 27px 1fr; gap: 17px; padding: 24px 0; align-items: start; }
  .service-icon.icon { width: 23px; height: 23px; margin-top: 2px; }
  .service-row h3 { font-size: 19px; line-height: 1.35; }
  .service-row p { font-size: 13px; margin-top: 8px; }
  .service-arrow { display: none; }
  .about { padding-top: 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-copy h2 { font-size: 30px; }
  .about-copy > p { font-size: 13px; margin-top: 21px; }
  .about-copy .text-link { margin-top: 17px; }
  .terminal-bar { padding: 16px; gap: 12px; font-size: 10px; }
  .terminal-body { padding: 24px 18px; }
  .terminal-body pre, .terminal-comment { font-size: 11px; }
  .terminal-flow { font-size: 10px; gap: 6px; }
  .terminal-flow .icon { width: 12px; height: 12px; }
  .terminal-note { font-size: 10px; }
  .contact { padding-top: 10px; }
  .contact-panel { padding: 39px 23px; border-radius: 15px; }
  .contact-panel h2 { font-size: 29px; line-height: 1.14; }
  .contact-status { font-size: 13px; margin: 21px auto 25px; }
  .footer-inner { padding-block: 28px; gap: 18px; min-height: 0; flex-wrap: wrap; }
  .footer-inner .brand { font-size: 18px; }
  .footer-inner p { font-size: 10px; margin-left: auto; }
  .back-top { width: 100%; padding-top: 19px; border-top: 1px solid var(--line); margin-top: 2px; justify-content: space-between; }
}
@media (max-width: 360px) {
  :root { --gutter: 18px; }
  .header-inner { padding-inline: 11px; }
  .brand { font-size: 19px; }
  .hero h1 { font-size: 43px; }
  .hero-signature { font-size: 16px; }
  .hero-intro { font-size: 13px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { font-size: 11px; padding-inline: 13px; gap: 11px; }
  .service-nav a { font-size: 10px; padding-inline: 4px; }
  .section-heading h2 { font-size: 29px; }
  .project-content { padding: 21px; }
  .service-row { gap: 13px; }
  .service-row h3 { font-size: 17px; }
  .about-copy h2 { font-size: 27px; }
  .terminal-body { padding-inline: 15px; }
  .terminal-bar { gap: 9px; font-size: 9px; }
  .contact-panel { padding-inline: 18px; }
  .contact-panel h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Two bounded geometric echoes of the approved C, moving only in view. */
.hero-atmosphere { position: absolute; inset: 0 -12px 80px; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient-mark { position: absolute; fill: none; stroke-width: .65; animation: ambient-drift 17s ease-in-out infinite alternate; animation-play-state: paused; }
.ambient-mark-one { width: 215px; height: 260px; top: 40px; left: 1%; stroke: #b86df0; opacity: .22; transform: rotate(-14deg); }
.ambient-mark-two { width: 150px; height: 180px; right: 0; bottom: 25px; stroke: var(--lime); opacity: .14; transform: rotate(12deg); animation-delay: -9s; }
.hero.is-in-view .ambient-mark { animation-play-state: running; }
.terminal-atmosphere { position: absolute; inset: 48px 0 0; overflow: hidden; z-index: -1; pointer-events: none; }
.terminal-atmosphere span { position: absolute; width: 290px; height: 290px; border: 1px solid #a151d8; border-radius: 50%; opacity: .15; right: -130px; top: -155px; animation: terminal-orbit 14s ease-in-out infinite alternate; animation-play-state: paused; }
.terminal-atmosphere span + span { width: 340px; height: 340px; right: -230px; top: 50px; border-color: var(--lime); opacity: .075; animation-delay: -7s; }
.terminal.is-in-view .terminal-atmosphere span { animation-play-state: running; }
.terminal-playback[hidden] { display: none; }
.terminal.is-enhanced .terminal-static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.terminal-playback { height: 284px; overflow: hidden; font: 12px/1.68 'Cascadia Code', Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; scroll-behavior: smooth; mask-image: linear-gradient(to bottom, transparent 0, #000 9%, #000 100%); transition: opacity 160ms ease, transform 160ms ease; }
.terminal-playback.is-resetting { opacity: 0; transform: translateY(-7px); }
.terminal-line { min-height: 21px; }
.terminal-line-command { color: var(--white); margin-top: 9px; }
.terminal-line-command::before { content: 'cyphex@workspace:~$ '; color: var(--lime); }
.terminal-line-response { color: var(--lilac); }
.terminal-line-response::before { content: '↳ '; color: #71e1ef; }
.terminal-line-comment { color: #bcaecc; }
.terminal-line-comment:last-child:not(:first-child) { margin-top: 20px; }
.terminal-line-code-c,
.terminal-code-c { color: #bfeff4; }
.terminal-line-code-c::before { content: 'C  '; color: #71e1ef; font-weight: 700; }
.terminal-line-code-docker,
.terminal-code-docker { color: #d7b8f2; }
.terminal-line-code-docker::before { content: 'DK '; color: #bd83f0; font-weight: 700; }
.terminal-line-delimiter { color: #756981; }
.terminal-line-delimiter::before { content: '   '; }
.terminal-line-system { color: #91a6ad; }
.terminal-line-system::before { content: '◌ '; color: #71e1ef; }
.terminal-line.is-typing::after { content: ''; display: inline-block; width: 7px; height: 13px; margin-left: 3px; vertical-align: -2px; background: var(--lime); box-shadow: 0 0 8px rgba(201, 255, 0, .42); animation: cursor-blink .72s steps(1) infinite; }
.terminal:not(.is-in-view) .terminal-line.is-typing::after { animation-play-state: paused; }
@keyframes cursor-blink { 50% { opacity: 0; } }
@keyframes ambient-drift { to { transform: translate(15px, -20px) rotate(4deg); } }
@keyframes terminal-orbit { to { transform: translate(-28px, 35px) rotate(12deg); } }
@media (max-width: 700px) {
  .ambient-mark-one { left: -62px; width: 145px; height: 175px; opacity: .16; top: 20px; }
  .ambient-mark-two { right: -38px; width: 100px; height: 125px; bottom: 46px; opacity: .1; }
  .terminal-screen { min-height: 250px; }
  .terminal-playback { height: 274px; font-size: 10.5px; }
  .terminal-line { min-height: 22px; }
}

/* Motion language: diagonal assembly, image curtains and travelling rules. */
:root { --motion-ease: cubic-bezier(.16, 1, .3, 1); }
.hero-period { display: inline-block; }
.header-inner { position: relative; }
.header-inner::after { content: ''; position: absolute; height: 2px; left: 16px; right: 16px; bottom: -1px; background: var(--lime); transform: scaleX(var(--reading-progress, 0)); transform-origin: left; pointer-events: none; }
.navigation { order: 1; }
.navigation a:not(.nav-contact) { position: relative; }
.navigation a:not(.nav-contact)::after { content: ''; position: absolute; bottom: 5px; left: 0; right: 0; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--motion-ease); }
.navigation a[aria-current], .navigation a:focus-visible { color: var(--lime); }
.navigation a:is(:hover, :focus-visible, [aria-current]):not(.nav-contact)::after { transform: scaleX(1); }
.navigation .nav-contact[aria-current] { color: var(--black); }
.motion-toggle { order: 2; display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: -16px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); transition: color 180ms, border-color 180ms; }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover, .motion-toggle:focus-visible { color: var(--lime); border-color: var(--lilac); }
.motion-toggle .icon { width: 18px; height: 18px; }
.motion-play, .motion-toggle[aria-pressed="true"] .motion-pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-play { display: block; }
.button, .nav-contact { transition: background 180ms, border-color 180ms, color 180ms, transform 180ms var(--motion-ease); }
.button:active, .nav-contact:active { transform: scale(.97); }
.button .icon, .text-link .icon, .project-link .icon, .project-title > .icon, .nav-contact .icon { transition: transform 280ms var(--motion-ease); }
.button:is(:hover, :focus-visible) .icon, .project-card:is(:hover, :focus-visible) .project-link .icon { transform: translateX(4px); }
.text-link:is(:hover, :focus-visible) .icon, .project-card:is(:hover, :focus-visible) .project-title > .icon, .nav-contact:is(:hover, :focus-visible) .icon { transform: translate(3px, -3px); }
.service-nav a .icon { transition: transform 300ms var(--motion-ease), color 180ms; }
.service-nav a:is(:hover, :focus-visible) .icon { transform: translateY(-4px); color: var(--lime); }
.project-preview { position: relative; isolation: isolate; }
.project-preview img { transition: transform 550ms var(--motion-ease); }
.project-preview::after { content: ''; position: absolute; inset: 0; background: var(--lime); transform: translateX(-102%); pointer-events: none; }
.project-card:nth-child(2) .project-preview::after { background: var(--lilac); }
.project-preview.motion-arrived::after { animation: project-curtain 720ms var(--motion-ease) both; }
.section-heading { position: relative; }
.section-heading::after { content: ''; position: absolute; width: 48px; height: 2px; bottom: -14px; left: 0; background: var(--lilac); transform-origin: left; }
.section-heading.motion-arrived::after { animation: rule-arrival 600ms var(--motion-ease) both; }
.service-row { position: relative; }
.service-row::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: var(--lilac); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.service-row.motion-arrived::after { animation: service-rule 900ms var(--motion-ease) both; }
.terminal-flow > span { position: relative; padding-bottom: 5px; transition: color 220ms; }
.terminal-flow > span::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 350ms var(--motion-ease); }
.terminal-flow > .is-current { color: var(--lime); }
.terminal-flow > .is-complete { color: var(--white); }
.terminal-flow > :is(.is-current, .is-complete)::after { transform: scaleX(1); }
.terminal-flow > .is-current + .icon { animation: flow-forward 900ms ease-in-out 2; }
.contact-panel { position: relative; isolation: isolate; overflow: hidden; }
.contact-panel::before, .contact-panel::after { content: ''; position: absolute; width: 135px; height: 190px; border: 1px solid #09090925; transform: skewX(-15deg); z-index: -1; pointer-events: none; }
.contact-panel::before { left: -85px; top: 24px; }
.contact-panel::after { right: -85px; bottom: 24px; }
.contact-panel.motion-arrived::before, .contact-panel.motion-arrived::after { animation: contact-bracket 700ms var(--motion-ease) both; }
.page-hidden *, .page-hidden *::before, .page-hidden *::after { animation-play-state: paused !important; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition: none !important; }
.motion-paused { scroll-behavior: auto; }
.motion-paused .project-preview::after { transform: translateX(-102%); }
.motion-paused .project-preview img { transform: none !important; }
@keyframes project-curtain { 0% { transform: translateX(-120%) skewX(-12deg); } 38% { transform: translateX(0) skewX(0); } 100% { transform: translateX(120%) skewX(-12deg); } }
@keyframes rule-arrival { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes service-rule { 0% { transform: scaleX(0); opacity: 1; } 65% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes flow-forward { 50% { transform: translateX(3px); color: var(--lime); } }
@keyframes contact-bracket { from { opacity: 0; transform: translateY(26px) skewX(-15deg); } to { opacity: 1; transform: translateY(0) skewX(-15deg); } }
@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-preview img { transform: scale(1.035); }
}
@media (max-width: 800px) and (min-width: 701px) {
  .header-inner { gap: 14px; }
  .navigation { gap: 14px; }
  .motion-toggle { margin-left: -4px; }
}
@media (max-width: 700px) {
  .motion-toggle { order: 1; margin-left: auto; width: 44px; height: 44px; padding: 10px; border-color: transparent; }
  .menu-toggle:not([hidden]) { order: 2; margin-left: auto; padding-left: 8px; }
  .navigation { order: 3; }
  .navigation .nav-contact[aria-current] { color: var(--lime); }
  .contact-panel::before { left: -112px; }
  .contact-panel::after { right: -112px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-preview img { transform: none !important; }
}

/* Progressive scroll entrances: content stays visible without JavaScript. */
.js .scroll-fade {
  --fade-y: 14px;
  opacity: 0;
  transform: translate3d(0, var(--fade-y), 0);
  transition:
    opacity 360ms cubic-bezier(.4, 0, 1, 1),
    transform 360ms cubic-bezier(.4, 0, 1, 1);
}
.js .scroll-fade[data-fade-origin="top"] { --fade-y: -14px; }
.js .scroll-fade[data-scroll-direction="left"] { transform: translate3d(-14px, 0, 0); }
.js .scroll-fade[data-scroll-direction="right"] { transform: translate3d(14px, 0, 0); }
.js .scroll-fade.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-duration: 480ms;
  transition-timing-function: var(--motion-ease);
  transition-delay: var(--scroll-fade-delay, 0ms);
}
.motion-paused .scroll-fade,
.page-hidden .scroll-fade { transition: none; }
.motion-paused .scroll-fade { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .scroll-fade { opacity: 1; transform: none; transition: none; }
}

/* Equal project cards: screenshot above, description and actions below. */
.projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 24px; }
.project-card { border-color: #383040; }
.project-card:focus-within { border-color: var(--lilac); }
.project-preview { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: #0e0c12; }
.project-preview:focus-visible { outline-offset: -5px; }
.project-content { padding: 26px; }
.project-title h3 { font-size: 24px; }
.project-content > p { font-size: 14px; line-height: 1.7; margin-top: 13px; }
.project-chips { margin-top: 20px; gap: 8px; }
.project-chips span { font-size: 12px; line-height: 1.5; padding: 4px 9px; }
.project-content > .project-credit { margin-top: 16px; font-size: 12px; color: #c8bfd0; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; padding-top: 24px; }
.project-link { min-height: 44px; margin: 0; padding: 0; justify-content: flex-start; font-size: 14px; gap: 14px; }
.project-external { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 13px; color: var(--muted); text-underline-offset: 5px; }
.project-external:hover, .project-external:focus-visible { color: var(--white); text-decoration: underline; }
.project-external .icon { width: 15px; height: 15px; }
.project-availability { margin-left: auto; font-size: 12px; color: var(--muted); }
.project-dialog { width: min(1120px, calc(100% - 40px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid #685279; border-radius: 15px; background: var(--surface); color: var(--white); overscroll-behavior: contain; }
.project-dialog::backdrop { background: #000d; }
.project-dialog[open] { animation: case-open 220ms var(--motion-ease); }
.project-dialog-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.project-dialog-close { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid #514957; border-radius: 8px; background: var(--black); color: var(--white); }
.project-dialog-close .icon { width: 18px; height: 18px; }
.project-dialog-close:hover { border-color: var(--lilac); }
.project-dialog-content { padding: 32px; }
.case-intro h2 { font-size: clamp(27px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.15; }
.case-intro > p { max-width: 72ch; margin-top: 18px; color: #c8bfd0; font-size: 16px; }
.case-features { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 24px 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.7; }
.case-features li::marker { color: var(--lime); }
.case-intro > .case-note { font-size: 13px; max-width: 85ch; }
.case-intro .text-link { font-size: 14px; color: var(--lime); }
.case-screen { margin-top: 28px; }
.case-screen img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--black); }
.case-screen figcaption { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
html.project-open { overflow: hidden; }
@keyframes case-open { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-content { padding: 23px; }
  .project-title h3 { font-size: 24px; }
  .project-content > p { font-size: 14px; }
}
@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr; gap: 26px; }
  .project-content { padding: 23px; }
  .project-actions { gap: 4px 18px; padding-top: 18px; }
  .project-availability { margin-left: 0; }
  .project-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .project-dialog-toolbar { padding: 10px 14px; font-size: 12px; }
  .project-dialog-content { padding: 24px 18px; }
  .case-intro > p { font-size: 14px; }
  .case-features { display: block; font-size: 13px; }
  .case-features li + li { margin-top: 8px; }
}

/* Reference-led expansion: a violet/cyan signal field with the lime C at its core. */
body { position: relative; isolation: isolate; background: #080610; }
.page-atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #080610; }
.aura { position: absolute; width: 100vw; height: 110vh; opacity: .8; animation: atmosphere-shift 22s ease-in-out infinite alternate; }
.aura-violet { top: -25vh; right: -30vw; background: radial-gradient(ellipse at center, #7026b959, #34135b26 43%, transparent 68%); }
.aura-blue { bottom: -55vh; left: -35vw; background: radial-gradient(ellipse at center, #20679c38, #17284b19 44%, transparent 68%); animation-delay: -11s; }
html:not(.js) .aura { animation-play-state: paused; }
.header-inner { border-color: #66518b; background: #100b1d; box-shadow: none; }
.navigation a { color: #ded5ec; }
.hero { display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; column-gap: 22px; padding-top: 52px; text-align: left; }
.hero-copy { position: relative; z-index: 2; padding-block: 25px 40px; }
.hero h1 { font-size: clamp(66px, 6.7vw, 92px); line-height: 1.02; letter-spacing: -.04em; }
.hero-signature { margin-top: 22px; font-size: clamp(28px, 3vw, 40px); line-height: 1.18; font-weight: 600; letter-spacing: -.03em; }
.hero-signature span { color: var(--cyan); }
.hero-intro { max-width: 455px; margin: 24px 0 0; font-size: 15px; color: #c8bfd8; line-height: 1.8; }
.hero-actions { justify-content: flex-start; margin-top: 28px; gap: 12px; }
.button-lime { border-color: var(--lime); box-shadow: 0 8px 24px #05031080; }
.button-outline { background: #1d1235; border-color: #8661b7; }
.button-outline:hover { background: #30204b; }
.service-nav { grid-column: 1 / -1; width: 100%; margin-top: 12px; border: 1px solid #5a4479; border-radius: 12px; padding-block: 19px; background: #171024; }
.service-nav a { font-size: 14px; }
.service-nav a + a { border-color: #57416e; }
.service-nav a:nth-child(1) .icon { color: var(--lime); }
.service-nav a:nth-child(2) .icon { color: var(--lilac); }
.service-nav a:nth-child(3) .icon { color: var(--cyan); }
.signal-scene { position: relative; min-width: 0; height: 490px; isolation: isolate; }
.signal-light { position: absolute; inset: 2% 0; z-index: -1; background: radial-gradient(ellipse, #7231ca4d, #29144326 48%, transparent 70%); }
.signal-canvas, .signal-fallback { position: absolute; width: 100%; height: 100%; inset: 0; pointer-events: none; }
.signal-canvas { opacity: 0; }
.signal-ready .signal-canvas { opacity: 1; }
.signal-ready .signal-fallback { visibility: hidden; }
.signal-core { position: absolute; top: 50%; left: 50%; width: 128px; height: 142px; margin: -71px 0 0 -64px; display: grid; place-items: center; border: 1px solid #ba89f2; border-radius: 24px; background: linear-gradient(140deg, #473066, #1f1239 55%, #100b20); box-shadow: 0 22px 42px #05010da6, inset 0 1px 0 #dcc0ff44; transform: rotate(-10deg); animation: core-drift 8s ease-in-out infinite alternate; animation-play-state: paused; }
.signal-core::before { content: ''; position: absolute; inset: -10px; border: 1px solid #a877d84d; border-radius: 29px; }
.signal-core svg { width: 98px; height: 98px; }
.signal-label { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #130d23; border: 1px solid #8260ab; border-radius: 10px; color: #e8e0f4; font-size: 13px; font-weight: 500; animation: node-drift 7s ease-in-out infinite alternate; animation-play-state: paused; }
.signal-label .icon { width: 20px; height: 20px; }
.signal-sites { left: 5%; top: 20%; transform: rotate(-6deg); }
.signal-sites .icon { color: var(--lime); }
.signal-systems { right: 0; top: 32%; transform: rotate(5deg); animation-delay: -3s; }
.signal-systems .icon { color: var(--lilac); }
.signal-ai { right: 6%; bottom: 18%; transform: rotate(-4deg); border-color: #407e92; animation-delay: -5s; }
.signal-ai .icon { color: var(--cyan); }
.signal-caption { position: absolute; left: 10%; bottom: 8%; display: flex; gap: 12px; align-items: center; font-size: 12px; color: #bba8d3; }
.signal-caption span { width: 52px; height: 1px; background: var(--lilac); }
.hero.is-in-view :is(.signal-core, .signal-label) { animation-play-state: running; }
.section-heading h2 { font-size: clamp(30px, 3.3vw, 44px); }
.section-heading > p { color: #c2b5d3; }
.projects-grid { width: min(100%, 1080px); margin-inline: auto; gap: 20px; }
.project-card { border: 1px solid #8d68b5; border-radius: 13px; background: #140d23; transition: border-color 220ms, background 220ms, transform 260ms var(--motion-ease); }
.project-card:nth-child(3n + 2) { border-color: #507f96; }
.project-card:nth-child(3n) { border-color: #849355; }
.project-card:hover, .project-card:focus-within { border-color: var(--lime); background: #1b1130; }
.project-preview { aspect-ratio: 16 / 9; flex-shrink: 0; border-bottom: 1px solid #745390; background: #0c0814; }
.project-preview img { object-fit: cover; object-position: top; }
.project-content { padding: 19px 20px 16px; }
.project-title h3 { font-size: 21px; line-height: 1.2; }
.project-content > p { margin-top: 10px; font-size: 13px; line-height: 1.6; color: #c5b9d5; }
.project-chips { margin-top: 13px; gap: 6px; }
.project-chips span { font-size: 11px; padding: 3px 7px; border-color: #61477e; color: #d5c4ea; background: #231533; }
.project-content > .project-credit { margin-top: 10px; font-size: 11px; color: #baa6cf; }
.project-actions { padding-top: 14px; gap: 0 13px; }
.project-link { font-size: 12px; gap: 9px; }
.project-external, .project-availability { font-size: 11px; }
.project-availability { margin-left: 0; color: #c1b0d2; }
.services { position: relative; }
.service-list { border-top-color: #654780; }
.service-row { border-bottom-color: #54376f; padding-block: 24px; }
.service-row p { color: #bfb0d0; }
.service-icon.icon { padding: 10px; width: 44px; height: 44px; border-radius: 10px; color: var(--lime); background: #25143d; border: 1px solid #6f4594; }
.service-row:nth-child(2n) .service-icon { color: var(--cyan); background: #112735; border-color: #365f75; }
.service-row { grid-template-columns: 44px 1fr 30px; }
.service-arrow { display: none; }
.about { position: relative; }
.about-copy h2 > span { color: var(--cyan); }
.terminal { border-color: #ac70e0; background: #160d25; box-shadow: none; }
.terminal-bar { background: #2a1742; border-bottom-color: #774a9f; }
.contact-panel { background: #23113c; color: var(--white); border: 1px solid #9a69c6; }
.contact-panel h2 { color: var(--white); }
.contact-status { color: #d3c1e2; }
.contact-status strong { color: var(--lime); }
.contact-panel .button-black { background: var(--lime); color: var(--black); }
.contact-panel .button-black:hover { background: var(--white); }
.contact-panel :focus-visible { outline-color: var(--lime); }
.contact-panel::before, .contact-panel::after { border-color: #a777dd66; width: 220px; height: 270px; }
.contact-panel::before { left: -130px; }
.contact-panel::after { right: -130px; }
.site-footer { border-color: #52396c; background: #10091b; }
@keyframes atmosphere-shift { to { transform: translate(9vw, -10vh) scale(1.15); opacity: 1; } }
@keyframes core-drift { to { transform: translateY(-12px) rotate(-4deg); } }
@keyframes node-drift { to { translate: 0 -10px; } }
@media (hover: hover) and (pointer: fine) {
  .project-card:hover { transform: none; }
}
@media (max-width: 1000px) {
  .hero { column-gap: 10px; padding-top: 36px; }
  .hero h1 { font-size: clamp(50px, 7.5vw, 70px); }
  .hero-signature { font-size: 30px; }
  .hero-intro { font-size: 14px; }
  .hero-actions .button { padding-inline: 16px; font-size: 12px; gap: 12px; }
  .signal-scene { height: 420px; }
  .signal-core { scale: .85; }
  .signal-sites { left: 0; top: 18%; }
  .signal-label { font-size: 11px; padding: 10px 12px; gap: 8px; }
  .signal-systems { right: -5px; }
  .signal-ai { right: 0; bottom: 15%; }
  .projects-grid { max-width: 760px; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; text-align: center; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(48px, 13vw, 72px); }
  .hero-signature { font-size: 29px; margin-top: 15px; }
  .hero-signature br { display: none; }
  .hero-intro { max-width: 440px; margin: 19px auto 0; font-size: 14px; line-height: 1.7; }
  .hero-actions { justify-content: center; margin-top: 23px; }
  .signal-scene { width: min(100%, 440px); height: 300px; margin: 15px auto 0; }
  .signal-core { scale: .7; }
  .signal-label { padding: 8px 10px; font-size: 10px; gap: 6px; }
  .signal-label .icon { width: 16px; height: 16px; }
  .signal-sites { top: 14%; left: 0; }
  .signal-systems { right: 0; top: 27%; }
  .signal-ai { bottom: 17%; right: 0; }
  .signal-caption { left: 0; bottom: 9%; font-size: 10px; gap: 8px; }
  .signal-caption span { width: 25px; }
  .service-nav { margin-top: 0; padding-block: 16px; }
  .service-nav a { font-size: 11px; gap: 8px; }
  .projects-grid { width: min(100%, 380px); gap: 20px; }
  .project-content { padding: 18px 20px 14px; }
  .project-title h3 { font-size: 22px; }
  .service-row { grid-template-columns: 38px 1fr; gap: 16px; }
  .service-icon.icon { width: 36px; height: 36px; padding: 7px; }
  .service-row h3 { font-size: 19px; }
  .contact-panel::before { left: -195px; }
  .contact-panel::after { right: -195px; }
}
@media (max-width: 360px) {
  .hero-signature { font-size: 25px; }
  .hero-intro { font-size: 13px; }
  .hero-actions .button { padding-inline: 12px; font-size: 11px; gap: 9px; }
  .signal-scene { height: 265px; }
  .signal-caption { font-size: 9px; }
  .service-nav a { font-size: 10px; }
}
.motion-paused .project-card:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none; }
  .project-card:hover { transform: none; }
}

/* Compact covers expand in place; details remain native without JavaScript. */
.projects-grid { grid-auto-rows: auto; align-items: start; }
.project-card { display: block; }
.project-card[open] { border-color: var(--lime); background: #1b1130; }
.project-summary { display: block; cursor: pointer; list-style: none; }
.project-summary::-webkit-details-marker { display: none; }
.project-summary:focus-visible { outline-offset: -4px; border-radius: 12px; }
.project-cover { position: relative; padding: 17px 16px 0; background: radial-gradient(ellipse at 60% 10%, #5d284f, #201123 75%); }
[data-case="carioca"] .project-cover { background: radial-gradient(ellipse at 60% 10%, #225f6b, #0e252b 75%); }
[data-case="foxy"] .project-cover { background: radial-gradient(ellipse at 60% 10%, #315d4e, #101e1d 75%); }
[data-case="arcane"] .project-cover { background: radial-gradient(ellipse at 60% 10%, #583a9a, #20123d 75%); }
[data-case="darkrune"] .project-cover { background: radial-gradient(ellipse at 60% 10%, #573e85, #19112b 75%); }
.project-cover-screen { width: 100%; height: 100%; min-width: 0; border: 1px solid #d5c5ed55; border-bottom: 0; border-radius: 7px 7px 0 0; overflow: hidden; background: #100c18; box-shadow: 0 8px 24px #0006; transition: transform 350ms var(--motion-ease); }
.project-cover-bar { height: 15px; display: flex; align-items: center; gap: 3px; padding-left: 7px; background: #130f1b; border-bottom: 1px solid #ffffff15; }
.project-cover-bar i { width: 3px; height: 3px; background: #a899bc; border-radius: 50%; }
.project-cover img { height: calc(100% - 15px); width: 100%; object-fit: cover; object-position: top; }
.project-summary-copy { position: relative; padding: 18px 46px 20px 19px; }
.project-summary .project-title { min-height: 52px; align-items: flex-start; }
.project-summary .project-title h3 { font-size: 21px; }
.project-summary .project-chips { margin-top: 8px; }
.project-expand { position: absolute; right: 15px; top: 20px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #7b5b9c; border-radius: 6px; color: var(--lilac); transition: background 180ms, transform 200ms; }
.project-expand .icon { width: 15px; height: 15px; }
.project-card[open] .project-expand { transform: rotate(45deg); color: var(--black); background: var(--lime); border-color: var(--lime); }
.project-reveal .project-content { padding: 0 19px 16px; border-top: 1px solid #72508c; margin-inline: 0; }
.project-reveal .project-content > p { padding-top: 12px; margin-top: 0; }
.project-reveal .project-content > .project-credit { padding-top: 8px; }
.project-card[open] .project-reveal { animation: project-description-in 200ms var(--motion-ease); }
@keyframes project-description-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-cover-screen { transform: none; }
  .project-card:hover .project-preview img { transform: none; }
}
/* Compact project inspection: stable grid with a travelling toxic edge. */
@property --edge-turn { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.project-card { position: relative; isolation: isolate; }
.project-card::after { content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--edge-turn), transparent 10%, #8f49d8 32%, #c9ff00 42%, #71e1ef 48%, transparent 62%); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; animation: toxic-edge 7s linear infinite; }
.project-card:nth-child(2n)::after { animation-delay: -3s; }
.project-card:hover::after, .project-card:focus-within::after { padding: 2px; }
.project-summary-copy { padding: 16px 58px 17px 18px; }
.project-summary .project-title { min-height: 48px; }
.project-summary .project-title h3 { font-size: 20px; }
.project-chips span { color: #eee3ff; border-color: #8a68a9; background: #302044; font-size: 12px; }
.project-expand { width: 36px; height: 36px; right: 14px; top: 16px; color: #d4ff55; border-color: #8caa39; background: #202817; }
.project-summary:hover .project-expand, .project-summary:focus-visible .project-expand { background: #c9ff00; color: #101509; transform: rotate(90deg); }
.project-external, .project-availability, .case-screen figcaption, .project-dialog-toolbar { color: #dbcee9; }
.project-dialog { width: min(720px, calc(100% - 32px)); max-height: min(760px, calc(100dvh - 48px)); border-color: #a6bc50; }
.project-dialog-content { padding: 22px 26px 26px; }
.project-dialog-toolbar { padding: 8px 18px; }
.case-intro h2 { font-size: clamp(24px, 3vw, 30px); }
.case-intro > p { margin-top: 12px; font-size: 14px; line-height: 1.65; color: #e0d4ec; }
.case-features { display: grid; gap: 3px; margin: 14px 0; font-size: 13px; }
.case-intro > .case-note { font-size: 12px; }
.case-screen { margin-top: 20px; }
.case-screen img { max-height: 280px; object-fit: contain; }
.case-screen figcaption { margin-top: 7px; }
@keyframes toxic-edge { to { --edge-turn: 360deg; } }
.motion-paused .project-card::after, .page-hidden .project-card::after, .project-card.edge-offscreen::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .project-card::after { animation: none; } }
@media (max-width: 700px) {
  .project-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 32px); }
  .project-dialog-content { padding: 18px; }
  .case-screen img { max-height: 220px; }
}

/* A quiet wave field spans every section; typography stays in the foreground. */
.page-waves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .2; }
.wave-band { stroke: url(#page-wave-ink); stroke-width: 1; animation: page-wave-drift 24s ease-in-out infinite alternate; }
.wave-band-bottom { opacity: .65; animation-duration: 31s; animation-delay: -12s; }
@keyframes page-wave-drift { from { transform: translate(-35px, -25px) rotate(-3deg); } to { transform: translate(30px, 35px) rotate(3deg); } }
.motion-paused .wave-band, .page-hidden .wave-band, html:not(.js) .wave-band { animation-play-state: paused; }
.hero-copy { padding-block: 28px 38px; }
.hero h1 { font-size: clamp(60px, 6vw, 82px); letter-spacing: -.035em; }
.hero-signature { margin-top: 26px; font-size: clamp(28px, 3.1vw, 43px); line-height: 1.16; letter-spacing: -.035em; }
.hero-signature .signature-software { color: #f7f7f2; }
.hero-signature .signature-automation { color: #d7b5ff; }
.hero-intro { max-width: 430px; font-size: 17px; line-height: 1.6; color: #e4dcec; margin-top: 25px; text-wrap: pretty; }
.hero-intro strong { color: #deff87; }
.hero-scope { display: block; margin-top: 12px; font-size: 14px; line-height: 1.75; color: #c4b8d4; }
.hero-actions { align-items: center; gap: 18px; margin-top: 27px; }
.hero-contact { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; font-weight: 500; color: #dbcaed; }
.hero-contact .icon { width: 14px; height: 14px; color: #caa0f1; }
.hero-contact:hover { color: #fff; }
.contact-dot { width: 5px; height: 5px; border-radius: 50%; background: #caa0f1; }
.project-card[data-case="cine"] { --project-ink: #ffdb89; --project-tag: #33271c; --project-tag-border: #886941; }
.project-card[data-case="carioca"] { --project-ink: #a5edf4; --project-tag: #142d35; --project-tag-border: #467d87; }
.project-card[data-case="foxy"] { --project-ink: #ffe16a; --project-tag: #183429; --project-tag-border: #688a4b; }
.project-card[data-case="arcane"] { --project-ink: #dfb5ff; --project-tag: #30203f; --project-tag-border: #9164ac; }
.project-card[data-case="darkrune"] { --project-ink: #d2ff62; --project-tag: #282036; --project-tag-border: #798b48; }
.project-chips span { color: var(--project-ink); background: var(--project-tag); border-color: var(--project-tag-border); font-weight: 700; font-size: 12px; letter-spacing: .01em; }
@media (max-width: 1000px) and (min-width: 701px) {
  .hero h1 { font-size: clamp(48px, 6.3vw, 65px); }
  .hero-signature { font-size: 29px; }
  .hero-intro { font-size: 15px; }
  .hero-actions { gap: 8px 14px; }
}
@media (max-width: 700px) {
  .hero-copy { padding: 0; text-align: left; }
  .hero h1 { font-size: clamp(46px, 12vw, 72px); }
  .hero-signature { font-size: clamp(26px, 7.7vw, 39px); margin-top: 21px; }
  .hero-signature br { display: block; }
  .hero-intro { margin: 22px 0 0; font-size: 16px; }
  .hero-scope { font-size: 13px; }
  .hero-actions { justify-content: flex-start; gap: 10px 16px; }
  .hero-actions .button { font-size: 13px; padding-inline: 17px; }
  .page-waves { opacity: .16; }
}
@media (prefers-reduced-motion: reduce) { .wave-band { animation: none; } }

/* Reference: confident display name, airy supporting type and a focused violet field. */
.hero-copy::before { content: ''; position: absolute; z-index: -1; inset: -30px 0; pointer-events: none; background: radial-gradient(ellipse at 32% 38%, #7543a52e, #42256612 52%, transparent 73%); }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 6.6vw, 94px); letter-spacing: -.04em; line-height: 1.04; }
.hero h1 .hero-period { color: #c9ff00; }
.hero-signature { margin-top: 27px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.15; letter-spacing: -.035em; font-weight: 300; }
.hero-signature .signature-software { color: #f7f3fb; font-weight: 600; }
.hero-signature .signature-automation, .hero-signature > span:last-child { color: #dcc5f1; font-weight: 300; }
.hero-intro { margin-top: 27px; max-width: 460px; font-size: 16px; font-weight: 400; line-height: 1.7; color: #dfd5e8; }
.hero-intro strong { color: #f4eef9; font-weight: 600; }
.hero-scope { margin-top: 9px; font-size: 14px; color: #bcaecb; line-height: 1.75; }
.hero-actions { margin-top: 30px; }
.hero-actions .button-lime { padding-inline: 24px; border-radius: 14px; }
.page-waves { opacity: .12; mask-image: linear-gradient(90deg, #0003, #000 70%); }
@media (max-width: 1000px) and (min-width: 701px) {
  .hero h1 { font-size: clamp(48px, 6.3vw, 65px); }
  .hero-signature { font-size: 32px; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(48px, 13.5vw, 76px); }
  .hero-signature { font-size: clamp(29px, 8.4vw, 42px); margin-top: 23px; }
  .hero-intro { font-size: 15px; margin-top: 23px; }
  .hero-scope { font-size: 13px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button-lime { padding-inline: 18px; }
  .page-waves { opacity: .1; }
}
/* Underscore signature and a cut-corner project action. */
.js .hero-period { display: none; }
body, .page-atmosphere { background: #08090b; }
.aura-violet, .aura-blue, .hero-copy::before { display: none; }
.signal-light { background: none; }
.hero-signature .signature-automation, .hero-signature > span:last-child { color: #d6d8dd; }
.hero-intro { color: #d7d9dd; }
.hero-scope { color: #b0b5be; }
.hero-actions { gap: 14px 23px; }
.hero-actions .project-cta { position: relative; padding: 0 0 0 20px; min-height: 54px; gap: 22px; border: 0; border-radius: 0; background: #c9ff00; color: #111609; font-weight: 700; font-size: 14px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); box-shadow: none; }
.project-cta-arrow { display: grid; place-items: center; width: 53px; align-self: stretch; border-left: 1px solid #11160940; background: #1116090c; transition: background 180ms; }
.project-cta-arrow .icon { width: 20px; height: 20px; }
.project-cta:hover { background: #dcff65; }
.project-cta:hover .project-cta-arrow { background: #11160918; }
.project-cta:focus-visible { outline: none; background: #fff; }
.project-cta:focus-visible::after { content: ''; position: absolute; inset: 4px; border: 2px solid #111609; pointer-events: none; }
.hero-contact { color: #e0e2e6; font-size: 13px; gap: 10px; padding-block: 8px; border-bottom: 1px solid #707982; transition: border-color 180ms, color 180ms; }
.hero-contact .icon { color: #c9ff00; }
.hero-contact:hover { border-color: #c9ff00; color: #c9ff00; }
@media (max-width: 700px) { .hero-actions { gap: 10px 20px; } .hero-actions .project-cta { font-size: 13px; padding-left: 16px; gap: 16px; } }

/* Cipher glyphs overlay the real letters, preserving proportional typography. */
.decode-glyph { position: relative; display: inline-block; }
.decode-cipher { position: absolute; inset: 0; text-align: center; color: #c9ff00; font-weight: 400; overflow: hidden; }
.decode-glyph.is-coded .decode-original { visibility: hidden; }
.motion-paused .decode-cipher { display: none; }
.motion-paused .decode-glyph .decode-original { visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .decode-cipher { display: none; }
  .decode-glyph.is-coded .decode-original { visibility: visible; }
}
.hero-signature .decode-glyph, .hero-signature .decode-original { color: inherit; }
.hero-signature .decode-cipher { color: #c9ff00; }

/* Portfolio as open terminal windows: one neon outline, no card surface. */
.projects-grid { gap: 26px; }
.projects-grid .project-card,
.projects-grid .project-card:is(:hover, :focus-within, [open]) {
  background: transparent; border: 0; border-radius: 12px; box-shadow: none;
}
.project-card::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--project-ink, #c9ff00); border-radius: inherit; opacity: .38; pointer-events: none; }
.project-card::after { background: conic-gradient(from var(--edge-turn), transparent 12%, var(--project-ink, #c9ff00) 38%, #f1ffe1 45%, transparent 62%); }
.projects-grid .project-preview.project-cover { padding: 10px 10px 0; background: transparent; border: 0; aspect-ratio: 16 / 10; }
.project-cover-screen { border: 0; border-radius: 6px; box-shadow: none; background: #090c10; }
.project-cover-bar { height: 29px; padding: 0 10px; gap: 5px; border: 0; background: #171b20; }
.project-cover-bar i { width: 6px; height: 6px; background: #ff766e; }
.project-cover-bar i:nth-child(2) { background: #efc15b; }
.project-cover-bar i:nth-child(3) { background: #8bd483; }
.terminal-window-name { margin-left: 8px; color: #b9c0c9; font: 10px/1 var(--body); letter-spacing: .05em; }
.terminal-window-prompt { margin-left: auto; color: var(--project-ink); font: 600 12px/1 var(--body); }
.project-cover img { height: calc(100% - 29px); object-fit: cover; }
.project-summary-copy { padding: 18px 52px 21px 18px; background: transparent; }
.project-summary .project-title { min-height: 48px; }
.project-summary .project-title h3 { color: #f4f5f6; font-size: 20px; }
.project-summary .project-chips { margin-top: 5px; gap: 7px; }
.project-chips span { background: transparent; border: 1px solid var(--project-tag-border); border-radius: 4px; padding: 3px 7px; color: var(--project-ink); font-size: 11px; }
.project-expand { top: 18px; right: 14px; width: 30px; height: 30px; background: transparent; border: 0; color: var(--project-ink); }
.project-summary:hover .project-expand, .project-summary:focus-visible .project-expand { color: var(--project-ink); background: transparent; }
.project-summary:focus-visible { outline: 2px solid var(--project-ink); outline-offset: -4px; }
@media (max-width: 700px) { .projects-grid { gap: 24px; } }



/* Centered dither hero — the opening composition follows the supplied reference. */
.hero {
  display: flex;
  min-height: max(700px, calc(100svh - var(--header-height) - 18px));
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding-block: 54px 24px;
  text-align: center;
}
.hero-copy {
  display: flex;
  width: min(100%, 860px);
  flex-direction: column;
  align-items: center;
  padding-block: 28px 38px;
  z-index: 4;
}
.hero-logo-mark { width: 74px; height: 74px; margin-bottom: 20px; padding: 10px; border: 1px solid #73529c; border-radius: 17px; background: #100b1d; box-shadow: 0 18px 50px #000b; transform: rotate(-7deg); }
.hero-logo-mark img { width: 100%; height: 100%; }
.hero h1 { font-size: clamp(64px, 9vw, 128px); line-height: .94; letter-spacing: -.06em; text-align: center; text-shadow: 0 8px 40px #000; }
.hero-signature { margin-top: 25px; font-size: clamp(27px, 4vw, 52px); line-height: 1.08; letter-spacing: -.045em; text-align: center; }
.hero-signature .signature-software { color: #f7f7f2; }
.hero-signature .signature-automation, .hero-signature > span:last-child { color: #d7d9dd; }
.hero-intro { max-width: 600px; margin: 22px auto 0; color: #e1dee7; font-size: 15px; line-height: 1.7; text-align: center; }
.hero-scope { display: block; margin-top: 8px; color: #bab5c1; font-size: 13px; }
.hero-legend { margin-top: 22px; color: var(--lime); font: 600 12px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.hero-legend .scramble-char { min-width: .34em; }
.hero-actions { justify-content: center; margin-top: 28px; }
.signal-scene { position: absolute; top: calc(-1 * var(--header-height)); right: 0; bottom: 0; left: 0; z-index: 0; width: auto; height: auto; margin: 0; pointer-events: auto; }
.signal-light, .signal-label, .signal-caption, .signal-lockup { display: none; }
.signal-canvas, .signal-fallback { display: none; }
.dither-canvas { opacity: .78; mix-blend-mode: screen; }
.page-waves { opacity: .035; }
.service-nav { width: 100%; margin-top: auto; z-index: 4; }
.hero-copy::before { content: ''; position: absolute; z-index: -1; inset: -110px -180px; pointer-events: none; background: radial-gradient(ellipse at center, #080610ec 0%, #080610c9 38%, #08061055 64%, transparent 78%); }

@media (max-width: 700px) {
  .hero { min-height: max(650px, calc(100svh - var(--header-height) - 12px)); padding-block: 42px 18px; }
  .hero-copy { width: 100%; padding-block: 22px 28px; }
  .hero-logo-mark { width: 60px; height: 60px; margin-bottom: 17px; padding: 8px; }
  .hero h1 { max-width: 100%; font-size: clamp(46px, 15vw, 74px); overflow-wrap: anywhere; }
  .hero-signature { width: 100%; max-width: 350px; margin-top: 19px; font-size: clamp(24px, 7.5vw, 36px); overflow-wrap: anywhere; }
  .hero-intro { width: 100%; max-width: 350px; margin-top: 18px; font-size: 14px; overflow-wrap: anywhere; }
  .hero-scope { font-size: 12px; }
  .hero-legend { margin-top: 18px; font-size: 10px; }
  .hero-actions { margin-top: 23px; }
  .signal-scene { height: auto; }
  .service-nav { margin-top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-mark { transform: none; }
  .dither-canvas { opacity: .35; }
}

/* Services: a stronger editorial heading over the continuous topography. */
.services .section-heading {
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(189, 131, 240, .36);
}
.services .section-heading h2 {
  max-width: 720px;
  font-size: clamp(3.5rem, 6.2vw, 6rem);
  line-height: .94;
  letter-spacing: -.04em;
}
.services .section-heading h2 .services-title-accent { color: #bd83f0; }
.services .section-heading h2 .services-title-dot { color: #c9ff00; }
.services .section-heading::after {
  width: 112px;
  bottom: -1px;
  background: linear-gradient(90deg, #c9ff00, #71e1ef 48%, #8a18db);
}
.services .section-heading > p {
  max-width: 330px;
  margin: 0;
  padding: 12px 0 12px 24px;
  border-left: 1px solid rgba(189, 131, 240, .48);
  color: #d8cde3;
  font-size: 15px;
  line-height: 1.75;
}
.services .service-list { border-top: 0; }
.services .service-row {
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  padding: 29px 16px;
  border-bottom-color: rgba(141, 104, 181, .44);
  background: linear-gradient(90deg, rgba(138, 24, 219, .14), rgba(113, 225, 239, .035) 54%, transparent 82%) left / 0 100% no-repeat;
  transition: background-size 360ms var(--motion-ease), transform 360ms var(--motion-ease), border-color 220ms;
}
.services .service-row h3 {
  color: #f7f7f2;
  font-size: clamp(1.45rem, 2.25vw, 2rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}
.services .service-row p {
  max-width: 68ch;
  margin-top: 7px;
  color: #cbbfd8;
  font-size: 14px;
  line-height: 1.65;
}
.services .service-icon.icon {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .26);
}
@media (hover: hover) and (pointer: fine) {
  .services .service-row:hover {
    border-bottom-color: rgba(201, 255, 0, .62);
    background-size: 100% 100%;
    transform: translateX(6px);
  }
}
@media (max-width: 700px) {
  .services .section-heading { align-items: flex-start; gap: 24px; padding-bottom: 24px; }
  .services .section-heading h2 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .services .section-heading > p { padding: 14px 0 0; border-top: 1px solid rgba(189, 131, 240, .34); border-left: 0; font-size: 13px; }
  .services .service-row { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 24px 4px; }
  .services .service-icon.icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; }
  .services .service-row h3 { font-size: 1.3rem; }
  .services .service-row p { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .services .service-row { transition: none; transform: none !important; }
}

/* Portfolio dialog: transparent project surface over the living topography. */
.project-dialog {
  width: min(1080px, calc(100% - 40px));
  max-height: min(820px, calc(100dvh - 40px));
  overflow: hidden;
  border: 1px solid rgba(189, 131, 240, .58);
  border-radius: 16px;
  background: transparent;
  color: #f7f7f2;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .68), 0 0 44px rgba(138, 24, 219, .13);
  backdrop-filter: none;
  transform-origin: 50% 82%;
}
.project-dialog::backdrop {
  background: rgba(3, 2, 7, .66);
  backdrop-filter: blur(3px) saturate(.86);
  animation: case-backdrop-open 220ms ease-out both;
}
.project-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  animation: case-open 420ms cubic-bezier(.16, 1, .3, 1) both;
}
.project-dialog.is-closing {
  pointer-events: none;
  animation: case-close 300ms cubic-bezier(.55, .06, .68, .19) both;
}
.project-dialog.is-closing::backdrop {
  animation: case-backdrop-close 260ms ease-in both;
}
.project-dialog[open]:not(.is-closing) .project-dialog-toolbar {
  animation: window-chrome-in 300ms 75ms cubic-bezier(.16, 1, .3, 1) both;
}
.project-dialog[open]:not(.is-closing) .project-dialog-content {
  animation: window-content-in 340ms 105ms cubic-bezier(.16, 1, .3, 1) both;
}
.project-dialog.is-closing :is(.project-dialog-toolbar, .project-dialog-content) { animation: none; }
.project-dialog-toolbar {
  position: relative;
  padding: 13px 18px 13px 24px;
  border-bottom: 1px solid rgba(189, 131, 240, .28);
  background: rgba(14, 10, 23, .68);
  color: #bfb2cc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(16px) saturate(1.12);
}
.project-dialog-close {
  border-color: rgba(189, 131, 240, .42);
  border-radius: 10px;
  background: rgba(5, 4, 9, .72);
  color: #f7f7f2;
  font-size: 12px;
  font-weight: 650;
}
.project-dialog-close:is(:hover, :focus-visible) {
  border-color: #c9ff00;
  color: #c9ff00;
}
.project-dialog-content {
  display: grid;
  grid-template-columns: minmax(245px, .72fr) minmax(0, 1.55fr);
  align-items: start;
  gap: 26px 32px;
  overflow: auto;
  padding: 34px;
  background: rgba(9, 7, 15, .48);
  backdrop-filter: blur(12px) saturate(1.14);
  overscroll-behavior: contain;
  scrollbar-color: #8a18db rgba(255, 255, 255, .05);
}
.case-intro {
  position: sticky;
  top: 0;
  align-self: start;
}
.case-intro h2 {
  max-width: 12ch;
  color: #f7f7f2;
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.case-intro > p {
  max-width: 42ch;
  margin-top: 18px;
  color: #d8cde3;
  font-size: 14px;
  line-height: 1.72;
}
.case-features {
  display: grid;
  gap: 0;
  margin: 22px 0;
  padding: 0;
  border-top: 1px solid rgba(189, 131, 240, .24);
  font-size: 12px;
  line-height: 1.5;
  list-style: none;
}
.case-features li {
  position: relative;
  padding: 11px 0 11px 17px;
  border-bottom: 1px solid rgba(189, 131, 240, .18);
  color: #eee8f4;
}
.case-features li::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c9ff00;
  box-shadow: 0 0 9px rgba(201, 255, 0, .5);
}
.case-intro > .case-note {
  color: #bfb2cc;
  font-size: 11.5px;
  line-height: 1.65;
}
.case-intro .text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  color: #c9ff00;
  font-size: 13px;
  font-weight: 650;
}
.case-screen {
  grid-column: 2;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(189, 131, 240, .28);
  border-radius: 13px;
  background: rgba(3, 2, 7, .55);
}
.case-screen img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 610px;
  object-fit: contain;
  border: 0;
  border-radius: 9px;
  background: #050409;
}
.case-screen figcaption {
  margin: 9px 3px 2px;
  color: #bfb2cc;
  font-size: 11px;
  line-height: 1.5;
}
@keyframes case-open {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(.9, .82);
    filter: blur(10px);
    clip-path: inset(7% 5% round 24px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
  }
  72% {
    opacity: 1;
    transform: translateY(-1px) scale(1.006, 1.012);
    filter: blur(0);
    clip-path: inset(0 round 16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    clip-path: inset(0 round 16px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .68), 0 0 44px rgba(138, 24, 219, .13);
  }
}
@keyframes case-close {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    clip-path: inset(0 round 16px);
  }
  to {
    opacity: 0;
    transform: translateY(22px) scale(.91, .84);
    filter: blur(9px);
    clip-path: inset(8% 6% round 24px);
  }
}
@keyframes window-chrome-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes window-content-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes case-backdrop-open {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes case-backdrop-close {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media (max-width: 760px) {
  .project-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }
  .project-dialog-toolbar { padding: 9px 10px 9px 15px; font-size: 10px; }
  .project-dialog-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 16px 18px;
  }
  .case-intro { position: static; }
  .case-intro h2 { max-width: 100%; font-size: clamp(2rem, 11vw, 3rem); }
  .case-intro > p { font-size: 13.5px; }
  .case-screen { grid-column: 1; padding: 5px; }
  .case-screen img { max-height: 58dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .project-dialog[open],
  .project-dialog::backdrop,
  .project-dialog.is-closing,
  .project-dialog.is-closing::backdrop { animation: none; }
}

/* Contact close: a deliberate final frame, not a generic centered CTA. */
.contact { padding-top: clamp(38px, 6vw, 82px); }
.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  align-items: end;
  gap: clamp(38px, 6vw, 96px);
  min-height: 410px;
  padding: clamp(42px, 6vw, 78px);
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(circle at 82% 18%, rgba(138, 24, 219, .24), transparent 31%),
    linear-gradient(135deg, rgba(27, 12, 48, .94), rgba(8, 6, 13, .92));
  border: 1px solid rgba(189, 131, 240, .52);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .045);
  color: var(--white);
  isolation: isolate;
}
.contact-panel::before,
.contact-panel::after {
  position: absolute;
  left: auto;
  z-index: -1;
  border: 1px solid rgba(189, 131, 240, .24);
  border-radius: 50%;
  content: '';
  pointer-events: none;
  transform: none;
}
.contact-panel::before {
  top: -285px;
  right: -190px;
  width: 520px;
  height: 520px;
}
.contact-panel::after {
  right: -105px;
  bottom: -250px;
  width: 390px;
  height: 390px;
}
.contact-panel.motion-arrived::before,
.contact-panel.motion-arrived::after { animation: contact-orbit-in 760ms var(--motion-ease) both; }
.contact-heading,
.contact-details { position: relative; z-index: 1; }
.contact-heading h2 {
  margin: 0;
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.3vw, 6rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.contact-heading h2 span { color: #c99af1; }
.contact-heading > p {
  margin: 25px 0 0;
  color: #b9afc3;
  font-size: clamp(13px, 1.25vw, 16px);
  line-height: 1.55;
}
.contact-details {
  padding: 8px 0 8px clamp(24px, 3vw, 46px);
  border-left: 1px solid rgba(189, 131, 240, .28);
}
.contact-status {
  max-width: 410px;
  margin: 0 0 28px;
  color: #c8bdcf;
  font-size: 14px;
  line-height: 1.7;
}
.contact-status strong {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}
.contact-status > span:last-child { display: block; }
.contact-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 13px rgba(201, 255, 0, .72);
  animation: contact-status-pulse 2.2s ease-in-out infinite;
}
.contact-panel .button-black {
  background: var(--lime);
  color: var(--black);
  box-shadow: 0 10px 26px rgba(201, 255, 0, .11);
}
.contact-panel .button-black:is(:hover, :focus-visible) {
  background: var(--white);
  color: var(--black);
  transform: translateY(-2px);
}
.contact-note {
  margin: 16px 0 0;
  color: #8f8499;
  font-size: 11px;
  line-height: 1.55;
}
.contact-panel :focus-visible { outline-color: var(--lime); }
@keyframes contact-orbit-in {
  from { opacity: 0; transform: scale(.88); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes contact-status-pulse {
  0%, 100% { opacity: .6; box-shadow: 0 0 7px rgba(201, 255, 0, .4); }
  50% { opacity: 1; box-shadow: 0 0 15px rgba(201, 255, 0, .85); }
}
@media (max-width: 760px) {
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    min-height: 0;
    padding: 42px 24px 38px;
    border-radius: 17px;
  }
  .contact-heading h2 { font-size: clamp(3rem, 15.5vw, 4.5rem); }
  .contact-heading > p { margin-top: 19px; }
  .contact-details {
    padding: 27px 0 0;
    border-top: 1px solid rgba(189, 131, 240, .28);
    border-left: 0;
  }
  .contact-panel::before { top: -265px; right: -285px; }
  .contact-panel::after { right: -235px; bottom: -285px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-status-dot,
  .contact-panel.motion-arrived::before,
  .contact-panel.motion-arrived::after { animation: none; }
}

/* The final footer is a signature bar, not another content section. */
.site-footer .footer-inner {
  min-height: 64px;
  padding-block: 10px;
  gap: 22px;
}
.site-footer .footer-inner .brand { gap: 8px; font-size: 16px; }
.site-footer .footer-inner .brand img { width: 27px; height: 27px; }
.site-footer .footer-inner p { font-size: 9px; line-height: 1.4; }
.site-footer .back-top { font-size: 10px; }
@media (max-width: 700px) {
  .site-footer .footer-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    min-height: 54px;
    padding-block: 9px;
    gap: 10px 14px;
  }
  .site-footer .footer-inner .brand { font-size: 15px; }
  .site-footer .footer-inner .brand img { width: 25px; height: 25px; }
  .site-footer .footer-inner p { display: none; }
  .site-footer .back-top {
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    border-top: 0;
    justify-content: flex-end;
  }
}
