/*
Theme Name: HALO Dental Studio
Theme URI: https://halodentalstudio.com/
Author: HALO Dental Studio
Description: Tema corporativo ligero para HALO Dental Studio. Diseño editorial, responsive y sin dependencias de maquetadores externos.
Version: 0.4.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: halo-dental-studio
*/

:root {
  --halo-ink: #111210;
  --halo-charcoal: #1b1c1a;
  --halo-paper: #fbfaf7;
  --halo-ivory: #f1eee7;
  --halo-stone: #d9d4ca;
  --halo-muted: #716f69;
  --halo-champagne: #c5a46f;
  --halo-champagne-soft: #e6d8bf;
  --halo-white: #ffffff;
  --halo-border: rgba(17, 18, 16, 0.15);
  --halo-shadow: 0 24px 70px rgba(17, 18, 16, 0.13);
  --halo-radius-sm: 0.35rem;
  --halo-radius-md: 1.1rem;
  --halo-radius-lg: 2rem;
  --halo-container: 78rem;
  --halo-header-height: 6.25rem;
  --halo-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --halo-serif: Didot, "Bodoni MT", "Times New Roman", serif;
  --halo-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--halo-header-height) + 1rem);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--halo-paper);
  color: var(--halo-ink);
  font-family: var(--halo-sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--halo-champagne);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  border-radius: var(--halo-radius-sm);
  background: var(--halo-white);
  color: var(--halo-ink);
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.halo-container {
  width: min(calc(100% - 3rem), var(--halo-container));
  margin-inline: auto;
}

.halo-section {
  position: relative;
  padding-block: clamp(5rem, 9vw, 9rem);
}

.halo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  color: var(--halo-champagne);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.halo-kicker::before {
  width: 2rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.halo-display,
.entry-title {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.7rem);
  font-weight: 430;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.halo-display em {
  font-family: var(--halo-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.halo-lead {
  max-width: 42rem;
  color: var(--halo-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.65;
}

.halo-button {
  display: inline-flex;
  min-height: 3.55rem;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--halo-radius-sm);
  background: var(--halo-ink);
  color: var(--halo-white);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
  text-decoration: none;
  transition: transform 220ms var(--halo-ease), background-color 220ms ease,
    border-color 220ms ease, color 220ms ease;
}

.halo-button::after {
  content: "\2192";
  font-size: 1.15em;
  transition: transform 220ms var(--halo-ease);
}

.halo-button:hover {
  transform: translateY(-2px);
  background: var(--halo-champagne);
  color: var(--halo-ink);
}

.halo-button:hover::after {
  transform: translateX(0.25rem);
}

.halo-button--outline {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--halo-white);
}

.halo-button--outline:hover {
  border-color: var(--halo-white);
  background: var(--halo-white);
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--halo-header-height);
  border-bottom: 1px solid transparent;
  color: var(--halo-white);
  transition: height 260ms var(--halo-ease), background-color 260ms ease,
    border-color 260ms ease, color 260ms ease, box-shadow 260ms ease;
}

.site-header.is-scrolled,
body:not(.home) .site-header {
  height: 5.25rem;
  border-color: var(--halo-border);
  background: rgba(251, 250, 247, 0.94);
  box-shadow: 0 10px 30px rgba(17, 18, 16, 0.06);
  color: var(--halo-ink);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-branding {
  position: relative;
  z-index: 102;
  flex: 0 0 auto;
}

.site-branding a {
  text-decoration: none;
}

.custom-logo-link {
  display: block;
}

.custom-logo {
  width: var(--halo-header-logo-width, 255px);
  max-width: min(var(--halo-header-logo-width, 255px), 34vw);
  height: auto;
  max-height: none;
  object-fit: contain;
  transition: filter 240ms ease, width 240ms var(--halo-ease);
}

body.home .site-header:not(.is-scrolled) .custom-logo {
  filter: brightness(0) invert(1);
}

.halo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.62rem;
  color: inherit;
  line-height: 1;
}

.halo-wordmark__main {
  font-family: var(--halo-serif);
  font-size: 2.05rem;
  letter-spacing: 0.08em;
}

.halo-wordmark__sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 2.4vw, 2.2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  position: relative;
  padding-block: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.primary-navigation .menu > li > a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  content: "";
  transition: transform 220ms var(--halo-ease);
}

.primary-navigation .menu > li > a:hover::after,
.primary-navigation .current-menu-item > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  min-height: 2.9rem;
  padding: 0.75rem 1.1rem;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.site-header.is-scrolled .header-cta,
body:not(.home) .header-cta {
  border-color: var(--halo-ink);
  background: var(--halo-ink);
}

