@font-face {
  font-family: Manrope;
  src: url('/portfolio/manrope-0.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url('/portfolio/manrope-3.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url('/portfolio/manrope-4.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --base: #09070e;
  --surface: #100c17;
  --surface-lift: #161020;
  --text: #f6f1fc;
  --muted: #b9afc8;
  --line: #2e233a;
  --violet: #cda6ff;
  --glow: #d6b8fa;
  --width: 1176px;
  --header-height: 69px;
  font: 400 16px/1.55 Manrope, system-ui, sans-serif;
  background: var(--base);
  color: var(--text);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 0;
  background: radial-gradient(ellipse 850px 510px at 58% 0%, #221330a8, transparent 82%), var(--base);
}

main { min-height: 65vh; }
h1, h2, h3, h4, p, ul, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
::selection { background: #ba84ed; color: #1e0c29; }
[id] { scroll-margin-top: calc(var(--header-height) + 22px); }

.frame { width: min(calc(100% - 64px), var(--width)); margin-inline: auto; }
.muted { color: var(--muted); }

.skip {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 12px;
  padding: 8px 14px;
  transform: translateY(-180%);
  color: #190d22;
  background: var(--violet);
  border-radius: 8px;
}
.skip:focus { transform: none; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #0c0913e8;
  border-bottom: 1px solid #b68bdf23;
  backdrop-filter: blur(16px);
}
.bar {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.035em; width: fit-content; }
.tm { font-size: .66em; color: #ceafe8; vertical-align: top; margin-left: 1px; }
.site-nav { display: flex; align-items: center; gap: 5px; }
.site-nav a, .language {
  padding: 7px 12px;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.site-nav a:hover, .site-nav a[aria-current], .language:hover {
  color: var(--text);
  background: #c99ff017;
  border-color: #c99ff01a;
}
.top-actions { justify-self: end; }
.language { border-color: var(--line); display: block; padding-inline: 11px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: center;
  gap: clamp(28px, 6.2vw, 94px);
}
.overview-hero { padding: clamp(72px, 10vw, 140px) 0 clamp(78px, 10vw, 132px); }
.hero-copy { min-width: 0; }
.eyebrow {
  color: var(--violet);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1, .document-hero h1 {
  font-size: clamp(3.05rem, 6.6vw, 6rem);
  letter-spacing: -.083em;
  line-height: 1.015;
  text-wrap: balance;
}
.hero h1 span {
  color: var(--glow);
  background: linear-gradient(105deg, #f7e6ff, #cba2f4 48%, #8f62d6);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  max-width: 35rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.2rem);
}
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 47px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 800;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary {
  color: #20112f;
  background: linear-gradient(125deg, #ead7ff, #c6a0f5 80%);
  box-shadow: 0 6px 22px #a26bd229;
}
.button.primary:hover { box-shadow: 0 8px 30px #a26bd25c; }
.button.secondary { border-color: var(--line); background: #1b1226; }
.button.secondary:hover { border-color: #9b73c0; background: #231733; }
.button span { font-size: 1.05em; }

.profile-card {
  overflow: hidden;
  align-self: center;
  width: min(100%, 400px);
  justify-self: center;
  border-radius: 22px;
  border: 1px solid #473353;
  background: #110c19;
  box-shadow: 0 28px 90px #0007, 0 0 64px #7c37b023;
  animation: enter .65s cubic-bezier(.2,.7,.2,1) both;
}
.profile-stage {
  position: relative;
  isolation: isolate;
  min-height: clamp(210px, 26vw, 276px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #9c4ed94d, #3a1d5558 40%, #100a1800 74%), linear-gradient(145deg,#1b1129,#100b19);
  border-bottom: 1px solid var(--line);
}
.profile-stage::before {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #deb9ff0d 1px, transparent 1px), linear-gradient(#deb9ff0d 1px, transparent 1px);
  background-size: 29px 29px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 74%);
}
.profile-ring {
  position: absolute;
  width: 208px;
  aspect-ratio: 1;
  border: 1px solid #c49aee34;
  border-radius: 50%;
}
.profile-ring::before, .profile-ring::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid #c49aee50;
  border-radius: 50%;
}
.profile-ring::after { inset: 34px; border-color: #d4a9f77a; }
.profile-photo {
  position: relative;
  padding: 4px;
  border: 1px solid #d4a9f799;
  border-radius: 50%;
  background: #211530;
  box-shadow: 0 0 32px #ad69e453;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.profile-card:hover .profile-photo { transform: scale(1.05); }
.profile-photo img { width: 130px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.profile-card figcaption { padding: 18px 22px 20px; display: grid; gap: 2px; }
.profile-card figcaption span { font-size: .79rem; }
.profile-card figcaption strong { font-size: 1.27rem; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-heading h2, .branding h2 {
  font-size: clamp(2.02rem, 4vw, 3.3rem);
  letter-spacing: -.067em;
  text-wrap: balance;
}
.section-heading p { margin-top: 10px; color: var(--muted); }
.work-grid { display: grid; grid-template-columns: 1.33fr 1fr; gap: 20px; }
.work-group { display: grid; align-content: start; gap: 10px; min-width: 0; }
.work-label {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .03em;
}
.work-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(143deg, #171021, #110d18);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.work-card:hover, .work-card:focus-within { border-color: #624680; box-shadow: 0 14px 35px #08050d8c; }
.work-card:hover { transform: translateY(-3px); }
.work-cover, .studio-cover {
  height: clamp(142px, 24vw, 216px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.work-cover {
  background: radial-gradient(ellipse at center, #4b306b 0, #261838 48%, #171022 92%);
}
.work-cover img {
  width: auto;
  height: 78%;
  filter: drop-shadow(0 10px 18px #0b0719c9);
  transition: transform .3s cubic-bezier(.18,.75,.28,1);
}
.work-cover:hover img { transform: scale(1.045); }
.studio-cover {
  background: radial-gradient(ellipse at 50% 48%, #5a347a54, transparent 66%), #140e1e;
}
.studio-cover img { filter: drop-shadow(0 10px 20px #9a53e861); }
.work-copy { display: flex; flex: 1; flex-direction: column; padding: 23px 25px 26px; }
.work-copy .muted { margin-bottom: 5px; font-size: .8rem; }
.work-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.work-title strong { color: var(--violet); font-size: .88rem; white-space: nowrap; }
.work-copy h4 { font-size: 1.49rem; letter-spacing: -.04em; }
.work-copy p:not(.muted) { margin: 9px 0 16px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; width: fit-content; color: var(--violet); font-size: .89rem; font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(2px,-2px); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.project-page { padding-top: 30px; }
.back-link { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-size: .87rem; margin-bottom: 15px; width: fit-content; }
.back-link:hover { color: var(--violet); }
.project-hero { padding: 23px 0 clamp(65px, 9vw, 115px); }
.project-hero h1 { overflow-wrap: anywhere; font-size: clamp(2.85rem, 5.65vw, 5.6rem); }
.project-price { display: flex; align-items: center; gap: 10px; margin-top: 19px; font-size: .83rem; color: var(--muted); }
.project-price strong { color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: .9rem; }
.hero-demo {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #4c375d;
  background: #100b17;
  border-radius: 18px;
  box-shadow: 0 28px 80px #0008, 0 0 56px #7c37b022;
  animation: enter .68s cubic-bezier(.2,.7,.2,1) both;
}
.hero-demo figcaption { padding: 11px 14px; color: var(--muted); font-size: .81rem; font-weight: 700; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.status-dot { width: 6px; height: 6px; background: #c9a0f5; border-radius: 100%; box-shadow: 0 0 10px #ae79e9; }
.hero-demo a { display: grid; place-items: center; padding: 14px; background: radial-gradient(ellipse at 65% 95%, #673d3528, transparent 75%); }
.hero-demo img { border-radius: 7px; }

.features { margin-bottom: clamp(62px, 8.5vw, 116px); }
.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.feature-tabs a {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: .86rem;
  font-weight: 800;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.feature-tabs a:hover { color: var(--text); background: #b382df16; }
.feature-tabs a[aria-current] { color: #f3e3ff; background: #af75e229; border-color: #c794f44e; }
.feature-group { display: grid; gap: 9px; }
.feature-group:not([hidden]) { animation: reveal-feature .26s ease-out both; }
.feature-group + .feature-group:not([hidden]) { margin-top: 9px; }

.feature-entry {
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.feature-entry[open] { border-color: #4c375c; background: linear-gradient(122deg, #171020, #100c17 77%); }
.feature-entry > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 19px;
  cursor: pointer;
  list-style: none;
  border-radius: inherit;
}
.feature-entry summary::-webkit-details-marker { display: none; }
.feature-entry > summary:hover { color: var(--violet); }
.feature-entry > summary h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; font-size: 1.07rem; letter-spacing: -.025em; }
.feature-entry[open] > summary h3 { color: #eed9ff; }
.summary-icon { width: 27px; height: 27px; border-radius: 7px; background: #9d6aca17; position: relative; flex: none; }
.summary-icon::before, .summary-icon::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 10px; height: 1.5px; background: var(--violet); transform: translate(-50%,-50%); }
.summary-icon::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .22s ease; }
[open] > summary .summary-icon::after { transform: translate(-50%,-50%); }
.feature-body {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(20px, 4.5vw, 62px);
  padding: 3px 20px 20px;
}
.feature-entry[open] > .feature-body { animation: reveal-feature .22s ease-out both; }
.feature-copy { padding: 9px 5px 7px 0; color: var(--muted); }
.screenshot { min-width: 0; overflow: hidden; border: 1px solid #392d45; border-radius: 10px; background: #100c17; }
.screenshot-media {
  position: relative;
  display: grid;
  place-items: start center;
  padding: 10px;
  min-height: 82px;
  background: radial-gradient(ellipse at 50% 48%, #2d1b3a93, transparent 83%), #0b0911;
  cursor: zoom-in;
}
.screenshot-media img {
  width: auto;
  height: auto;
  max-height: min(540px, 66vh);
  object-fit: contain;
  border-radius: 5px;
}
.expand {
  position: absolute;
  display: grid;
  place-items: center;
  top: 9px;
  right: 9px;
  width: 31px;
  height: 31px;
  border-radius: 7px;
  color: #efe1f7;
  background: #21182ce8;
  border: 1px solid #614c73;
  font: 700 17px/1 system-ui, sans-serif;
}
.screenshot-media:hover .expand { background: #63458a; }
.screenshot figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 47px;
  padding: 7px 10px 7px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .79rem;
}
.shot-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.shot-choices a, .lightbox button {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 6px;
  border: 1px solid #493753;
  background: #191123;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.shot-choices a:hover, .lightbox button:hover { background: #352247; }
.shot-choices a[aria-current] { background: #43295b; border-color: #835bac; color: #ffefff; }
.command-chips { display: flex; flex-wrap: wrap; list-style: none; gap: 6px; margin-top: 14px; padding: 0; }
code { font-size: .83em; overflow-wrap: anywhere; color: #e8d0fc; }
.command-chips li { border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; background: #1b1126; }
.commands { margin-top: 15px; }
.commands > summary { cursor: pointer; color: var(--violet); font-weight: 800; width: fit-content; }
.command-group { margin: 16px 0 0; }
.command-group h4 { margin-bottom: 7px; color: var(--text); font-size: .92rem; }
.command-group dl > div { padding: 6px 0; border-top: 1px solid var(--line); }
.command-group dd { margin-left: 0; color: var(--muted); font-size: .84rem; }

.branding {
  padding: clamp(24px, 5vw, 55px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 30px;
  align-items: center;
  border: 1px solid #463155;
  border-radius: 17px;
  background: radial-gradient(ellipse at 100% 50%, #49245d71, transparent 72%), var(--surface);
}
.branding p { color: var(--muted); margin-top: 13px; }
.branding-items { list-style: none; display: grid; padding: 0; gap: 5px; font-size: .9rem; font-weight: 800; }
.branding-items li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #bc96d929; }
.branding-items li:last-child { border-bottom: 0; }
.branding-items li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--violet); border-radius: 100%; flex: none; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: clamp(60px, 9vw, 113px);
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.footer-brand { color: var(--text); }
.footer nav { display: flex; flex-wrap: wrap; gap: 9px 17px; }
.footer nav a:hover { color: var(--violet); }

.document-hero { padding: 53px 0 35px; }
.document-hero h1 { font-size: clamp(2.75rem, 5.5vw, 5.2rem); }
.rule-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 25px; }
.rule-nav {
  display: grid;
  padding: 9px;
  position: sticky;
  top: calc(var(--header-height) + 19px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.rule-nav a { padding: 8px 10px; border-radius: 6px; font-size: .84rem; color: var(--muted); }
.rule-nav a:hover { color: var(--text); background: #ba82e41b; }
.rules-content { display: grid; gap: 10px; }
.rule-section { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--surface); }
.rule-section h2 { font-size: 1.3rem; letter-spacing: -.027em; margin-bottom: 10px; }
.rule-section ul { padding-left: 1.15rem; color: var(--muted); }
.rule-section li + li { margin-top: 5px; }

.modal-open { overflow: hidden; }
.lightbox {
  max-width: min(940px, calc(100vw - 24px));
  width: max-content;
  max-height: calc(100dvh - 26px);
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid #604972;
  border-radius: 14px;
  background: #100b18;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: #06040bd9; backdrop-filter: blur(6px); }
.light-head, .light-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; }
.light-head { border-bottom: 1px solid var(--line); }
.light-head h2 { font-size: .95rem; }
.light-actions { justify-content: center; border-top: 1px solid var(--line); font-size: .8rem; }
.lightbox button { min-width: 36px; padding: 0 7px; min-height: 34px; }
.lightbox button:disabled { opacity: .48; cursor: default; }
.light-head button { font-size: 1.25rem; }
.light-count { min-width: 29px; color: var(--muted); text-align: center; }
.light-image { overflow: auto; padding: 10px; }
.light-image img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 154px); object-fit: contain; margin: auto; }
.is-zoomed .light-image img { width: calc(100% + 260px); max-width: none; max-height: none; image-rendering: auto; }

@keyframes reveal-feature {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 850px) {
  .hero { gap: 30px; }
  .hero h1 { font-size: clamp(2.85rem, 7.1vw, 4.6rem); }
  .work-grid { gap: 13px; }
  .feature-body { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 17px; }
}

@media (max-width: 650px) {
  :root { --header-height: 58px; }
  .frame { width: calc(100% - 32px); }
  .bar { gap: 6px; grid-template-columns: 1fr auto auto; }
  .top .brand { font-size: .88rem; gap: 4px; }
  .top .brand img { width: 27px; height: 27px; }
  .site-nav { gap: 1px; }
  .site-nav a, .language { padding: 6px 6px; font-size: .72rem; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .overview-hero { padding-top: 53px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(2.9rem, 10.8vw, 4.15rem); }
  .profile-card { width: 100%; justify-self: auto; }
  .profile-stage { min-height: 210px; }
  .lead { margin-top: 17px; }
  .actions { margin-top: 21px; }
  .button { min-height: 44px; padding: 8px 12px; }
  .work-grid { grid-template-columns: 1fr; gap: 23px; }
  .work-copy { padding: 18px; }
  .work-cover, .studio-cover { height: 156px; }
  .project-page { padding-top: 21px; }
  .project-hero { padding: 10px 0 65px; }
  .hero-demo a { padding: 9px; }
  .feature-body { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 0 11px 12px; }
  .feature-copy { padding: 2px 2px 6px; font-size: .91rem; }
  .feature-entry > summary { min-height: 50px; padding: 7px 12px; }
  .feature-tabs a { min-height: 35px; padding: 5px 10px; }
  .feature-tabs { margin-bottom: 13px; }
  .screenshot-media { padding: 5px; }
  .expand { top: 5px; right: 5px; }
  .screenshot figcaption { padding-left: 9px; }
  .shot-choices a { min-width: 37px; min-height: 37px; }
  .branding { grid-template-columns: 1fr; gap: 12px; }
  .footer { align-items: start; flex-direction: column; gap: 12px; }
  .rule-layout { grid-template-columns: 1fr; gap: 14px; }
  .rule-nav { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .document-hero { padding-top: 31px; }
  .rule-section { padding: 15px; }
}

@media (max-width: 354px) {
  .site-nav a:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.work-cover img { max-width: 94%; object-fit: contain; }
.work-cover:not(.work-erlc) img { width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
.work-copy p, .custom-hero .lead { overflow-wrap: anywhere; }
.work-copy p:not(.muted) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; white-space: pre-line; }
.custom-hero.without-cover { grid-template-columns: 1fr; }
.custom-hero .lead { white-space: pre-line; }
.custom-demo { padding: 11px; }
.custom-demo img { max-height: 460px; width: 100%; object-fit: contain; border-radius: 7px; }
.additional-gallery { margin-top: clamp(48px, 7vw, 86px); }
.additional-gallery .screenshot { max-width: 760px; }
