:root {
  --ink: #171a32;
  --muted: #505777;
  --navy: #11142b;
  --blue: #3043df;
  --pale: #edf0ff;
  --line: #d9dff2;
  --white: #fff;
  --header-height: 76px;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
  background: var(--navy);
  color: var(--ink);
}

html { scroll-padding-top: var(--header-height); }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(110deg, var(--navy), #1c2350);
  box-shadow: 0 1px 0 #8395ff65, 0 .35rem 1rem #10142d40;
}
.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
  color: var(--white);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.045em; }
.brand-name > span { color: #a9b7ff; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border: 1px solid #879aff;
  border-radius: .5rem .5rem .85rem .5rem;
  background: linear-gradient(145deg, #5269ec, #2839a7);
  font-size: 1.3rem;
  font-style: italic;
}
.header nav {
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: .25rem;
  border: 1px solid #7488e268;
  border-radius: .75rem;
  background: #9baeff12;
}
.header nav a { padding: .45rem clamp(.5rem, 1.5vw, 1rem); border-radius: .5rem; font-weight: 650; }
.header nav a:hover { background: #aebcff29; }
.header nav .nav-contact { background: #c0cdff; color: #161d51; }
.header nav .nav-contact:hover { background: #e0e7ff; }
.header nav a:focus-visible { outline-color: var(--white); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(ellipse at 82% 46%, #414bc6, transparent 57%), linear-gradient(115deg, #111632 10%, #202c83);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.hero::before {
  background-image:
    radial-gradient(circle, #a5b8ff75 1px, transparent 1.75px),
    linear-gradient(#a5b8ff25 1px, transparent 1px),
    linear-gradient(90deg, #a5b8ff25 1px, transparent 1px);
  background-size: 80px 80px, 40px 40px, 40px 40px;
  background-position: -40px -40px, 0 0, 0 0;
  mask-image: linear-gradient(100deg, #0002, #0009 55%, #000);
}
.hero::after {
  background:
    linear-gradient(90deg, transparent, #8cbaffa0) right 0 top 18% / 30% 1px no-repeat,
    linear-gradient(#8cbaff90, transparent) right 30% top 18% / 1px 26% no-repeat,
    linear-gradient(90deg, transparent, #8cbaff90) right 0 bottom 18% / 45% 1px no-repeat,
    linear-gradient(transparent, #8cbaff90) right 45% bottom 18% / 1px 20% no-repeat,
    radial-gradient(ellipse at 90% 45%, #5686ff35, transparent 45%);
}
.hero-layout {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 530px;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}
.eyebrow { color: #e0e5ff; font-weight: 650; }
h1 {
  margin-block: .75rem 1.2rem;
  font-size: clamp(2.75rem, 6.25vw, 5.5rem);
  line-height: 1.01;
  letter-spacing: -.065em;
}
h1 em { color: #c5d3ff; font-style: normal; }
.intro { max-width: 44ch; color: #edf0ff; font-size: 1.125rem; margin-bottom: 1.65rem; }
.button {
  display: inline-block;
  padding: .8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: var(--blue);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button:hover { background: #2334bc; }
.hero .button { background: var(--white); color: #222c91; }
.hero .button:hover { background: #e7ebff; }
.hero .button:focus-visible { outline-color: var(--white); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .button-whatsapp { border-color: #c2d0ff; background: #b6c7ff1f; color: var(--white); }
.hero .button-whatsapp:hover { background: #b6c7ff3d; }
.secondary { border-color: var(--blue); background: transparent; color: var(--blue); }
.secondary:hover { background: var(--pale); }

.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.orbit { position: absolute; inset: var(--inset); border: 1px solid #c6d0ff50; border-radius: 50%; }
.orbit-outer { --inset: 0; background: radial-gradient(circle, #a7b3ff20, transparent 68%); }
.orbit-middle { --inset: 11%; border-style: dashed; }
.orbit-inner { --inset: 22%; }
.orbit-outer::after, .orbit-inner::after {
  content: "";
  position: absolute;
  left: 83%;
  top: 14%;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: #d7e2ff;
  box-shadow: 0 0 1.35rem #c5d3ff;
}
.orbit-inner::after { left: 12%; top: 15%; width: .5rem; height: .5rem; }
.art-core {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 70%;
  aspect-ratio: 1.45;
  border: 1px solid #b5c3ff;
  border-radius: 16% 16% 30% 16%;
  background: linear-gradient(145deg, #5269ec, #222f93 85%);
  box-shadow: 0 1.5rem 3rem #161b795c, inset 0 1px 0 #e6ebff80;
}
.art-mark { font-size: clamp(2.5rem, 7vw, 6rem); font-weight: 850; font-style: italic; line-height: .9; letter-spacing: -.09em; padding-inline-end: .1em; }
.art-name { color: #dce3ff; font: 700 clamp(.625rem, 1.3vw, .9rem) ui-monospace, monospace; letter-spacing: .38em; text-indent: .38em; }

.services { padding-block: clamp(3rem, 7vw, 5.5rem); background: #f7f8ff; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; letter-spacing: -.05em; }
h3 { font-size: 1.25rem; line-height: 1.25; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
article {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--white);
  box-shadow: 0 .45rem 1.25rem #282b6410;
}
article p, .contact p { margin-top: .65rem; color: var(--muted); }
.service-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: .65rem;
  background: var(--pale);
  color: #2838c3;
  font: bold .95rem ui-monospace, monospace;
}
.icon-site::before, .icon-chat::before { content: ""; width: 1.2rem; height: .95rem; border: 2px solid currentColor; }
.icon-site::before { border-radius: .2rem; background: linear-gradient(currentColor, currentColor) 0 .22rem / 100% 2px no-repeat; }
.icon-chat::before { border-radius: .35rem .35rem .35rem .05rem; }
.icon-chat::after { content: ""; position: absolute; width: .5rem; height: 2px; background: currentColor; }

.projects { padding-block: clamp(3rem, 7vw, 5.5rem); background: #edf0ff; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.project {
  overflow: hidden;
  padding: 0;
  border: 0;
  color: var(--white);
}
.project-image { display: block; width: 100%; height: auto; }
.project-image-agenda { aspect-ratio: 16 / 10; object-fit: contain; background: #11162d; }
.project-media { margin: 0; }
.project-media figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; padding: .65rem 1rem; background: #11162d; font-size: .875rem; }
.capture-link { padding: .2rem 0; text-decoration: underline; text-underline-offset: .2em; }
.capture-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--navy); color: var(--white); }
.capture-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
html:has(.capture-dialog[open]) { overflow: hidden; }
.capture-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid #6d78b3; }
.capture-toolbar h2 { flex: 1 1 12rem; font-size: 1.125rem; letter-spacing: normal; }
.capture-toolbar button { padding: .4rem .7rem; border: 1px solid #879aff; border-radius: .4rem; background: #26306b; color: inherit; font: inherit; cursor: pointer; }
.capture-toolbar button[aria-pressed="true"] { background: #c0cdff; color: var(--navy); }
.capture-view { overflow: auto; padding: 1rem; }
.capture-view:focus-visible { outline-offset: -4px; }
.capture-view img { display: block; width: 100%; height: 100%; object-fit: contain; }
.capture-view.is-zoomed img { width: auto; height: auto; }
.project-content { padding: clamp(1.25rem, 3vw, 2rem); }
.project-optica { background: linear-gradient(145deg, #285c50, #152d29); }
.project-barbearia { background: linear-gradient(145deg, #454b88, #1c2047); }
.project-type { margin-bottom: .35rem; color: #e0e7f7; font-weight: 650; }
.project-description { margin-top: .65rem; color: #e0e7f7; }
.project-quote {
  margin-top: 1.2rem;
  padding: .8rem 1rem;
  border-inline-start: 3px solid #a9e4cc;
  border-radius: 0 .5rem .5rem 0;
  background: #ffffff12;
}
.project-quote-label { color: #cbeee1; font-size: .875rem; font-weight: 650; }
.project-quote blockquote { margin: .4rem 0 0; }
.project-quote-credit { margin-top: .55rem; color: #cbeee1; font-size: .875rem; font-weight: 650; }
.project h3 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); letter-spacing: -.04em; }
.project-link { display: inline-block; margin-top: .85rem; text-decoration: underline; text-underline-offset: .22em; }
.project-link:hover { color: #dbe4ff; }
.project-request {
  display: block;
  width: fit-content;
  margin-top: .85rem;
  padding: .55rem .8rem;
  border: 1px solid #ffffff85;
  border-radius: .5rem;
  font-weight: 650;
}
.project-request:hover { background: #ffffff20; }

.about { padding-block: clamp(3rem, 8vw, 6rem); background: var(--white); }
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 5rem);
}
.about-label { margin-bottom: .65rem; color: #2838c3; font-weight: 750; }
.about-copy h2 { max-width: 19ch; }
.about-copy h2 ~ p { max-width: 58ch; margin-top: 1rem; color: var(--muted); }
.about-copy .button { margin-top: 1.5rem; }
.about-note {
  padding: clamp(1.3rem, 4vw, 2.5rem);
  border: 1px solid #4854ae;
  border-radius: 1rem;
  background: radial-gradient(ellipse at 100% 0%, #3748ba, transparent 68%), #191e48;
  color: var(--white);
  box-shadow: 0 1rem 2rem #1e26602b;
}
.about-note > div { display: flex; align-items: center; gap: .85rem; }
.about-note .brand-mark { flex: none; font-weight: 800; }
.about-note ul { margin: 1.25rem 0 0; padding: 0; list-style: none; color: #e5eaff; }
.about-note li { padding-block: .75rem; border-top: 1px solid #a9b7ff42; }
.about-note li:last-child { padding-bottom: 0; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 6vw, 4.5rem);
  padding: clamp(1.25rem, 5vw, 3.25rem);
  border: 1px solid #dfe5ff;
  border-radius: 1rem;
  background: var(--pale);
}
.contact-section { padding-block: clamp(2rem, 7vw, 5rem); background: #f7f8ff; }
form, #draft { display: grid; gap: .65rem; min-width: 0; }
#draft[hidden] { display: none; }
label { font-weight: 650; }
select, textarea {
  width: 100%;
  padding: .7rem;
  border: 1px solid #989fbe;
  border-radius: .5rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position: right 1rem center, right .7rem center;
  background-size: .3rem .3rem;
  background-repeat: no-repeat;
}
textarea { resize: vertical; }
form button { justify-self: start; }
#status:empty { display: none; }

@media (max-width: 760px) {
  .hero-layout, .about-layout, .contact { grid-template-columns: 1fr; }
  .hero-layout { gap: 2rem; min-height: 0; }
  .hero-art { width: min(65%, 280px); justify-self: center; }
  .hero::before, .hero::after { mask-image: linear-gradient(transparent 15%, #000 80%); }
  .cards, .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  html { scroll-padding-top: 7rem; }
  .shell { width: calc(100% - 2rem); }
  .header { flex-direction: column; align-items: stretch; gap: .45rem; padding-block: .5rem; }
  .header .brand { align-self: flex-start; }
  .header .brand { font-size: 1.125rem; gap: .35rem; }
  .header .brand-mark { width: 1.75rem; font-size: 1rem; }
  .header nav { justify-content: space-between; gap: .1rem; padding: .15rem; font-size: .875rem; }
  .header nav a { padding-inline: .3rem; }
}

@media (max-width: 340px) {
  .header nav a { padding-inline: .2rem; }
}
