:root {
  --navy: #001840;
  --blue: #102a71;
  --gold: #f6c400;
  --soft-gold: #ffdc65;
  --ivory: #fffdf0;
  --sand: #f7f5ed;
  --white: #ffffff;
  --text: #06142d;
  --muted: #606a7a;
  --line: rgba(0, 24, 64, 0.1);
  --line-dark: rgba(255, 253, 240, 0.17);
  --shadow: 0 28px 70px rgba(0, 24, 64, 0.06);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
}

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

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

p {
  margin: 0;
  line-height: 1.7;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
}

.container {
  width: min(1200px, calc(100% - 72px));
  margin: 0 auto;
}

.section {
  padding: 112px 0;
}

.eyebrow {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.button:hover {
  transform: translateY(-3px);
  background: var(--soft-gold);
  box-shadow: 0 14px 34px rgba(246, 196, 0, 0.26);
}

.button-outline {
  border-color: var(--navy);
  background: transparent;
}

.button-outline:hover {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 13px 28px rgba(0, 24, 64, 0.12);
}

.button-small {
  min-height: 44px;
  padding: 0 20px;
}

.header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 240, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--text);
  font-size: 0.84rem;
}

.nav-links > a:not(.button) {
  position: relative;
}

.nav-links > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links > a:not(.button):hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.hero {
  overflow: hidden;
  padding: 148px 0 78px;
  background: var(--ivory);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(525px, 1.12fr) minmax(350px, 0.76fr);
  align-items: start;
  gap: 94px;
  min-height: calc(100vh - 226px);
}

.hero .eyebrow {
  margin-bottom: 27px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.45rem, 5.5vw, 5.25rem);
  letter-spacing: -0.025em;
}

.hero h1 span {
  display: block;
  color: var(--blue);
}

.hero-text {
  max-width: 550px;
  margin: 30px 0 44px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
}

.hero-details div {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-details strong,
.hero-details span {
  display: block;
}

.hero-details strong {
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-visual {
  align-self: start;
  justify-self: end;
  width: min(470px, 100%);
  margin-top: 8px;
}

.hero-visual img {
  width: 100%;
  box-shadow: var(--shadow);
}

.hero-content {
  animation: hero-rise 0.82s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-visual {
  animation: hero-rise 0.82s 0.16s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.visual-note {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 4px 0;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-strip {
  padding: 66px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(500px, 1.3fr);
  align-items: center;
  gap: 68px;
}

.trust-title {
  max-width: 390px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.14;
}

.trust-points {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.trust-points span {
  flex: 1;
  padding-top: 20px;
  border-top: 1px solid var(--gold);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 60px;
}

.section-heading h2 {
  margin-top: 18px;
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
}

.services {
  padding-top: 92px;
  background: var(--sand);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 285px;
  padding: 38px 34px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: box-shadow 0.34s ease, transform 0.34s ease;
}

.service-card::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.38s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(0, 24, 64, 0.07);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 35px;
  border: 1px solid rgba(16, 42, 113, 0.12);
  color: var(--blue);
  transition: background 0.34s ease, border-color 0.34s ease, transform 0.34s ease;
}

.service-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.service-card:hover .service-icon {
  border-color: var(--gold);
  background: var(--gold);
  transform: scale(1.06);
}

.service-card span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.service-card h3 {
  margin: 25px 0 18px;
  font-size: 1.8rem;
}

.service-card p {
  max-width: 320px;
  color: var(--muted);
  font-size: 0.91rem;
}

.portfolio {
  background: var(--white);
}

.section-heading.horizontal {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: none;
}

#portfolio .section-heading.horizontal {
  display: block;
  max-width: 720px;
  margin-bottom: 46px;
}

.coming-note {
  max-width: 305px;
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 0.87rem;
}

.client-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, auto);
  align-items: center;
  gap: 29px;
  margin-bottom: 42px;
  padding: 25px 30px;
  border: 1px solid var(--line);
  background: var(--ivory);
}

.client-strip p {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.client-strip a {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.client-strip a:hover {
  color: var(--blue);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.work-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ivory);
  transition:
    border-color 0.34s ease,
    box-shadow 0.34s ease,
    transform 0.34s ease;
}

.work-card:nth-child(even) .work-media {
  order: 2;
}

.work-card:hover {
  transform: translateY(-7px);
  border-color: rgba(246, 196, 0, 0.58);
  box-shadow: 0 28px 58px rgba(0, 24, 64, 0.1);
}

.work-media {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: var(--ivory);
}

.work-media::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 24, 64, 0.08), rgba(0, 24, 64, 0.01) 52%);
  content: "";
  opacity: 0.62;
  transition: opacity 0.4s ease;
}

