:root {
  --bg: #ebebe9;
  --panel: #f8f8f6;
  --ink: #2c170d;
  --text: #695b53;
  --muted: #8f8984;
  --line: rgba(44, 23, 13, 0.22);
  --soft-line: rgba(44, 23, 13, 0.12);
  --shadow: 0 24px 52px rgba(35, 20, 11, 0.14);
  --ease: cubic-bezier(0.2, 0.72, 0.17, 0.98);
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid #8c765e;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -120%;
  left: 1rem;
  z-index: 100;
  background: #1f120b;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

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

.section-shell {
  width: min(90vw, 1180px);
  margin-inline: auto;
}

.section-mini {
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}

.section-mini-center {
  text-align: center;
}

.section-title {
  margin-top: 0.55rem;
  font-family: "Bodoni Moda", Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-align: center;
  font-size: clamp(2.1rem, 5.7vw, 5.2rem);
}

.section-title.light {
  color: #f8f5f0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  border-bottom: 1px solid transparent;
  transition: background-color 260ms var(--ease), backdrop-filter 260ms var(--ease), border-color 260ms var(--ease);
}

body.home-page .site-header {
  inset: 1.1rem 0 auto;
  border-bottom: 0;
}

.site-header-inner {
  width: min(88vw, 1180px);
  min-height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  text-decoration: none;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.25rem;
  color: #f6f1eb;
}

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

.site-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  color: #f6f1eb;
  letter-spacing: 0.03em;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: currentColor;
}

.menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
  color: #f6f1eb;
  border-radius: 999px;
  padding: 0.42rem 0.82rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.mobile-panel {
  background: rgba(249, 247, 243, 0.98);
  border-top: 1px solid var(--soft-line);
  box-shadow: var(--shadow);
}

.mobile-nav {
  width: min(92vw, 1140px);
  margin-inline: auto;
  display: grid;
  gap: 0.14rem;
  padding: 0.75rem 0 1rem;
}

.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0;
}

.site-header.is-solid {
  background: rgba(237, 234, 228, 0.9);
  backdrop-filter: blur(12px);
  border-color: var(--soft-line);
}

body.home-page .site-header.is-solid {
  inset: 0 0 auto;
}

body.home-page .site-header-inner {
  min-height: 54px;
  padding-inline: 0.25rem;
  border-bottom: 1px solid rgba(248, 241, 232, 0.62);
}

body.home-page .site-nav a {
  font-size: 0.78rem;
  font-weight: 600;
}

body.home-page .site-nav a:last-child {
  margin-left: clamp(1rem, 4vw, 5.5rem);
}

body.home-page .site-header.is-solid .site-header-inner {
  border-bottom-color: rgba(44, 23, 13, 0.2);
}

.site-header.is-solid .site-brand,
.site-header.is-solid .site-nav a,
.site-header.is-solid .menu-toggle {
  color: var(--ink);
}

.site-header.is-solid .menu-toggle {
  border-color: rgba(44, 23, 13, 0.24);
  background: rgba(255, 255, 255, 0.66);
}

.hero-section {
  position: relative;
  padding-top: calc(var(--header-h) + 2.1rem);
  padding-bottom: clamp(0.9rem, 1.8vw, 1.5rem);
  background: #e7e2db;
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(241, 236, 228, 0.82), rgba(241, 236, 228, 0.58)),
    url("../assets/img/espacio-minimalista-con-toques-organicos.png") center / cover no-repeat;
  z-index: -1;
}

.hero-panel {
  width: min(88vw, 1120px);
  margin: 0 auto;
  background: rgba(66, 38, 22, 0.46);
  border: 1px solid rgba(248, 241, 232, 0.22);
  box-shadow: 0 18px 38px rgba(18, 10, 6, 0.2);
}

.hero-stage {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: calc(100svh - var(--header-h) - 2.6rem);
  overflow: hidden;
  border-left: 1px solid rgba(247, 242, 234, 0.38);
  border-right: 1px solid rgba(247, 242, 234, 0.38);
  isolation: isolate;
  --lx: 50%;
  --ly: 50%;
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(247, 242, 234, 0.28);
  z-index: 2;
}