.menu-toggle {
  position: relative;
  z-index: 102;
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  position: absolute;
  left: 50%;
  width: 1.15rem;
  height: 1px;
  transform: translateX(-50%);
  background: currentColor;
  content: "";
  transition: transform 220ms ease, opacity 220ms ease, top 220ms ease;
}

.menu-toggle::before {
  top: 1.05rem;
}

.menu-toggle span {
  top: 1.46rem;
}

.menu-toggle::after {
  top: 1.86rem;
}

.menu-toggle[aria-expanded="true"]::before {
  top: 1.45rem;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::after {
  top: 1.45rem;
  transform: translateX(-50%) rotate(-45deg);
}

/* Hero */
.halo-hero {
  position: relative;
  display: flex;
  min-height: min(58rem, 100svh);
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: var(--halo-charcoal);
  color: var(--halo-white);
}

.halo-hero__media,
.halo-hero__media::after,
.halo-hero__image,
.halo-hero__video {
  position: absolute;
  inset: 0;
}

.halo-hero__media {
  z-index: -2;
}

.halo-hero__image,
.halo-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.halo-hero__image {
  object-position: center;
  animation: halo-hero-drift 16s ease-out both;
}

.halo-hero__video {
  z-index: 1;
  opacity: 0;
  transition: opacity 700ms ease;
}

.halo-hero__video.is-ready {
  opacity: 1;
}

.halo-hero__media::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 9, 8, 0.92) 0%, rgba(8, 9, 8, 0.72) 43%, rgba(8, 9, 8, 0.18) 78%),
    linear-gradient(0deg, rgba(8, 9, 8, 0.72) 0%, transparent 42%);
  content: "";
}

.halo-hero::after {
  position: absolute;
  z-index: -1;
  right: clamp(-14rem, -7vw, -4rem);
  bottom: clamp(-13rem, -15vw, -5rem);
  width: clamp(25rem, 50vw, 48rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.035),
    0 0 0 10rem rgba(255, 255, 255, 0.02);
  content: "";
}

.halo-hero__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding-top: calc(var(--halo-header-height) + 5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.halo-hero__content {
  grid-column: 1 / span 8;
  padding-bottom: clamp(4rem, 8vh, 7rem);
}

.halo-hero .halo-kicker {
  color: var(--halo-champagne-soft);
}

.halo-hero__title {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.5rem, 7.2vw, 7.25rem);
  font-weight: 420;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.halo-hero__title em {
  color: var(--halo-champagne-soft);
  font-family: var(--halo-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.halo-hero__text {
  max-width: 43rem;
  margin: 1.8rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.62;
}

.halo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.halo-hero__actions .halo-button:first-child {
  background: var(--halo-champagne);
  color: var(--halo-ink);
}

.halo-hero__actions .halo-button:first-child:hover {
  background: var(--halo-white);
}

.halo-hero__meta {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.halo-hero__meta-item {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.halo-hero__meta-item::before {
  width: 0.4rem;
  height: 0.4rem;
  border: 1px solid var(--halo-champagne-soft);
  border-radius: 50%;
  content: "";
}

@keyframes halo-hero-drift {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

/* Studio */
.halo-studio {
  overflow: hidden;
  background: var(--halo-paper);
}

.halo-studio__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.7fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}

.halo-studio__copy p {
  margin: 0 0 1.25rem;
}

.halo-studio__copy p:last-child {
  margin-bottom: 0;
}

.halo-values {
  display: grid;
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--halo-border);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.halo-value {
  position: relative;
  min-height: 17rem;
  padding: 2.2rem clamp(1.4rem, 3vw, 2.5rem) 2.4rem 0;
  border-right: 1px solid var(--halo-border);
}

.halo-value + .halo-value {
  padding-left: clamp(1.4rem, 3vw, 2.5rem);
}

.halo-value:last-child {
  border-right: 0;
}

.halo-value__number {
  display: block;
  margin-bottom: 3.3rem;
  color: var(--halo-champagne);
  font-family: var(--halo-serif);
  font-size: 1.05rem;
}

.halo-value h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.halo-value p {
  max-width: 27rem;
  margin: 0;
  color: var(--halo-muted);
}

/* Method */
.halo-method {
  overflow: hidden;
  background: var(--halo-ink);
  color: var(--halo-white);
}

.halo-method__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.halo-method__visual {
  position: relative;
  min-height: clamp(34rem, 64vw, 47rem);
  overflow: hidden;
  border-radius: var(--halo-radius-md);
}

.halo-method__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 12, 11, 0.72));
  content: "";
}

.halo-method__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.halo-method__caption {
  position: absolute;
  z-index: 1;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.halo-method .halo-display {
  max-width: 10ch;
  color: var(--halo-white);
}

.halo-method__intro {
  margin: 1.5rem 0 2.4rem;
  color: rgba(255, 255, 255, 0.67);
  font-size: 1.05rem;
}

.halo-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  list-style: none;
}

.halo-step {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.halo-step__number {
  color: var(--halo-champagne);
  font-family: var(--halo-serif);
  font-size: 1rem;
}

.halo-step h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  font-weight: 650;
}

.halo-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

/* Services */
.halo-services {
  background: var(--halo-ivory);
}

.halo-services__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.6fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.halo-services__head .halo-lead {
  margin: 0;
}

.halo-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--halo-border);
  border-left: 1px solid var(--halo-border);
}

