/* ═══════════════════════════════════════════════
   ERLYN ARIAS — Editorial Luxury Beauty
   ═══════════════════════════════════════════════ */

:root {
  --ink: #1a1310;
  --ink-2: #241a15;
  --ink-3: #2e211b;
  --cream: #f4ebdf;
  --cream-2: #efe3d3;
  --cream-dim: #c9bba8;
  --gold: #c2a168;
  --gold-lt: #d9bd8c;
  --blush: #cd9384;
  --line: rgba(244, 235, 223, .14);
  --line-dk: rgba(26, 19, 16, .14);

  --serif: "Bodoni Moda", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(1.4rem, 5vw, 7rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

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

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

em {
  font-style: italic
}

::selection {
  background: var(--gold);
  color: var(--ink)
}

/* ─── Texture overlays ─── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Custom cursor ─── */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference
}

.cursor {
  width: 34px;
  height: 34px;
  border: 1px solid var(--cream);
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--cream);
  transform: translate(-50%, -50%)
}

.cursor.is-hover {
  width: 64px;
  height: 64px;
  background: var(--cream)
}

@media (hover:none) {

  .cursor,
  .cursor-dot {
    display: none
  }
}

/* ─── Preloader ─── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--ink);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.4rem;
  transition: opacity .8s var(--ease), visibility .8s
}

.loader.done {
  opacity: 0;
  visibility: hidden
}

.loader__mark {
  height: clamp(60px, 12vw, 92px);
  width: auto
}

.loader__name {
  font-family: var(--script);
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--gold)
}

.loader__bar {
  width: 160px;
  height: 1px;
  background: var(--line);
  overflow: hidden
}

.loader__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform: translateX(-100%);
  animation: load 1.4s var(--ease) forwards
}

@keyframes load {
  to {
    transform: translateX(0)
  }
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: .9rem var(--pad);
  background: rgba(20, 15, 12, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line)
}

/* While the mobile menu is open, drop the header's backdrop-filter:
   a filtered ancestor re-roots position:fixed children to itself,
   which would trap the full-screen overlay inside the header bar.
   transition:none makes the filter vanish instantly — otherwise it
   eases out over .4s and the overlay snaps to full height mid-way. */
body.nav-open .nav,
body.nav-open .nav.scrolled {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: transparent;
  transition: none;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--serif)
}

.nav__brand-mark {
  height: 40px;
  width: auto;
  transition: transform .4s var(--ease)
}

.nav__brand:hover .nav__brand-mark {
  transform: scale(1.06)
}

.nav__brand-name {
  height: 42px;
  width: auto;
  margin-top: 2px
}

.nav__links {
  display: flex;
  gap: 2.2rem
}

.nav__links a {
  position: relative;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color .3s
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .35s var(--ease)
}

.nav__links a:hover {
  color: var(--cream)
}

.nav__links a:hover::after {
  width: 100%
}

.nav__cta {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .7rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 40px;
  color: var(--gold);
  transition: background .35s var(--ease), color .35s
}

.nav__cta:hover {
  background: var(--gold);
  color: var(--ink)
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px
}

.nav__burger span {
  width: 26px;
  height: 1.5px;
  background: var(--cream);
  transition: transform .35s var(--ease), opacity .25s var(--ease)
}

/* burger → X when the menu is open */
.nav__burger.active span:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg)
}

.nav__burger.active span:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg)
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--pad) 5rem;
  overflow: hidden
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1
}

.hero__video,
.hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(120% 90% at 70% 20%, var(--ink-3), var(--ink) 60%);
}

.hero__video {
  filter: saturate(.85) contrast(1.02) brightness(.62)
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink) 4%, rgba(26, 19, 16, .62) 45%, rgba(26, 19, 16, .74) 100%),
    radial-gradient(90% 70% at 85% 15%, rgba(0, 0, 0, .55), transparent 55%),
    radial-gradient(80% 60% at 18% 82%, rgba(205, 147, 132, .14), transparent 60%);
}

.hero__inner {
  max-width: 960px
}

.hero__eyebrow {
  font-size: .8rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem
}

.hero__eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--gold)
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.01em;
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  text-wrap: balance;
}

.hero__title span {
  display: block
}

.hero__script {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.hero__sub {
  max-width: 34ch;
  margin: 2rem 0 2.6rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--cream-2)
}

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

.hero__scroll {
  position: absolute;
  left: var(--pad);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-dim)
}

.hero__scroll i {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--gold), transparent);
  position: relative;
  overflow: hidden
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: scrolldot 2.2s var(--ease) infinite
}

@keyframes scrolldot {
  0% {
    transform: translateY(-100%)
  }

  60%,
  100% {
    transform: translateY(100%)
  }
}

.hero__sign {
  position: absolute;
  right: var(--pad);
  bottom: 1.6rem;
  height: clamp(38px, 6vw, 68px);
  width: auto;
  opacity: .16;
  pointer-events: none
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 1.05rem 2.3rem;
  border-radius: 44px;
  overflow: hidden;
  transition: color .4s var(--ease), border-color .4s
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease)
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left
}