.hero-stage::before {
  left: 3.3%;
}

.hero-stage::after {
  right: 3.3%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
  transform: scale(1.02);
  opacity: 0.76;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 11, 6, 0.12), rgba(20, 11, 6, 0.42)),
    linear-gradient(to right, rgba(37, 19, 10, 0.5), rgba(37, 19, 10, 0.08));
  z-index: 1;
}

.hero-lantern {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle 220px at var(--lx) var(--ly), rgba(255, 224, 171, 0.56), rgba(255, 224, 171, 0) 64%);
  mix-blend-mode: screen;
  transition: opacity 260ms var(--ease);
}

.hero-stage.lantern-active .hero-lantern,
.detail-hero.lantern-active .hero-lantern {
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 4;
  min-height: calc(100svh - var(--header-h) - 2.6rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  display: grid;
  align-content: start;
  gap: 1rem;
}

.hero-title {
  position: relative;
  margin: clamp(3rem, 10vh, 7.2rem) 0 0;
  height: clamp(230px, 34vw, 410px);
  font-family: "Bodoni Moda", Georgia, serif;
  color: #faf5ee;
  line-height: 0.84;
  letter-spacing: -0.02em;
  font-weight: 600;
  font-size: clamp(3.2rem, 8.5vw, 7.9rem);
}

.hero-word {
  position: absolute;
  display: block;
}

.hero-word-material {
  left: 10%;
  top: 0;
}

.hero-word-meaning {
  left: 42%;
  top: 35%;
  font-size: clamp(2.6rem, 7.1vw, 6.2rem);
  line-height: 0.82;
}

.hero-word-mood {
  left: 50%;
  top: 62%;
}

.hero-script {
  font-style: italic;
}

.hero-meta {
  position: absolute;
  left: 50%;
  bottom: clamp(1.8rem, 5vw, 3.1rem);
  width: min(90%, 335px);
  display: grid;
  gap: 0.85rem;
}

.hero-description {
  margin: 0;
  max-width: 30ch;
  color: rgba(250, 245, 237, 0.86);
  font-size: clamp(1rem, 1.03vw, 1.1rem);
  line-height: 1.32;
}

.hero-link,
.line-link {
  margin-top: 0.15rem;
  width: fit-content;
  margin-left: auto;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f4efe8;
  border-bottom: 1px solid rgba(244, 239, 232, 0.62);
  padding-bottom: 0.2rem;
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  transition: color 200ms ease, border-color 200ms ease, transform 220ms var(--ease);
}

.hero-link {
  margin: 0;
  margin-left: 0;
  width: min(100%, 250px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom-width: 1.5px;
}

.hero-link::after,
.line-link::after {
  content: "  \2192";
}

.hero-link:hover,
.hero-link:focus-visible,
.line-link:hover,
.line-link:focus-visible {
  transform: translateX(3px);
}

.line-link {
  color: var(--ink);
  margin-left: 0;
  border-color: rgba(44, 23, 13, 0.34);
}

.line-link-light {
  color: #f8f3ec;
  border-color: rgba(248, 243, 236, 0.62);
}

.about-section {
  padding-block: clamp(3rem, 7.6vw, 6.6rem);
}

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

.about-copy {
  display: grid;
  gap: 1rem;
}

.about-copy h2 {
  font-family: "Bodoni Moda", Georgia, serif;
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 5.1rem);
  line-height: 0.92;
}

.about-copy p {
  max-width: 51ch;
  font-size: clamp(0.97rem, 1.25vw, 1.12rem);
}

.about-media {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

.about-main,
.about-side {
  display: block;
  overflow: hidden;
}

.about-main img,
.about-side img {
  object-fit: cover;
  transition: transform 600ms var(--ease), filter 600ms var(--ease);
}

.about-main:hover img,
.about-side:hover img,
.about-main:focus-visible img,
.about-side:focus-visible img {
  transform: scale(1.03);
  filter: saturate(1.02);
}

.about-main img {
  aspect-ratio: 4 / 5.4;
}

.about-side img {
  aspect-ratio: 5 / 4.8;
}

.portfolio-section {
  padding-block: clamp(3.2rem, 8vw, 6.8rem);
}

.portfolio-carousel {
  margin-top: clamp(1.2rem, 3vw, 2.2rem);
  display: grid;
  gap: 1rem;
  background: #ececec;
}

.carousel-main,
.carousel-thumb {
  overflow: hidden;
  display: block;
}

.carousel-main img,
.carousel-thumb img {
  object-fit: cover;
  transition: transform 600ms var(--ease), opacity 260ms ease;
}

.carousel-main img {
  aspect-ratio: 16 / 15;
}

.carousel-thumb img {
  aspect-ratio: 4 / 5;
}

.portfolio-carousel.is-switching .carousel-main img,
.portfolio-carousel.is-switching .carousel-thumb img {
  opacity: 0.3;
}

.carousel-main:hover img,
.carousel-thumb:hover img,
.carousel-main:focus-visible img,
.carousel-thumb:focus-visible img {
  transform: scale(1.03);
}

.carousel-body {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding-right: 0.4rem;
}

.carousel-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.carousel-body h3 {
  font-family: "Bodoni Moda", Georgia, serif;
  color: var(--ink);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 0.94;
}

.carousel-description {
  max-width: 36ch;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.carousel-note {
  margin-top: auto;
  max-width: 32ch;
  color: var(--text);
  font-size: 1.03rem;
}

.carousel-side {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.carousel-side p {
  color: var(--text);
  font-size: 1rem;
  max-width: 23ch;
}

.carousel-controls {
  margin-top: 0.2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.carousel-controls button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(44, 23, 13, 0.2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 220ms var(--ease), background-color 220ms ease;
}

.carousel-controls button:hover,
.carousel-controls button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.66);
}

.services-section {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

.services-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.76) brightness(0.56);
}

.services-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 13, 8, 0.7), rgba(22, 13, 8, 0.48)),
    linear-gradient(180deg, rgba(22, 13, 8, 0.08), rgba(22, 13, 8, 0.55));
}