.halo-service {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-right: 1px solid var(--halo-border);
  border-bottom: 1px solid var(--halo-border);
  background: rgba(255, 255, 255, 0.26);
  transition: background-color 260ms ease, color 260ms ease;
}

.halo-service::after {
  position: absolute;
  right: -8rem;
  bottom: -8rem;
  width: 15rem;
  aspect-ratio: 1;
  transform: scale(0.75);
  border: 1px solid rgba(197, 164, 111, 0.5);
  border-radius: 50%;
  content: "";
  opacity: 0;
  transition: transform 500ms var(--halo-ease), opacity 260ms ease;
}

.halo-service:hover {
  background: var(--halo-ink);
  color: var(--halo-white);
}

.halo-service:hover::after {
  transform: scale(1);
  opacity: 1;
}

.halo-service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--halo-champagne);
  font-family: var(--halo-serif);
}

.halo-service__arrow {
  font-family: var(--halo-sans);
  font-size: 1.5rem;
  transition: transform 240ms var(--halo-ease);
}

.halo-service:hover .halo-service__arrow {
  transform: translate(0.25rem, -0.25rem);
}

.halo-service h3 {
  max-width: 14ch;
  margin: clamp(4rem, 7vw, 6rem) 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.halo-service p {
  position: relative;
  z-index: 1;
  max-width: 31rem;
  margin: 0;
  color: var(--halo-muted);
  transition: color 260ms ease;
}

.halo-service:hover p {
  color: rgba(255, 255, 255, 0.7);
}

/* Promise */
.halo-promise {
  background: var(--halo-paper);
}

.halo-promise__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.halo-promise__sticky {
  position: sticky;
  top: 7rem;
}

.halo-promise__list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--halo-border);
  list-style: none;
}

.halo-promise__item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding-block: 2.2rem;
  border-bottom: 1px solid var(--halo-border);
}

.halo-promise__item span {
  color: var(--halo-champagne);
  font-family: var(--halo-serif);
}

.halo-promise__item h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.3rem, 2.3vw, 1.85rem);
  font-weight: 540;
  letter-spacing: -0.025em;
}

.halo-promise__item p {
  margin: 0;
  color: var(--halo-muted);
}

/* Contact CTA */
.halo-contact {
  position: relative;
  overflow: hidden;
  background: var(--halo-charcoal);
  color: var(--halo-white);
}

.halo-contact::before,
.halo-contact::after {
  position: absolute;
  border: 1px solid rgba(197, 164, 111, 0.24);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.halo-contact::before {
  top: 50%;
  right: -10rem;
  width: 34rem;
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.halo-contact::after {
  top: 50%;
  right: -4rem;
  width: 22rem;
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.halo-contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: end;
}

.halo-contact .halo-display {
  max-width: 13ch;
}

.halo-contact__copy {
  max-width: 45rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.05rem;
}

.halo-contact__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}

.halo-contact__actions .halo-button {
  min-width: 13rem;
  background: var(--halo-champagne);
  color: var(--halo-ink);
}

.halo-contact__actions .halo-button:hover {
  background: var(--halo-white);
}

.halo-contact__actions .halo-button--outline {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--halo-white);
}

/* Footer */
.site-footer {
  padding-block: 4rem 2rem;
  background: #0c0d0c;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(16rem, 1.3fr) repeat(2, minmax(10rem, 0.55fr));
  gap: 3rem;
  align-items: start;
}

.site-footer .halo-wordmark {
  color: var(--halo-white);
}

.site-footer__logo-link {
  display: inline-block;
}