.work-media img,
.work-media video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: var(--ivory);
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card--vanessa .work-media img {
  object-position: center top;
}

.work-card--bagual .work-media img {
  object-position: center 52%;
}

.work-card--ana-martinez .work-media img {
  object-position: center 54%;
}

.work-card--gustavo .work-media img {
  object-position: center 58%;
}

.work-card--ana-militao .work-media img {
  object-position: center 45%;
}

.work-media video {
  object-position: center top;
}

.work-card:hover .work-media::after {
  opacity: 0.86;
}

.work-card:hover .work-media img,
.work-card:hover .work-media video {
  transform: scale(1.025);
}

.work-caption {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 44px;
}

.work-caption span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 0.28s ease, transform 0.28s ease;
}

.work-caption .work-client {
  margin-top: 0;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.work-caption h3 {
  max-width: 560px;
  color: var(--navy);
  font-size: clamp(1.25rem, 1.65vw, 1.55rem);
  line-height: 1.18;
  transition: color 0.28s ease;
}

.work-caption p {
  max-width: 560px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.work-services {
  max-width: 520px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.work-details {
  margin-top: 18px;
}

.work-details summary,
.work-caption a {
  display: inline-block;
  align-self: flex-start;
  margin-top: 24px;
  border-bottom: 1px solid var(--gold);
  color: var(--blue);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
  transition: color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.work-card:hover .work-caption span {
  color: var(--navy);
  transform: translateX(4px);
}

.work-card:hover .work-caption h3 {
  color: var(--blue);
}

.work-caption a:hover,
.work-caption a:focus-visible {
  border-color: var(--blue);
  color: var(--navy);
  transform: translateX(6px);
}

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

.work-details video {
  height: 290px;
  margin-top: 20px;
}

.work-details a {
  margin-top: 18px;
}

.diagnosis {
  background: var(--blue);
  color: var(--white);
}

.diagnosis .eyebrow {
  margin-bottom: 17px;
  color: var(--soft-gold);
}

.diagnosis-intro h2 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(2.5rem, 4vw, 3.35rem);
  letter-spacing: -0.02em;
}

.diagnosis-text {
  max-width: 680px;
  color: rgba(255, 253, 240, 0.72);
}

.diagnosis-test-note {
  max-width: 680px;
  margin-top: 24px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 253, 240, 0.16);
  color: rgba(255, 253, 240, 0.76);
  font-size: 0.8rem;
}

.diagnosis-workspace {
  margin-top: 54px;
}

.diagnosis-form {
  padding: 44px;
  background: var(--ivory);
  color: var(--text);
}

.diagnosis-form-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 36px;
}

.diagnosis-form-heading span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.diagnosis-form-heading h3 {
  color: var(--navy);
  font-size: 2rem;
}

.diagnosis-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 23px 38px;
}

.diagnosis-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--blue);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.diagnosis-form label span {
  color: var(--muted);
  font-size: 0.63rem;
}

.diagnosis-form input,
.diagnosis-form select,
.diagnosis-form textarea {
  width: 100%;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid rgba(0, 24, 64, 0.18);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: 400 0.93rem var(--sans);
  letter-spacing: normal;
  text-transform: none;
}

.diagnosis-form input:focus,
.diagnosis-form select:focus,
.diagnosis-form textarea:focus {
  border-color: var(--gold);
  outline: 0;
}

.diagnosis-form textarea {
  resize: vertical;
}

.diagnosis-observations {
  margin-top: 8px;
}

.diagnosis-form-actions {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 38px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: 700 0.72rem var(--sans);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.text-button {
  border-bottom: 1px solid rgba(16, 42, 113, 0.24);
  padding: 10px 0;
}

.diagnosis-result {
  margin-top: 28px;
  padding: 46px;
  background: var(--white);
  color: var(--text);
}

.result-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.result-header .eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
}

.result-header h3 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
}

.result-profile {
  color: var(--blue);
  font-weight: 700;
}

.result-grid {
  grid-template-columns: repeat(4, 1fr);
  margin: 32px 0;
}