.services-panel {
  position: relative;
  z-index: 3;
  width: min(88vw, 1180px);
  margin-inline: auto;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  background: rgba(16, 10, 7, 0.45);
  border: 1px solid rgba(247, 242, 234, 0.22);
  box-shadow: 0 20px 56px rgba(8, 5, 4, 0.26);
  backdrop-filter: blur(3px);
}

.services-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
}

.services-copy {
  display: grid;
  gap: 0.85rem;
}

.services-copy .section-mini,
.services-copy p,
.services-copy .line-link {
  color: rgba(248, 241, 232, 0.88);
}

.services-copy h2 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(2.2rem, 6.3vw, 5.1rem);
  line-height: 0.9;
  color: #faf4eb;
}

.services-copy p {
  max-width: 38ch;
  font-size: clamp(1rem, 1.14vw, 1.14rem);
}

.services-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.service-card {
  text-decoration: none;
  background: rgba(250, 250, 249, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.66);
  padding: 0.95rem;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  color: var(--ink);
  min-height: 100%;
  transition: transform 280ms var(--ease), box-shadow 280ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-number {
  font-size: 0.86rem;
  color: #76706b;
}

.service-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-card h3 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.65rem, 2.25vw, 2.2rem);
  line-height: 0.95;
}

.service-card-copy {
  font-size: 0.96rem;
  color: #7d7772;
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  overflow: hidden;
  transition: max-height 260ms ease, opacity 260ms ease, transform 260ms var(--ease);
}

.service-card:hover .service-card-copy,
.service-card:focus-visible .service-card-copy {
  max-height: 6rem;
  opacity: 1;
  transform: translateY(0);
}

.journal-section {
  position: relative;
  padding-block: clamp(3rem, 8vw, 7rem);
  isolation: isolate;
}

.journal-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/hero.png") center / cover no-repeat;
  opacity: 0.2;
  filter: saturate(0.7);
  z-index: -1;
}

