:root {
  color-scheme: dark;
  --bg: #0c0812;
  --surface: #15101e;
  --ink: #f8f5fc;
  --muted: #c6bbd2;
  --purple: #d5aaff;
  --line: #ffffff22;
  --studio-backdrop: url("assets/arym-retrato.webp");
  --heading: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.65 var(--body); }
body:has(.player-dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; }
button { color: inherit; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #e4b8ff; outline-offset: 5px; }
::selection { color: #0c0812; background: #e1baff; }

h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, dt { font-family: var(--heading); }
h1, h2 { font-weight: 700; letter-spacing: -.065em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 10vw, 4.125rem); }
h2 { font-size: clamp(2.25rem, 8.8vw, 4rem); }
h1 em, h2 em { color: var(--purple); font-style: normal; }
h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -.02em; }
p { color: var(--muted); }
.shell { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 10vw, 7.5rem); }
.section-heading > p:not(.eyebrow), .intro-copy > p:not(.eyebrow) { margin-top: 1.2rem; max-width: 31rem; }
.eyebrow { margin-bottom: 1rem; color: var(--purple); font-size: .875rem; font-weight: 700; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }

.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .75rem 1rem; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid var(--line); background: #0c0812f2; backdrop-filter: blur(14px); }
.header-inner { position: relative; display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--heading); font-size: 1.04rem; font-weight: 800; letter-spacing: .11em; line-height: 1; }
.wordmark img { width: 2.375rem; height: 2.375rem; border-radius: 50%; }
.wordmark small { display: inline; color: var(--purple); font-size: .76em; letter-spacing: .12em; }
.desktop-nav, .header-inner > .header-contact { display: none; }
.mobile-nav summary { display: flex; min-height: 44px; align-items: center; gap: .65rem; padding-inline: .4rem; cursor: pointer; font-size: .875rem; font-weight: 650; list-style: none; }
summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { width: 16px; height: 7px; border-block: 1px solid currentColor; }
.mobile-nav[open] summary span { height: 11px; color: var(--purple); }
.mobile-nav nav { position: absolute; top: calc(100% + .4rem); right: 0; display: grid; width: min(100%, 16rem); padding: .45rem; border: 1px solid var(--line); border-radius: .9rem; background: #191222; box-shadow: 0 1rem 2rem #0007; }
.mobile-nav nav a { padding: .7rem .9rem; border-radius: .45rem; }
.mobile-nav nav a:hover, .mobile-nav nav a:focus-visible { background: #cca2ff21; }

.button { display: inline-flex; min-height: 3.15rem; align-items: center; justify-content: center; padding: .64rem 1.2rem; border: 1px solid var(--line); border-radius: .6rem; font-size: .9375rem; font-weight: 700; line-height: 1.35; text-align: center; transition: background-color .2s, border-color .2s, color .2s; }
.button-primary { border-color: #d8bbff; background: #cba5ff; color: #180a29; box-shadow: 0 .25rem 1.4rem #a047fd2c; }
.button-primary:hover { border-color: #efddff; background: #e2caff; }
.button-quiet:hover, .button-small:hover { border-color: #dcb9ff99; background: #bc88ff19; }
.button-small { min-height: 2.7rem; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; margin-top: 1.65rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: #170d23; }
.hero::before, .entry-screen::before {
  position: absolute;
  z-index: -2;
  inset: -1.5rem;
  background: var(--studio-backdrop) center 38% / cover no-repeat;
  content: "";
}
.hero::after, .entry-screen::after { position: absolute; z-index: -1; inset: 0; content: ""; }
.hero::before { filter: blur(7px); opacity: .88; }
.hero::after {
  background:
    linear-gradient(180deg, #160a2480, #130a2240 29%, #0d0914ee 65%, #0d0914 100%),
    radial-gradient(ellipse at 50% 27%, transparent, #190d2b66 74%);
}
.hero-inner { display: grid; justify-items: center; padding-block: 1.3rem 3rem; }
.hero-art { position: relative; display: grid; width: min(100%, 25rem); aspect-ratio: 1; place-items: center; }
.hero-logo, .entry-brand img { height: auto; mask-image: radial-gradient(circle closest-side, #000 93%, transparent 100%); }
.hero-emblem { position: relative; z-index: 1; isolation: isolate; width: 94%; }
.hero-logo { width: 100%; }
.hero-foil { display: none; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-emblem {
    transform: perspective(50rem) rotateX(var(--foil-tilt-x, 0deg)) rotateY(var(--foil-tilt-y, 0deg));
    transition: transform .42s cubic-bezier(.2, .78, .32, 1);
  }
  .hero-emblem[data-reflecting] { transition-duration: .13s; }
  .hero-foil {
    position: absolute;
    inset: 0;
    display: block;
    background:
      radial-gradient(ellipse at var(--foil-x, 50%) var(--foil-y, 50%), #ccfdffe0 0%, #a99aff58 20%, transparent 58%),
      linear-gradient(var(--foil-angle, 130deg), transparent 16%, #27c7fc55 32%, #70f7df66 43%, #e991ff97 51%, #835dff70 59%, transparent 78%);
    mask-image: radial-gradient(circle closest-side, #000 88%, transparent 92%);
    mix-blend-mode: screen;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }
  .hero-emblem[data-reflecting] .hero-foil { opacity: .74; }
}
.hero-halo, .hero-orbit { position: absolute; pointer-events: none; }
.hero-halo { inset: 9%; border-radius: 50%; background: #af26e8; filter: blur(55px); opacity: .36; }
.hero-orbit { inset: 0; border: 1px solid #c986ff38; border-radius: 50%; }
.hero-copy { position: relative; margin-top: .5rem; text-align: center; }
.hero-copy h1 em { display: block; }
.hero-copy .eyebrow { margin-bottom: .8rem; font-size: .875rem; letter-spacing: .11em; }
.hero-description { max-width: 29rem; margin: 1.15rem auto 0; line-height: 1.55; }

.entry-screen { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .entry-screen {
    position: fixed;
    z-index: 8;
    inset: 0;
    isolation: isolate;
    display: grid;
    overflow: hidden;
    place-items: center;
    background: #12091e;
    pointer-events: none;
    animation: entry-reveal 1.15s linear both;
  }
  body:has(:focus-visible) .entry-screen { display: none; }
  .entry-screen::before { filter: blur(16px); opacity: .8; }
  .entry-screen::after {
    background: radial-gradient(ellipse at center, #240f3c66, #0a0612e8 76%), #0b061459;
  }
  .entry-brand {
    display: grid;
    justify-items: center;
    gap: .75rem;
    font: 800 clamp(1.4rem, 6vw, 2.1rem)/1 var(--heading);
    letter-spacing: .17em;
    animation: entry-brand-in .64s cubic-bezier(.2, .8, .22, 1) both;
  }
  .entry-brand img { width: clamp(8.5rem, 35vmin, 14rem); }
  .entry-brand small { color: var(--purple); font-size: .72em; }
  .entry-line {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, #7840fd, #ec99ff);
    box-shadow: 0 0 .8rem #d04dff;
    transform-origin: left;
    animation: entry-line-in .72s ease-out both;
  }
}

@keyframes entry-reveal {
  0%, 56% { clip-path: inset(0); opacity: 1; }
  74% { clip-path: inset(0 0 25%); opacity: .94; }
  90% { clip-path: inset(0 0 83%); opacity: .38; }
  100% { clip-path: inset(0 0 100%); opacity: 0; visibility: hidden; }
}
@keyframes entry-brand-in {
  from { opacity: 0; transform: translateY(.65rem) scale(.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes entry-line-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.intro-grid, .offers-grid, .faq-grid { display: grid; align-items: start; gap: 2rem; }
.studio-image { position: relative; overflow: hidden; border: 1px solid #a451e653; border-radius: 1rem; background: #200d34; }
.studio-image img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.studio-image::after { position: absolute; inset: 0; background: linear-gradient(0deg, #0c0619bd, transparent 43%); content: ""; pointer-events: none; }
.value { border-block: 1px solid var(--line); background: #100b18; }
.value-heading { margin-bottom: 2rem; }
.value-grid { display: grid; gap: .7rem; }
.value-grid article { padding: 1.2rem; border: 1px solid var(--line); border-radius: .8rem; background: #ffffff04; }
.value-grid h3 { margin-block: .75rem .45rem; }
.value-icon { position: relative; display: inline-block; width: 2rem; height: 2rem; color: var(--purple); }
.value-icon::before, .value-icon::after { position: absolute; content: ""; }
.icon-focus::before { inset: .23rem; transform: rotate(45deg); border: 1px solid; border-radius: .24rem; }
.icon-focus::after { inset: .72rem; border: 1px solid; border-radius: 50%; }
.icon-phone::before { inset: 0 .43rem; border: 1px solid; border-radius: .33rem; }
.icon-phone::after { inset: auto .83rem .38rem; border-top: 1px solid; }
.icon-chat::before { inset: .25rem 0 .4rem; border: 1px solid; border-radius: .44rem .44rem .44rem 0; }
.icon-chat::after { inset: .8rem .46rem auto; height: .36rem; border-block: 1px solid; }

.work { background: radial-gradient(ellipse at 50% 70%, #2a133c 0%, transparent 67%); }
.work-heading { margin-bottom: 1.9rem; }
.project-grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(90%, 26rem); gap: .8rem; margin: 0 -.9rem; padding: .4rem .9rem .85rem; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scroll-padding-inline: .9rem; scrollbar-color: #9f6bd275 #a573d41a; scrollbar-width: thin; }
.project { min-width: 0; scroll-snap-align: start; }
.project-link { display: block; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: #160f20; transition: border-color .2s; }
.project-link:hover, .project-link:focus-visible { border-color: #daa6ffad; }
.project-link:focus-visible { outline-offset: -3px; }
.project-gs { --project-accent: #9b91d580; --project-background: #1e1930; }
.project-afonte { --project-accent: #f1b84575; --project-background: #31201a; }
.project-sena { --project-accent: #75aa8e80; --project-background: #172921; }
.project-stage { position: relative; isolation: isolate; min-height: 15rem; display: grid; overflow: hidden; place-items: end center; height: clamp(16rem, 76vw, 24rem); background: radial-gradient(ellipse at 50% 74%, var(--project-accent), transparent 65%), var(--project-background); }
.project-stage::before { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(#ffffff0b 1px, transparent 1px), linear-gradient(90deg, #ffffff0b 1px, transparent 1px); background-size: 25px 25px; content: ""; }
.project-phone { position: absolute; top: 8%; width: 57%; max-width: 13rem; overflow: hidden; border: 5px solid #100d16; border-radius: 1.3rem; background: #100d16; box-shadow: 0 1rem 2.5rem #0008, 0 0 0 1px #fff4; transition: transform .3s; }
.project-phone img { width: 100%; height: auto; }
.project-link:hover .project-phone { transform: translateY(-.3rem); }
.play { position: absolute; right: .85rem; bottom: .85rem; display: grid; width: 3rem; aspect-ratio: 1; place-items: center; border: 1px solid #ffffff59; border-radius: 50%; background: #160f21e8; backdrop-filter: blur(6px); }
.play::after { margin-left: .16rem; border-block: .375rem solid transparent; border-left: .6rem solid var(--ink); content: ""; }
.project-caption { display: flex; min-height: 5.5rem; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem .9rem; }
.project-caption p { margin-top: .25rem; font-size: .875rem; line-height: 1.35; }
.project-watch { flex-shrink: 0; color: var(--purple); font-size: .875rem; font-weight: 650; }

.process {
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at 22% 19%, #2c1742, transparent 70%), #110c19;
}
.process-heading { margin-bottom: clamp(1.4rem, 4vw, 2.7rem); }
.process-heading > p:not(.eyebrow) { margin-top: .8rem; }
.process-track { position: relative; }
.timeline-route { display: none; }
.process-timeline[data-ready] .timeline-route { display: block; }
.timeline-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.timeline-route path { fill: none; }
.timeline-rail { stroke: #bb8eeb52; stroke-width: 2; }
.timeline-progress {
  stroke: url(#timeline-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px #ce83ff9c);
}
.steps {
  position: relative;
  display: grid;
  gap: .3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li { min-width: 0; }
.step-select {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  gap: .85rem;
  padding: 0;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  color: #ded2e8;
  text-align: left;
  cursor: pointer;
}
.step-select:disabled { cursor: default; }
.step-select:not(:disabled):hover { color: var(--ink); }
.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border: 1px solid #ad79d973;
  border-radius: 50%;
  background: #251734;
  color: #e0c7f3;
  font-size: .9rem;
  font-weight: 750;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  transition: border-color .25s, box-shadow .25s;
}
.steps [data-state="complete"] .step-number {
  border-color: #be83ff;
  background: #3c2258;
}
.steps [data-state="active"] .step-number {
  border-color: #f3d4ff;
  background: #d5aaff;
  box-shadow: 0 0 .95rem #bd73ff75;
  color: #190b2d;
}
.steps [data-state="active"] .step-select { color: var(--ink); }
.step-description { max-width: 25rem; margin: .15rem 0 .8rem 3.4rem; line-height: 1.5; }
.step-detail { display: none; }
.process-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-top: 1.25rem; }
.timeline-toggle {
  min-height: 2.75rem;
  padding: .4rem .25rem;
  border: 0;
  border-radius: .3rem;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 700;
}
.timeline-toggle:hover { color: var(--ink); }

@media (max-width: 819px) {
  .process-timeline[data-ready] .step-description {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .process-timeline[data-ready] .step-detail {
    display: block;
    min-height: 6.75rem;
    margin-top: .8rem;
    padding: .7rem .85rem;
    border: 1px solid #cb94ff4d;
    border-radius: .7rem;
    background: #9a5bd914;
    line-height: 1.5;
  }
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.3rem clamp(1rem, 3vw, 3.5rem);
    padding-right: clamp(2rem, 5vw, 4.5rem);
  }
  .steps li:nth-child(4) { grid-area: 2 / 3; }
  .steps li:nth-child(5) { grid-area: 2 / 2; }
  .steps li:nth-child(6) { grid-area: 2 / 1; }
  .step-select { flex-direction: column; align-items: flex-start; gap: .65rem; }
  .step-number { width: 3.25rem; height: 3.25rem; font-size: 1.0625rem; }
  .step-label { padding-left: .2rem; }
  .step-description { margin: .35rem 0 0 .2rem; }
  .process-actions { margin-top: 1.75rem; }
}

.offers { border-bottom: 1px solid var(--line); }
.offer-list > div { padding-block: 1.15rem; border-top: 1px solid var(--line); }
.offer-list > div:last-child { border-bottom: 1px solid var(--line); }
.offer-list dt { margin-bottom: .35rem; font-size: 1.28rem; font-weight: 700; }
.offer-list dd { color: var(--muted); }

.faq { background: #100c16; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 3.75rem; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem .1rem; cursor: pointer; font-weight: 700; line-height: 1.4; list-style: none; }
.faq-list summary::after { flex-shrink: 0; color: var(--purple); font-size: 1.25rem; font-weight: 500; line-height: 1; content: "+"; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 1rem 1.1rem .1rem; }

.contact { padding-top: 0; background: #100c16; }
.contact-panel { display: grid; justify-items: center; padding: 1.5rem 1.1rem 2rem; border: 1px solid #c984ff50; border-radius: 1rem; background: radial-gradient(ellipse at 50% 20%, #36144d, transparent 73%), #181020; text-align: center; }
.contact-logo { width: min(48%, 12rem); height: auto; mask-image: radial-gradient(circle closest-side, #000 93%, transparent 100%); }
.contact-panel .section-heading > p { margin-inline: auto; }
.contact-panel .button { margin-top: 1.4rem; }
.instagram-handle { display: block; margin-top: .65rem; color: var(--muted); font-size: .875rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 5rem; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding-block: .6rem; }
.footer-inner > a:last-child { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: .875rem; }
.footer-inner > a:last-child:hover { color: var(--ink); }

.player-dialog { width: max-content; max-width: calc(100vw - 1.5rem); max-height: calc(100dvh - 1rem); margin: auto; padding: .65rem; overflow: auto; border: 1px solid #d7a4ff64; border-radius: 1rem; background: #140e1e; color: var(--ink); box-shadow: 0 1rem 4rem #0008; }
.player-dialog::backdrop { background: #07040cf0; backdrop-filter: blur(5px); }
.player-header { display: flex; min-height: 3.2rem; align-items: center; justify-content: space-between; gap: .75rem; padding: 0 .1rem .55rem .35rem; }
.player-header h2 { font-size: 1rem; letter-spacing: 0; line-height: 1.3; }
.player-close { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: .5rem; background: #261a34; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.player-dialog video { width: min(46dvh, 26rem, calc(100vw - 3rem)); max-height: calc(100dvh - 6rem); aspect-ratio: 9 / 20; margin-inline: auto; border-radius: .5rem; background: #060409; object-fit: contain; }
.player-error { max-width: 20rem; padding: .7rem .2rem .2rem; }
.player-error a { color: var(--purple); text-decoration: underline; }

@media (max-width: 360px) {
  .shell { width: calc(100% - 1.75rem); }
  .actions .button { padding-inline: .85rem; }
  .project-watch { display: none; }
}

@media (min-width: 620px) {
  .shell { width: min(100% - 4rem, 72rem); }
  .hero-inner { padding-block: 2rem 4rem; }
  .hero-art { width: min(65%, 29rem); }
  .hero-copy { margin-top: .35rem; }
  .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-grid { grid-auto-columns: min(62%, 23rem); }
}

@media (min-width: 820px) {
  .header-inner { min-height: 73px; }
  .mobile-nav { display: none; }
  .desktop-nav { display: flex; align-items: center; gap: 1.65rem; color: var(--muted); font-size: .9375rem; font-weight: 650; }
  .desktop-nav a { padding-block: .7rem; }
  .desktop-nav a:hover { color: var(--ink); }
  .header-inner > .header-contact { display: inline-flex; }
  .hero::before { filter: blur(6px); }
  .hero::after {
    background:
      linear-gradient(90deg, #0d0914f7, #110a1bd4 28%, #150a2666 60%, #140a2359),
      linear-gradient(0deg, #0d0914cb, transparent 35%);
  }
  .hero-inner { grid-template-columns: 1.05fr 1fr; min-height: clamp(33rem, 53vw, 41rem); align-items: center; justify-items: stretch; gap: 1.5rem; padding-block: 3rem; }
  .hero-copy { grid-area: 1 / 1; margin: 0; text-align: left; }
  h1 { font-size: clamp(3rem, 5.45vw, 5.5rem); text-wrap: initial; }
  .hero-copy h1 em { display: inline-block; }
  .hero-description { margin-inline: 0; font-size: 1.125rem; }
  .hero-art { width: min(100%, 33rem); justify-self: end; }
  .actions { justify-content: flex-start; }
  .intro-grid, .offers-grid, .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); }
  .intro-grid, .offers-grid { align-items: center; }
  .value-grid article { padding: 1.55rem; }
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.05rem; margin: 0; padding: 0; overflow: visible; }
  .project-stage { height: clamp(16rem, 32vw, 24rem); }
  .project-caption { padding-inline: 1rem; }
  .contact-panel { grid-template-columns: .85fr 1.15fr; align-items: center; gap: 1.8rem; padding: 3rem; background: radial-gradient(ellipse at 22% 50%, #37164e, transparent 73%), #181020; text-align: left; }
  .contact-logo { width: min(100%, 19rem); }
  .contact-panel .section-heading > p { margin-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