.result-grid article {
  padding: 22px 20px;
  border: 1px solid var(--line);
  background: var(--ivory);
}

.result-grid p {
  white-space: pre-line;
}

.diagnosis-result h4 {
  margin: 0 0 13px;
  color: var(--blue);
  font: 700 0.68rem var(--sans);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.diagnosis-result p,
.diagnosis-result li {
  color: var(--muted);
  font-size: 0.88rem;
}

.diagnosis-columns {
  grid-template-columns: repeat(3, 1fr);
}

.result-list {
  padding: 28px 24px;
  border-top: 2px solid var(--gold);
  background: var(--ivory);
}

.result-list.attention {
  border-top-color: var(--blue);
}

.result-list ul {
  margin: 0;
  padding-left: 18px;
}

.result-list li + li {
  margin-top: 11px;
}

.result-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-top: 26px;
  padding: 34px 36px;
  border: 1px solid rgba(246, 196, 0, 0.45);
  background: var(--navy);
}

.result-contact .eyebrow {
  margin-bottom: 13px;
  color: var(--soft-gold);
}

.diagnosis-result .result-contact h4 {
  margin-bottom: 13px;
  color: var(--white);
  font: 500 clamp(1.7rem, 2.4vw, 2.1rem) var(--serif);
  letter-spacing: normal;
  line-height: 1.1;
  text-transform: none;
}

.diagnosis-result .result-contact p:not(.eyebrow) {
  max-width: 590px;
  color: rgba(255, 253, 240, 0.74);
}

.result-contact .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.about {
  background: var(--ivory);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  align-items: center;
  gap: 94px;
}

.about-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  padding: 46px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(246, 196, 0, 0.1), transparent 52%),
    var(--white);
}

.about-visual img {
  width: min(270px, 72%);
  margin: auto;
}