.journal-panel {
  width: min(88vw, 1180px);
  margin-inline: auto;
  background: #f2f2f0;
  border: 1px solid rgba(44, 23, 13, 0.14);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  box-shadow: 0 18px 44px rgba(32, 19, 11, 0.12);
}

.journal-grid {
  margin-top: clamp(1.3rem, 3vw, 2.4rem);
  display: grid;
  gap: 1rem;
}

.journal-feature {
  display: block;
  text-decoration: none;
  background: url("../assets/img/detalle-arquitectonico-ba%C3%B1ada-en-luz-calida.png") center / cover no-repeat;
  padding: 1rem;
}

.journal-feature-card {
  min-height: 100%;
  background: rgba(247, 247, 245, 0.95);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  align-content: center;
  text-align: center;
  gap: 0.95rem;
}

.journal-feature-card h3 {
  font-family: "Bodoni Moda", Georgia, serif;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  line-height: 0.92;
}

.journal-feature-card p {
  color: #6e655f;
  max-width: 27ch;
  margin-inline: auto;
}

.journal-feature-card .line-link {
  margin-inline: auto;
}

.journal-card {
  text-decoration: none;
  color: inherit;
}

.journal-card img {
  aspect-ratio: 5 / 4.85;
  object-fit: cover;
}

.journal-card h3 {
  margin-top: 0.45rem;
  font-family: "Bodoni Moda", Georgia, serif;
  color: var(--ink);
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-size: clamp(1.28rem, 1.85vw, 2.05rem);
  max-width: 11ch;
  text-wrap: balance;
}

.journal-card {
  position: relative;
}

.journal-overlay {
  position: absolute;
  inset: 0 0 auto;
  height: calc(100% - 3rem);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  opacity: 0;
  transition: opacity 280ms ease;
}

.journal-card:hover .journal-overlay,
.journal-card:focus-visible .journal-overlay {
  opacity: 1;
}

.mobile-preview {
  position: relative;
  padding-block: clamp(3.2rem, 8vw, 7rem);
  isolation: isolate;
  overflow: hidden;
}

.mobile-preview-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 18, 12, 0.72), rgba(30, 18, 12, 0.72)),
    url("../assets/img/hero.png") center / cover no-repeat;
  filter: saturate(0.76);
  z-index: -1;
}

.phone-row {
  margin-top: clamp(1.2rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 1rem;
}

.phone-card {
  background: rgba(245, 244, 241, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  padding: 0.72rem;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 100%;
}

.phone-card.dark {
  background: rgba(33, 21, 14, 0.78);
  color: #f8f4ec;
}

.phone-card header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #2d170d;
}

.phone-card.dark header,
.phone-card.dark p,
.phone-card.dark .phone-step,
.phone-card.dark h3 {
  color: #f8f4ec;
}

.phone-card img {
  aspect-ratio: 3 / 3.4;
  object-fit: cover;
}

.phone-card h3 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(1.65rem, 1.9vw, 2.35rem);
  line-height: 0.92;
  color: var(--ink);
}

.phone-card p {
  color: #6b625c;
  font-size: 0.94rem;
}

.phone-card .phone-step {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.phone-card a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(44, 23, 13, 0.32);
  width: fit-content;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-footer-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: clamp(2.2rem, 5vw, 4rem);
  background: #f3f3f1;
  border: 1px solid rgba(44, 23, 13, 0.12);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.contact-footer-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/detalle-arquitectonico-ba%C3%B1ada-en-luz-calida.png") center / cover no-repeat;
  opacity: 0.08;
  z-index: -1;
}

.contact-footer-grid {
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.6rem);
}

.contact-footer-copy {
  display: grid;
  gap: 0.9rem;
}

.contact-footer-copy h2 {
  font-family: "Bodoni Moda", Georgia, serif;
  color: var(--ink);
  line-height: 0.96;
  letter-spacing: 0;
  font-size: clamp(1.7rem, 4vw, 3.8rem);
  max-width: 12ch;
}