.btn--solid {
  background: var(--gold);
  color: var(--ink)
}

.btn--solid::before {
  background: var(--cream)
}

.btn--solid:hover {
  color: var(--ink)
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--cream)
}

.btn--ghost::before {
  background: var(--cream)
}

.btn--ghost:hover {
  color: var(--ink)
}

.btn--full {
  width: 100%
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink-2)
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.3rem 0;
  white-space: nowrap;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  color: var(--cream)
}

.marquee__track i {
  color: var(--gold);
  font-style: normal;
  font-size: .6em
}

@keyframes marquee {
  to {
    transform: translateX(-50%)
  }
}

/* ═══════════ SHARED SECTIONS ═══════════ */
section {
  padding: clamp(4.5rem, 11vw, 9rem) var(--pad)
}

.eyebrow {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .8rem
}

.eyebrow::before {
  content: "✦";
  font-size: .7em
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 760px
}

.section-head--center {
  margin-inline: auto;
  text-align: center
}

.section-head--center .eyebrow {
  justify-content: center
}

.section-head h2,
.about__text h2,
.contact__intro h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  text-wrap: balance
}

.section-head h2 em,
.about__text h2 em,
.contact__intro h2 em {
  color: var(--gold)
}

.section-head__note {
  margin-top: 1.2rem;
  color: var(--cream-dim);
  font-size: 1.05rem
}

/* ═══════════ ABOUT (light) ═══════════ */
.about {
  background: var(--cream);
  color: var(--ink)
}

.about__grid {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 1300px;
  margin-inline: auto
}

.about__media {
  position: relative
}

.about__media img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 40px 80px -30px rgba(26, 19, 16, .5)
}

.about__media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(194, 161, 104, .6);
  border-radius: 4px;
  pointer-events: none;
  mix-blend-mode: overlay
}

.about__badge {
  position: absolute;
  right: -18px;
  bottom: 34px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: .92rem;
  line-height: 1.25;
  text-align: center;
  padding: 1rem 1.3rem;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: grid;
  place-content: center;
  box-shadow: 0 20px 40px -16px rgba(26, 19, 16, .6)
}

.about__text .eyebrow {
  color: var(--blush)
}

.about__lead {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  margin: 1.8rem 0 1.2rem;
  color: var(--ink-2)
}

.about__text p {
  color: rgba(26, 19, 16, .72)
}

.about__stats {
  list-style: none;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.6rem;
  flex-wrap: wrap
}

.about__stats b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--gold);
  line-height: 1
}

.about__stats b::after {
  content: "+";
  color: var(--blush)
}

.about__stats span {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(26, 19, 16, .6)
}

/* ═══════════ SERVICES (dark) ═══════════ */
.services {
  background: var(--ink)
}

.service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left .5s var(--ease)
}

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

.service:hover {
  padding-left: 1.4rem
}

.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold)
}

.service__body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.1;
  transition: color .3s
}

.service:hover .service__body h3 {
  color: var(--gold-lt)
}

.service__body p {
  color: var(--cream-dim);
  max-width: 54ch;
  margin-top: .5rem;
  font-size: .98rem
}

.service__cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  white-space: nowrap;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: .75rem 1.4rem;
  transition: background .35s var(--ease), color .35s, border-color .35s;
}

.service__cta span {
  transition: transform .35s var(--ease)
}

.service__cta:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold)
}

.service__cta:hover span {
  transform: translateX(4px)
}

/* ═══════════ PORTFOLIO ═══════════ */
.portfolio {
  background: var(--ink-2)
}

.gallery {
  column-count: 4;
  column-gap: 1rem;
  max-width: 1400px;
  margin-inline: auto
}

.gallery__item {
  break-inside: avoid;
  margin: 0 0 1rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink-3);
  display: block
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 1s var(--ease), filter .6s
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 19, 16, .7), transparent 55%);
  opacity: 0;
  transition: opacity .5s
}

.gallery__item:hover img {
  transform: scale(1.07)
}

.gallery__item:hover::after {
  opacity: 1
}

.gallery__item figcaption {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--cream);
  opacity: 0;
  transform: translateY(12px);
  transition: .5s var(--ease)
}

.gallery__item:hover figcaption {
  opacity: 1;
  transform: translateY(0)
}

.portfolio__more {
  display: inline-flex;
  margin: 3rem auto 0;
  justify-self: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  position: relative;
  left: 50%;
  transform: translateX(-50%)
}

.portfolio__more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease)
}

.portfolio__more:hover::after {
  transform: scaleX(1);
  transform-origin: left
}

/* ═══════════ QUOTE / PARALLAX ═══════════ */
.quote {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden
}

.quote__bg {
  position: absolute;
  inset: -10% 0;
  background-size: cover;
  background-position: center;
  transform: translateZ(0);
  will-change: transform
}

.quote__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(20, 15, 12, .72), rgba(20, 15, 12, .82))
}

.quote__text {
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 4rem);
  line-height: 1.18;
  max-width: 18ch;
  text-wrap: balance
}

.quote__text em {
  color: var(--gold)
}