.site-footer__logo {
  width: auto;
  max-width: min(var(--halo-footer-logo-width, 270px), 100%);
  max-height: 6.5rem;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.site-footer__statement {
  max-width: 26rem;
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
}

.site-footer h2 {
  margin: 0 0 1.2rem;
  color: var(--halo-champagne-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--halo-white);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.78rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

/* Interior pages */
.site-main--interior {
  min-height: 70vh;
  padding-top: calc(var(--halo-header-height) + 4rem);
  padding-bottom: 6rem;
}

.entry-header {
  padding-block: 4rem 2rem;
  border-bottom: 1px solid var(--halo-border);
}

.entry-content {
  max-width: 52rem;
  padding-top: 3rem;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.8em;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.entry-content a {
  color: #6f552d;
}

/* Reveal motion */
.js .reveal {
  transform: translateY(1.6rem);
  opacity: 0;
  transition: transform 760ms var(--halo-ease), opacity 680ms ease;
}

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

.js .reveal--delay-1 { transition-delay: 90ms; }
.js .reveal--delay-2 { transition-delay: 180ms; }

@media (max-width: 960px) {
  :root {
    --halo-header-height: 5.5rem;
  }

  .js .menu-toggle {
    display: inline-block;
  }

  .js .primary-navigation {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 7rem 1.5rem 3rem;
    transform: translateY(-1rem);
    background: var(--halo-paper);
    color: var(--halo-ink);
    opacity: 0;
    transition: visibility 0s linear 260ms, opacity 260ms ease,
      transform 260ms var(--halo-ease);
  }

  .js .primary-navigation.is-open {
    visibility: visible;
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0s;
  }

  .js .primary-navigation ul {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .js .primary-navigation .menu > li {
    width: 100%;
    border-bottom: 1px solid var(--halo-border);
  }

  .js .primary-navigation .menu > li > a {
    display: block;
    padding-block: 0.75rem;
    font-size: clamp(1.7rem, 7vw, 2.8rem);
    font-weight: 450;
    letter-spacing: -0.04em;
  }

  .js .primary-navigation .menu > li > a::after {
    display: none;
  }

  .js .header-cta {
    width: 100%;
    margin-top: 1.5rem;
    border-color: var(--halo-ink);
    background: var(--halo-ink);
  }

  .menu-open .site-header,
  .menu-open .site-header:not(.is-scrolled) {
    color: var(--halo-ink);
  }

  .menu-open .site-header .custom-logo {
    filter: none !important;
  }

  .halo-hero__content {
    grid-column: 1 / span 10;
  }

  .halo-studio__intro,
  .halo-method__grid,
  .halo-services__head,
  .halo-promise__grid {
    grid-template-columns: 1fr;
  }

  .halo-method__visual {
    min-height: 34rem;
  }

  .halo-promise__sticky {
    position: static;
  }

  .halo-contact__grid {
    grid-template-columns: 1fr;
  }

  .halo-contact__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .halo-container {
    width: min(calc(100% - 2rem), var(--halo-container));
  }

  .halo-section {
    padding-block: 4.5rem;
  }

  .halo-wordmark__main {
    font-size: 1.7rem;
  }

  .halo-wordmark__sub {
    display: none;
  }

  .custom-logo {
    width: min(var(--halo-header-logo-mobile-width, 195px), calc(100vw - 7rem));
    max-width: min(var(--halo-header-logo-mobile-width, 195px), calc(100vw - 7rem));
    max-height: none;
  }

  .halo-hero {
    min-height: 48rem;
  }

  .halo-hero__media::after {
    background: linear-gradient(90deg, rgba(8, 9, 8, 0.88), rgba(8, 9, 8, 0.44)),
      linear-gradient(0deg, rgba(8, 9, 8, 0.78), transparent 55%);
  }

  .halo-hero__inner {
    padding-top: 8rem;
  }

  .halo-hero__content {
    grid-column: 1 / -1;
    padding-bottom: 3.5rem;
  }

  .halo-hero__title {
    font-size: clamp(3rem, 14.8vw, 4.75rem);
  }

  .halo-hero__actions,
  .halo-contact__actions {
    flex-direction: column;
  }

  .halo-hero__actions .halo-button,
  .halo-contact__actions .halo-button {
    width: 100%;
  }

  .halo-hero__meta {
    grid-template-columns: 1fr;
  }

  .halo-hero__meta-item {
    min-height: 2.6rem;
    padding-top: 0;
  }

  .halo-hero__meta-item:nth-child(n+2) {
    display: none;
  }

  .halo-values,
  .halo-services__grid {
    grid-template-columns: 1fr;
  }

  .halo-value,
  .halo-value + .halo-value {
    min-height: auto;
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--halo-border);
  }

  .halo-value__number {
    margin-bottom: 1.8rem;
  }

  .halo-method__visual {
    min-height: 27rem;
  }

  .halo-method__caption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .halo-service {
    min-height: 18rem;
    padding: 2rem;
  }

  .halo-service h3 {
    margin-top: 3.5rem;
  }

  .halo-promise__item {
    grid-template-columns: 2.25rem 1fr;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    transform: none;
    opacity: 1;
  }

  .halo-hero__video {
    display: none;
  }
}