.contact-footer-copy p {
  max-width: 37ch;
  color: #6e655f;
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
}

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

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

.contact-footer-form input,
.contact-footer-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(44, 23, 13, 0.4);
  background: transparent;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1rem;
  padding: 0.45rem 0.05rem 0.5rem;
}

.contact-footer-form textarea {
  margin-top: 0.05rem;
  border: 1px solid rgba(44, 23, 13, 0.26);
  min-height: 128px;
  padding: 0.65rem 0.7rem;
  resize: vertical;
}

.contact-footer-form input::placeholder,
.contact-footer-form textarea::placeholder {
  color: #7d746d;
}

.contact-footer-form button {
  width: fit-content;
  margin-top: 0.25rem;
  border: 0;
  border-bottom: 1px solid rgba(44, 23, 13, 0.35);
  background: transparent;
  color: #3b2618;
  font-weight: 700;
  font-size: 1.85rem;
  font-family: "Bodoni Moda", Georgia, serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 0.12rem 0.06rem;
}

.contact-footer-form button::after {
  content: "  \2192";
  font-size: 0.78em;
}

.site-footer {
  width: min(90vw, 1180px);
  margin: 0 auto 1.2rem;
  background: #e5ded3;
  border: 1px solid rgba(44, 23, 13, 0.1);
  border-top: 0;
  color: #5f5248;
}

.site-footer-top {
  padding: 1.2rem 1.25rem;
  display: grid;
  gap: 1.1rem;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  font-size: 0.93rem;
}

.footer-brand {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.8rem;
  color: #2f1a11;
  align-content: start;
}

.footer-heading {
  margin: 0;
  color: #8a7f74;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.footer-col a {
  text-decoration: none;
  color: #3f2b20;
  font-weight: 600;
  width: fit-content;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  text-decoration: underline;
}

.footer-col p {
  margin: 0;
  line-height: 1.45;
}

.footer-ticker {
  border-top: 1px solid rgba(44, 23, 13, 0.1);
  padding: 0.45rem 0 0.62rem;
  overflow: hidden;
  white-space: nowrap;
}

.footer-ticker-track {
  display: inline-block;
  padding-left: 100%;
  font-family: "Bodoni Moda", Georgia, serif;
  color: #c5b7a6;
  letter-spacing: 0.02em;
  font-size: clamp(2.2rem, 4.2vw, 4.6rem);
  line-height: 0.9;
  animation: tickerMove 22s linear infinite;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

body.menu-open {
  overflow: hidden;
}

.hero-drop {
  opacity: 0;
  transform: translateY(-66px) scale(0.94);
}

body.is-ready .hero-drop {
  animation: heroDrop 0.92s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes heroDrop {
  0% {
    opacity: 0;
    transform: translateY(-66px) scale(0.94);
    filter: blur(6px);
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

[data-animate] {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 780ms var(--ease), transform 880ms var(--ease), filter 880ms var(--ease);
  transition-delay: var(--delay, 0s);
}

[data-animate="fall"] {
  transform: translateY(-54px) scale(0.95);
}

[data-animate="rise"] {
  transform: translateY(54px) scale(0.96);
}

[data-animate="fold"] {
  transform: perspective(1000px) rotateX(-18deg) translateY(40px);
  transform-origin: top center;
}

[data-animate].is-in {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.detail-page {
  background: #eceae6;
}

.detail-main {
  padding-top: calc(var(--header-h) + 0.7rem);
}

.detail-hero {
  position: relative;
  width: min(92vw, 1140px);
  margin-inline: auto;
  min-height: clamp(420px, 74vh, 780px);
  overflow: hidden;
  isolation: isolate;
  --lx: 50%;
  --ly: 50%;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.06);
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 11, 7, 0.18), rgba(19, 11, 7, 0.74)),
    linear-gradient(to right, rgba(19, 11, 7, 0.48), rgba(19, 11, 7, 0.12));
}

.detail-hero-copy {
  position: relative;
  z-index: 4;
  min-height: clamp(420px, 74vh, 780px);
  display: grid;
  align-content: end;
  gap: 0.95rem;
  color: #f5f0e8;
  padding: clamp(1rem, 2.2vw, 1.9rem);
}

.detail-hero-copy h1 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(2.2rem, 6.8vw, 5.4rem);
  line-height: 0.88;
  color: #f8f3ec;
  max-width: 9.5ch;
}

.detail-hero-copy p {
  max-width: 46ch;
}

.detail-content {
  padding-block: clamp(2.8rem, 7vw, 6.2rem);
}

.detail-columns {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--soft-line);
}

