/* =========================================================
   OnPres: Landing Page
   Tema: ateliê digital em roxo escuro
   ========================================================= */

:root {
  --bg: #0a0712;
  --bg-elevated: #140f1f;
  --bg-soft: #1c1529;
  --ink: #f0ebf8;
  --muted: #9b93a8;
  --accent: #8b5cf6;
  --accent-strong: #c4b5fd;
  --accent-soft: rgba(109, 40, 217, 0.2);
  --btn: #3b0764;
  --btn-hover: #4c1d95;
  --btn-text: #ffffff;
  --line: rgba(240, 235, 248, 0.1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --container: 1120px;
  --header-h: 72px;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(900px 500px at -10% 25%, rgba(88, 28, 135, 0.28), transparent 50%),
    radial-gradient(700px 400px at 50% 100%, rgba(167, 139, 250, 0.08), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  z-index: 1000;
  background: var(--btn);
  color: var(--btn-text);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 7, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 100%;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  background: rgba(59, 7, 100, 0.45);
  color: var(--accent-strong);
  font-size: 0.85rem;
  border: 1px solid rgba(139, 92, 246, 0.45);
}

.logo-text {
  font-size: 1.05rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header,
main,
.site-footer {
  max-width: 100%;
  overflow-x: clip;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  color: var(--btn-text) !important;
  background: var(--btn);
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-weight: 600 !important;
  border: 1px solid rgba(196, 181, 253, 0.18);
  box-shadow: 0 8px 24px rgba(59, 7, 100, 0.35);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--btn-hover);
  color: var(--btn-text) !important;
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-mobile {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: rgba(10, 7, 18, 0.97);
  border-bottom: 1px solid var(--line);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  padding: 0.85rem 0.5rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.nav-mobile a:last-child {
  border-bottom: 0;
  color: var(--btn-text);
  background: var(--btn);
  border-radius: 999px;
  text-align: center;
  margin-top: 0.5rem;
  border: 1px solid rgba(196, 181, 253, 0.2);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 920px);
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 5rem;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.04);
  animation: hero-zoom 12s var(--ease) both;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(10, 7, 18, 0.68) 0%,
      rgba(10, 7, 18, 0.48) 38%,
      rgba(10, 7, 18, 0.78) 68%,
      rgba(10, 7, 18, 0.96) 88%,
      var(--bg) 100%
    ),
    linear-gradient(105deg, rgba(10, 7, 18, 0.88) 0%, rgba(10, 7, 18, 0.55) 42%, rgba(18, 8, 36, 0.35) 72%, rgba(26, 10, 46, 0.45) 100%),
    radial-gradient(ellipse at 78% 42%, rgba(76, 29, 149, 0.32), transparent 55%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 2rem;
}

.hero-content {
  width: min(100%, 40rem);
  padding-block: 1rem 0.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 8.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 0 0 1.15rem;
  color: var(--ink);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero-title {
  font-size: clamp(1.28rem, 3.6vw, 2rem);
  font-weight: 600;
  color: rgba(240, 235, 248, 0.94);
  max-width: 32ch;
  margin-bottom: 1.1rem;
  line-height: 1.25;
}

.hero-lead {
  color: var(--muted);
  max-width: 44ch;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Visual direito: mockup notebook + celular */
.hero-visual {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.4) 0%, rgba(59, 7, 100, 0.12) 45%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.hero-devices {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(100%, 480px);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.55));
}

.hero-devices img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  animation: hero-float 7s var(--ease) infinite;
}

.hero-caption {
  position: relative;
  z-index: 1;
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.7);
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 719px) {
  .hero {
    min-height: 88svh;
    align-items: center;
    padding: calc(var(--header-h) + 2rem) 0 4.25rem;
  }

  .hero-content {
    width: min(100%, 40rem);
    padding-block: 0.5rem;
  }

  .hero-brand {
    margin-bottom: 1rem;
  }

  .hero-title {
    margin-bottom: 1rem;
    max-width: 26ch;
  }

  .hero-actions {
    margin-top: 1.75rem;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 11.5rem);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.15rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--btn);
  color: var(--btn-text);
  border-color: rgba(196, 181, 253, 0.22);
  box-shadow:
    0 10px 28px rgba(59, 7, 100, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  background: var(--btn-hover);
  color: var(--btn-text);
  box-shadow:
    0 14px 34px rgba(76, 29, 149, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(240, 235, 248, 0.18);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(196, 181, 253, 0.4);
  background: rgba(76, 29, 149, 0.22);
  color: var(--btn-text);
}

/* ---------- Sections ---------- */

.section {
  padding: 5.5rem 0;
  position: relative;
}

.services {
  padding-top: 4rem;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2,
.about-copy h2,
.contact-copy h2,
.problem .section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.section-lead {
  color: var(--muted);
  margin: 0;
}

/* Services */

.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service-index {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.service h3 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.service .service-kicker {
  margin: 0 0 0.65rem;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service p {
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}

.service .service-kicker + p {
  max-width: 38ch;
}

/* Problem (erro × solução) */

.problem-grid {
  display: grid;
  gap: 1.25rem;
}

.problem-card {
  padding: 1.6rem 1.4rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.problem-card--erro {
  background:
    linear-gradient(160deg, rgba(120, 40, 40, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(248, 113, 113, 0.22);
}

.problem-card--solucao {
  background:
    linear-gradient(160deg, rgba(109, 40, 217, 0.18), transparent 55%),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(196, 181, 253, 0.28);
}

.problem-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.problem-card--erro .problem-label {
  color: #fca5a5;
}

.problem-card--solucao .problem-label {
  color: var(--accent-strong);
}

.problem-card h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin-bottom: 0.7rem;
}

.problem-card p:last-child {
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}

/* Plans */

.plans .section-head {
  max-width: 34rem;
}

.plan-card {
  max-width: 40rem;
  padding: 2rem 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(196, 181, 253, 0.28);
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(124, 58, 237, 0.22), transparent 55%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.plan-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  background: rgba(59, 7, 100, 0.45);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-card h3 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin-bottom: 0.65rem;
}

.plan-lead {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 40ch;
}

.plan-parts {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.plan-part {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.plan-part h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plan-part p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.plan-actions .btn {
  flex: 1 1 12rem;
}

/* FAQ */

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 44rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 0;
  overflow: clip;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-strong);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.25rem;
  color: var(--muted);
  max-width: 48ch;
}

/* Process */

.process {
  background:
    linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.06), transparent);
}

.process-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.process-list li {
  counter-increment: step;
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 1.35rem 1.35rem 4.25rem;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.15rem;
  top: 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

.process-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.process-list span {
  color: var(--muted);
}

/* Projects */

.projects-grid {
  display: grid;
  gap: 1.5rem;
}

.project {
  display: grid;
  gap: 0.9rem;
}

.project-media {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  aspect-ratio: 16 / 11;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project:hover .project-media img {
  transform: scale(1.04);
}

.project-meta h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.project-meta p {
  color: var(--muted);
  margin: 0;
}

/* About */

.about-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-media {
  margin: 0;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  max-width: 520px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p {
  color: var(--muted);
}

.about-points {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.about-points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--btn);
}

.quotes {
  display: grid;
  gap: 1.25rem;
}

blockquote {
  margin: 0;
  padding: 1.6rem 1.4rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  margin-bottom: 1rem;
}

blockquote footer {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */

.contact-panel {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.4rem;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(124, 58, 237, 0.22), transparent 55%),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.contact-copy p {
  color: var(--muted);
}

.contact-channels {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.contact-channels a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-copy a {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(240, 235, 248, 0.88);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  min-height: 1.4em;
  margin: 0;
  font-size: 0.92rem;
  color: var(--accent-strong);
}

.contact-form .btn {
  justify-self: start;
  border: 0;
}

/* Footer */

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}

.footer-tag {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.92rem;
  max-width: 36ch;
}

.footer-creds {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-creds a {
  color: var(--accent-strong);
  font-weight: 600;
}

.footer-copy {
  color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover,
.footer-creds a:hover {
  color: var(--ink);
}

/* ---------- Motion / reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.hero .reveal:nth-child(2) {
  transition-delay: 0.18s;
}
.hero .reveal:nth-child(3) {
  transition-delay: 0.3s;
}
.hero .reveal:nth-child(4) {
  transition-delay: 0.42s;
}

@keyframes hero-zoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-media img,
  .project-media img,
  .hero-devices img,
  .btn {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 720px) {
  .hero {
    min-height: min(100svh, 920px);
    padding: calc(var(--header-h) + 3rem) 0 5.5rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .service {
    padding: 0 0 0 0;
    border: 0;
    border-top: 0;
  }

  .service:last-child {
    border-bottom: 0;
  }

  .service + .service {
    border-left: 1px solid var(--line);
    padding-left: 1.5rem;
  }

  .problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .plan-card {
    padding: 2.4rem 2.2rem;
  }

  .plan-parts {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.5rem;
  }

  .quotes {
    grid-template-columns: 1fr 1fr;
  }

  .contact-panel {
    padding: 2.5rem;
  }
}

@media (min-width: 900px) {
  .hero-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 2.5rem;
    align-items: center;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .about-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }

  .process-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }

  .process-layout .section-head {
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }

  .contact-panel {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr auto;
    align-items: end;
  }
}

@media (min-width: 1100px) {
  .hero {
    padding: calc(var(--header-h) + 3.5rem) 0 6.5rem;
  }

  .hero-shell {
    gap: 3rem;
  }

  .hero-content {
    max-width: 46rem;
    width: min(100%, 46rem);
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-devices {
    width: min(100%, 520px);
  }
}