.about-visual span {
  color: var(--blue);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.about-content h2 {
  margin: 19px 0 27px;
  font-size: clamp(2.45rem, 4vw, 3.45rem);
  letter-spacing: -0.02em;
}

.about-content > p:not(.eyebrow) {
  color: var(--muted);
}

.about-location {
  margin-top: 32px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
  color: var(--blue) !important;
  font-weight: 600;
}

.testimonials {
  background: var(--white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testimonial-card {
  min-height: 235px;
  padding: 33px 30px;
  border: 1px solid var(--line);
  background: var(--ivory);
}

.testimonial-card span {
  color: var(--blue);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.testimonial-card p {
  margin-top: 39px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.27;
}

.testimonial-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.78rem;
}

.budget {
  background: var(--navy);
  color: var(--white);
}

.budget .eyebrow {
  color: var(--soft-gold);
}

.budget-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 82px;
  align-items: start;
}

.budget-copy h2 {
  margin: 18px 0 25px;
  color: var(--white);
  font-size: clamp(2.55rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
}

.budget-copy > p:not(.eyebrow) {
  margin-bottom: 42px;
  color: rgba(255, 253, 240, 0.68);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  margin-top: 14px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-item:hover {
  color: var(--soft-gold);
}

.budget-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 44px;
  background: var(--ivory);
  color: var(--text);
}

.budget-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--blue);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.budget-form input,
.budget-form select,
.budget-form textarea {
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(0, 24, 64, 0.18);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: 400 0.93rem var(--sans);
}

.budget-form input:focus,
.budget-form select:focus,
.budget-form textarea:focus {
  border-color: var(--gold);
  outline: 0;
}

.budget-form textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.budget-form .button {
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.form-note {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.footer {
  padding: 48px 0 23px;
  border-top: 1px solid rgba(255, 253, 240, 0.12);
  background: var(--navy);
  color: rgba(255, 253, 240, 0.62);
}

.footer-grid {
  display: grid;
  grid-template-columns: 105px 1fr auto;
  align-items: center;
  gap: 38px;
  padding-bottom: 39px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-grid img {
  width: 82px;
  height: 82px;
  object-fit: cover;
}

.footer-grid p {
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 27px;
  color: var(--white);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--gold);
}

.copyright {
  margin-top: 23px;
  color: rgba(255, 253, 240, 0.46);
  font-size: 0.73rem;
  text-align: center;
}

.floating-whatsapp {
  position: fixed;
  z-index: 12;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 14px 32px rgba(0, 24, 64, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: whatsapp-pulse 3.4s ease-out infinite;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  background: var(--soft-gold);
}

.floating-whatsapp svg {
  width: 31px;
  fill: var(--navy);
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.work-grid .reveal-ready {
  transform: translateY(34px) scale(0.985);
}

.work-grid .reveal-ready.is-visible {
  transform: translateY(0) scale(1);
}

.service-grid .reveal-ready:nth-child(2),
.work-grid .reveal-ready:nth-child(2),
.testimonial-grid .reveal-ready:nth-child(2) {
  transition-delay: 0.07s;
}

.service-grid .reveal-ready:nth-child(3),
.work-grid .reveal-ready:nth-child(3),
.testimonial-grid .reveal-ready:nth-child(3) {
  transition-delay: 0.14s;
}

.work-grid .reveal-ready:nth-child(4) {
  transition-delay: 0.21s;
}

.work-grid .reveal-ready:nth-child(5) {
  transition-delay: 0.28s;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes whatsapp-pulse {
  0%,
  70%,
  100% {
    box-shadow: 0 14px 32px rgba(0, 24, 64, 0.16), 0 0 0 0 rgba(246, 196, 0, 0.24);
  }

  84% {
    box-shadow: 0 14px 32px rgba(0, 24, 64, 0.16), 0 0 0 12px rgba(246, 196, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .hero-grid,
  .trust-grid,
  .about-grid,
  .budget-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 64px;
  }

  .hero-visual {
    justify-self: start;
  }

  .trust-grid,
  .about-grid {
    gap: 44px;
  }

  .result-grid,
  .diagnosis-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-strip p {
    grid-column: 1 / -1;
  }

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

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .budget-grid {
    gap: 55px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 38px, 560px);
  }

  .section {
    padding: 76px 0;
  }

  .nav {
    min-height: 76px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .menu-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 42px;
    padding: 11px;
    border: 0;
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    height: 1px;
    background: var(--navy);
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 25px;
    border-bottom: 1px solid var(--line);
    background: var(--ivory);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a:not(.button) {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links > a:not(.button)::after {
    display: none;
  }

  .nav-links .button {
    margin-top: 20px;
  }

  .hero {
    padding: 128px 0 70px;
  }

  .hero-grid {
    display: block;
    min-height: unset;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 3.8rem);
  }

  .hero-text {
    margin: 24px 0 34px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-details {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 50px 0;
  }

  .trust-points {
    display: block;
  }

  .trust-points span {
    display: block;
  }

  .trust-points span + span {
    margin-top: 25px;
  }

  .visual-note {
    display: block;
  }

  .visual-note p + p {
    margin-top: 6px;
  }

  .service-grid,
  .work-grid,
  .testimonial-grid,
  .diagnosis-fields,
  .result-grid,
  .diagnosis-columns,
  .budget-form {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 32px 25px;
  }

  .service-card h3 {
    margin-top: 34px;
  }

  .section-heading.horizontal {
    display: block;
  }

  .coming-note {
    margin-top: 22px;
  }

  .client-strip {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
    margin-bottom: 30px;
    padding: 25px 22px;
  }

  .work-media img,
  .work-media video {
    position: absolute;
    height: 100%;
    min-height: 100%;
    max-height: none;
  }

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-media {
    min-height: 320px;
    aspect-ratio: 4 / 5;
  }

  .work-card:nth-child(even) .work-media {
    order: 0;
  }

  .work-caption {
    padding: 30px 22px;
  }

  .work-details video {
    height: auto;
    max-height: 390px;
    aspect-ratio: 4 / 5;
  }

  .diagnosis-form,
  .diagnosis-result {
    padding: 29px 22px;
  }

  .diagnosis-form-actions,
  .result-header,
  .result-contact {
    align-items: stretch;
    flex-direction: column;
  }

  .diagnosis-form-actions .button {
    width: 100%;
  }

  .result-contact {
    gap: 25px;
    padding: 28px 22px;
  }

  .result-contact .button {
    width: 100%;
  }

  .result-profile {
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .about-visual {
    min-height: 360px;
    padding: 27px;
  }

  .testimonial-card {
    min-height: auto;
  }

  .budget-form {
    padding: 30px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid img {
    width: 72px;
    height: 72px;
  }

  .floating-whatsapp {
    right: 17px;
    bottom: 17px;
    width: 55px;
    height: 55px;
  }
}