.detail-columns article {
  display: grid;
  gap: 0.8rem;
}

.detail-columns h2 {
  font-family: "Bodoni Moda", Georgia, serif;
  color: var(--ink);
  line-height: 0.92;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  max-width: 12ch;
}

.detail-columns p {
  max-width: 55ch;
}

.detail-meta {
  background: #f6f4ef;
  border: 1px solid var(--soft-line);
  padding: 0;
}

.detail-meta > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem;
  border-bottom: 1px solid var(--soft-line);
}

.detail-meta > div:last-child {
  border-bottom: 0;
}

.detail-meta span {
  color: #81776f;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-meta strong {
  color: var(--ink);
  font-size: 1rem;
}

.detail-gallery {
  padding-top: 1.1rem;
  display: grid;
  gap: 0.85rem;
}

.detail-gallery a {
  display: block;
  overflow: hidden;
}

.detail-gallery img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 620ms var(--ease);
}

.detail-gallery a:hover img,
.detail-gallery a:focus-visible img {
  transform: scale(1.03);
}

@media (min-width: 840px) {
  .site-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-panel {
    display: none;
  }

  .hero-content {
    padding: clamp(1.4rem, 3vw, 2.6rem);
    align-content: start;
  }

  .hero-panel {
    width: min(88vw, 1120px);
  }

  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2.2rem;
  }

  .about-media {
    grid-template-columns: 1fr 0.52fr;
    align-items: start;
    gap: 1.1rem;
  }

  .about-side {
    margin-top: 1.4rem;
  }

  .portfolio-carousel {
    grid-template-columns: 1.18fr 0.82fr 0.45fr;
    align-items: stretch;
    gap: 1.2rem;
  }

  .carousel-main img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 620px;
  }

  .services-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1.4rem;
  }

  .journal-grid {
    grid-template-columns: 1.2fr 0.85fr 0.85fr 0.85fr;
    align-items: start;
    gap: 1.25rem;
  }

  .phone-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .contact-footer-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .contact-form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
  }

  .site-footer-top {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 1.2rem;
  }

  .detail-columns {
    grid-template-columns: 1fr 0.75fr;
    gap: 1.2rem;
    align-items: start;
  }

  .detail-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 839px) {
  body.home-page .site-header {
    inset: 0 0 auto;
  }

  body.home-page .site-header-inner {
    border-bottom: 0;
    min-height: var(--header-h);
  }

  .site-brand {
    font-size: 1.08rem;
  }

  .hero-panel,
  .services-panel,
  .journal-panel {
    width: min(94vw, 1180px);
  }

  .hero-stage {
    border: 0;
  }

  .hero-stage::before,
  .hero-stage::after {
    display: none;
  }

  .hero-section {
    padding-top: calc(var(--header-h) + 0.6rem);
  }

  .hero-title {
    position: static;
    margin-top: 0;
    height: auto;
    display: grid;
    gap: 0.05em;
    font-size: clamp(2.2rem, 13.6vw, 4.7rem);
  }

  .hero-word {
    position: static;
  }

  .hero-word-meaning {
    font-size: inherit;
    line-height: inherit;
  }

  .hero-meta {
    position: static;
    width: auto;
    margin-top: 0.55rem;
  }

  .hero-description,
  .hero-link {
    margin-left: 0;
  }

  .services-cards {
    grid-template-columns: 1fr;
  }

  .journal-overlay {
    height: calc(100% - 2.7rem);
  }

  .phone-row {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
  }

  .phone-card {
    scroll-snap-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-drop,
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