.quote__text span {
  font-family: var(--script);
  color: var(--gold);
  font-size: 1.4em;
  line-height: 0
}

.quote cite {
  position: relative;
  margin-top: 2rem;
  font-style: normal;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--cream-dim)
}

/* ═══════════ TESTIMONIALS (light) ═══════════ */
.testimonials {
  background: var(--cream-2);
  color: var(--ink)
}

.testimonials .eyebrow {
  color: var(--blush)
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  max-width: 1300px;
  margin-inline: auto
}

.tcard {
  background: var(--cream);
  border: 1px solid var(--line-dk);
  border-radius: 6px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform .5s var(--ease), box-shadow .5s
}

.tcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(26, 19, 16, .4)
}

.tcard__stars {
  color: var(--gold);
  letter-spacing: .2em;
  font-size: .9rem
}

.tcard blockquote {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink-2)
}

.tcard figcaption {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: auto
}

.tcard__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  display: grid;
  place-content: center;
  font-size: 1.2rem
}

.tcard figcaption b {
  display: block;
  font-weight: 500;
  font-size: .98rem
}

.tcard figcaption i {
  font-style: normal;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(26, 19, 16, .55)
}

/* ═══════════ CONTACT ═══════════ */
.contact {
  background: var(--ink)
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  max-width: 1300px;
  margin-inline: auto;
  align-items: start
}

.contact__lead {
  margin: 1.8rem 0 2.6rem;
  color: var(--cream-dim);
  font-size: 1.1rem;
  max-width: 38ch
}

.contact__links {
  list-style: none;
  display: flex;
  flex-direction: column
}

.contact__links li {
  border-top: 1px solid var(--line)
}

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

.contact__links a,
.contact__links li>span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 1.05rem;
  transition: color .3s, padding-left .4s var(--ease)
}

.contact__links a:hover {
  color: var(--gold);
  padding-left: .6rem
}

.contact__links a>span,
.contact__links li>span>span {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold)
}

/* form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--ink-2);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: 8px
}

.field {
  position: relative
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  padding: .9rem 0 .6rem;
  transition: border-color .3s
}

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

.field select {
  appearance: none;
  cursor: pointer
}

.field select option {
  background: var(--ink-2);
  color: var(--cream)
}

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

.field label {
  position: absolute;
  left: 0;
  top: .9rem;
  color: var(--cream-dim);
  font-size: 1rem;
  pointer-events: none;
  transition: .3s var(--ease)
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label,
.field select:focus+label,
.field select:valid+label {
  top: -.7rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold)
}

.contact__hint {
  text-align: center;
  font-size: .85rem;
  color: var(--cream-dim)
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5rem) var(--pad) 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem
}

.footer__sign {
  height: clamp(46px, 7vw, 72px);
  width: auto
}

.footer__top p {
  color: var(--cream-dim);
  text-align: right;
  font-size: .95rem
}

.footer__nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  border-block: 1px solid var(--line)
}

.footer__nav a {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color .3s
}

.footer__nav a:hover {
  color: var(--gold)
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .78rem;
  color: rgba(244, 235, 223, .4);
  letter-spacing: .04em
}

/* ═══════════ REVEAL ANIMATIONS ═══════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease)
}

.reveal-up.in {
  opacity: 1;
  transform: none
}

.reveal-mask {
  display: block;
  overflow: hidden
}

.reveal-mask>span {
  display: block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease)
}

.hero.ready .reveal-mask>span {
  transform: none
}

.hero .reveal-mask:nth-child(2)>span {
  transition-delay: .12s
}

.hero .reveal-mask:nth-child(3)>span {
  transition-delay: .24s
}

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

.hero .reveal-up {
  transition-delay: .4s
}

.hero__sub.reveal-up {
  transition-delay: .5s
}

.hero__actions.reveal-up {
  transition-delay: .6s
}

/* ═══════════ RESPONSIVE ═══════════ */
@media(max-width:1080px) {
  .gallery {
    column-count: 3
  }
}

/* Switch to the burger menu earlier — the inline links crowd the
   wordmark below ~1024px. */
@media(max-width:1024px) {

  .nav__links,
  .nav__cta {
    display: none
  }

  .nav__burger {
    display: flex
  }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--ink);
    padding: 6rem var(--pad) 2rem;
    gap: 1.8rem;
    justify-content: center
  }

  .nav__links.open a {
    font-size: 1.4rem;
    color: var(--cream)
  }
}

@media(max-width:860px) {

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr
  }

  .about__media {
    max-width: 420px;
    margin-inline: auto
  }

  .testimonials__grid {
    grid-template-columns: 1fr
  }

  .service {
    grid-template-columns: auto 1fr;
    row-gap: .4rem
  }

  .service__cta {
    grid-column: 2;
    justify-self: start;
    margin-top: .6rem
  }

  .service__num {
    grid-row: span 2
  }

  .gallery {
    column-count: 2
  }
}

@media(max-width:540px) {
  .gallery {
    column-count: 1
  }

  .hero__sign {
    display: none
  }

  .footer__top p {
    text-align: left
  }
}