/* Homepage-only art direction. Keep administration and other public pages unchanged. */
.home-editorial {
  --dm-ink: #292326;
  --dm-muted: #665d59;
  --dm-brand: #b84917;
  --dm-brand-hover: #973911;
  --dm-mint: #eee7dd;
  background: #f5f1e8;
}
.home-editorial .site-header { background: #f5f1e8; border-color: #ded7cc; }
.home-editorial .header-inner { min-height: 76px; }
.home-editorial .desktop-navigation a { color: #423a36; }
.home-editorial .button { border-radius: 4px; box-shadow: none; }
.home-editorial .header-consultation { min-height: 48px; }
.home-editorial .hero--immersive { position: relative; isolation: isolate; padding: 0; background: #241b22; }
.home-editorial .hero-carousel { position: absolute; inset: 0; }
.home-editorial .hero-carousel-viewport { height: 100%; aspect-ratio: auto; border-radius: 0; background: #241b22; }
.home-editorial .hero-carousel-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 25%, rgb(16 12 15 / 35%) 50%, rgb(16 12 15 / 90%) 100%);
}
.home-editorial .hero-carousel-slide > img { height: 100%; width: 100%; object-fit: cover; object-position: center; }
.home-editorial .hero-copy-layer {
  position: relative; z-index: 2; pointer-events: none;
  min-height: 600px; min-height: max(600px, min(82svh, 900px));
  display: flex; align-items: end; padding-block: 220px 140px;
}
.home-editorial .hero-copy { pointer-events: auto; padding: 0; max-width: 760px; }
.home-editorial .hero h1 { margin: 0; color: #fff; font-weight: 700; letter-spacing: -.04em; line-height: 1.25; }
.home-editorial .hero-service { display: block; margin-bottom: 14px; font-size: clamp(16px, 1.4vw, 20px); font-weight: 600; letter-spacing: -.035em; }
.home-editorial .hero-emphasis { display: block; color: #fff; font-size: clamp(48px, 4.45vw, 64px); }
.home-editorial .hero-emphasis::after { display: none; }
.home-editorial .hero-actions { margin-top: 28px; gap: 24px; }
.home-editorial .hero-actions a { pointer-events: auto; }
.home-editorial .hero-primary-cta { min-height: 52px; border-radius: 4px; }
.home-editorial .hero .text-link { color: #fff; border-color: #b6aaa6; }
.home-editorial .hero :focus-visible { outline-color: #fff; }
.home-editorial .hero-carousel-caption {
  z-index: 1; inset: auto max(40px, calc((100% - 1200px) / 2)) 77px;
  padding: 0; gap: 16px; background: none; min-height: 32px;
}
.home-editorial .hero-carousel-caption > span { flex: 0 1 auto; font-size: 13px; line-height: 1.5; -webkit-line-clamp: 1; }
.home-editorial .hero-carousel-caption a { margin: 0; padding: 4px 10px; border-radius: 4px; font-size: 13px; }
.home-editorial .hero-carousel-controls {
  position: absolute; z-index: 3; bottom: 18px; left: max(40px, calc((100% - 1200px) / 2));
  right: max(40px, calc((100% - 1200px) / 2)); justify-content: start; margin: 0; color: #fff;
}
.home-editorial .hero-carousel-controls button { color: #fff; background: #241b22; border-color: #a99d9e; border-radius: 4px; }
.home-editorial .hero-carousel-controls button:hover { background: #50303b; }
.home-editorial .hero-carousel-controls button:disabled { color: #d8cdd0; }
.home-editorial .services-section { padding-block: 72px; }
.home-editorial .section-heading { padding-bottom: 28px; border-bottom: 1px solid #cfc4b7; }
.home-editorial .section-heading h2 { font-size: clamp(28px, 3vw, 36px); }
.home-editorial .service-introduction { border-radius: 0; padding: 0 0 28px; background: none; }
.home-editorial .service-grid { border-top: 1px solid #cfc4b7; gap: 0; }
.home-editorial .service-card { border: 0; border-right: 1px solid #cfc4b7; border-radius: 0; background: none; padding: 32px 26px; }
.home-editorial .service-card:last-child { border-right: 0; }
.home-editorial .service-card:hover { background: #eee7dd; box-shadow: none; }
.home-editorial .service-card-top { color: #665d59; }
.home-editorial .service-art { display: none; }
.home-editorial .service-card h3 { margin-top: 24px; }
.home-editorial .consultation-panel { background: #351b26; border-radius: 4px; }
.home-editorial .consultation-panel .eyebrow,
.home-editorial .consultation-panel h2 + p,
.home-editorial .consultation-action > p { color: #e4d4ce; }
.home-editorial .consultation-decoration { display: none; }
.home-editorial .button-light { color: #351b26; background: #f5f1e8; }
.home-editorial .button-light:hover { background: #e7dbcb; }
.home-editorial .site-footer { background: #231b20; border-color: #58434c; color: #e0d6d0; }
.home-editorial .site-footer .brand-mark { color: #e69b71; }
.home-editorial .mobile-consultation { background: #f5f1e8; border-color: #cfc4b7; }
@media (max-width: 767px) {
  .home-editorial .header-inner { min-height: 64px; }
  .home-editorial .brand { font-size: 19px; }
  .home-editorial .brand-mark { width: 30px; height: 30px; }
  .home-editorial .header-consultation { min-height: 44px; font-size: 12px; padding: 10px 12px; }
  .home-editorial .hero-copy-layer { min-height: max(510px, calc(100svh - 148px)); padding-block: 180px 150px; }
  .home-editorial .hero-carousel-slide > img { object-position: 64% center; }
  .home-editorial .hero-service { font-size: 16px; margin-bottom: 10px; }
  .home-editorial .hero-emphasis { font-size: clamp(30px, 8.7vw, 38px); letter-spacing: -.045em; }
  .home-editorial .hero-actions { gap: 12px; margin-top: 22px; }
  .home-editorial .hero-primary-cta { min-height: 48px; padding: 12px 16px; font-size: 15px; gap: 16px; }
  .home-editorial .hero .text-link { font-size: 13px; }
  .home-editorial .hero-carousel-caption { left: 20px; right: 20px; bottom: 80px; flex-wrap: nowrap; gap: 8px; }
  .home-editorial .hero-carousel-caption > span { font-size: 12px; min-width: 0; }
  .home-editorial .hero-carousel-caption a { flex-shrink: 0; font-size: 12px; }
  .home-editorial .hero-carousel-controls { left: 20px; right: 20px; bottom: 20px; gap: 8px; }
  .home-editorial .hero-carousel-controls button { font-size: 12px; padding-inline: 10px; }
  .home-editorial .services-section { padding-block: 44px; }
  .home-editorial .service-grid { grid-template-columns: 1fr; }
  .home-editorial .service-card { padding: 26px 0; border-right: 0; border-bottom: 1px solid #cfc4b7; }
  .home-editorial .consultation-panel { padding: 30px 24px; }
  .home-editorial .consultation-panel h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-editorial *, .home-editorial *::before, .home-editorial *::after { scroll-behavior: auto; }
}

.home-editorial .service-card > p { font-size: 16px; }
.home-editorial .section-heading > p { font-size: 16px; }
.home-editorial .service-card h3, .home-editorial .service-card > p { max-width: none; }

.home-editorial .hero-video-slide > video { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.home-editorial .hero-video-slide > video[hidden] { display: none; }
@media (max-width: 767px) {
  .home-editorial .hero-video-slide > img, .home-editorial .hero-video-slide > video { object-position: 52% center; }
}

/* A warm veil softens the video and its poster; the lower shade protects white copy. */
.home-editorial .hero-video-slide::after {
  background: linear-gradient(180deg, transparent 20%, rgb(16 12 15 / 40%) 55%, rgb(16 12 15 / 90%) 100%),
    linear-gradient(rgb(245 241 232 / 18%), rgb(245 241 232 / 18%));
}

/* Navigation dots stay centered independently of the playback control. */
.home-editorial .hero-carousel-controls { left: 20px; right: 20px; bottom: 18px; justify-content: center; gap: 0; }
.home-editorial .hero-carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; max-width: 100%; }
.home-editorial .hero-carousel-controls .hero-carousel-dot { display: grid; place-items: center; min-width: 28px; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 50%; }
.home-editorial .hero-carousel-dot > span { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / 50%); transition: width .2s, height .2s, background .2s; }
.home-editorial .hero-carousel-dot[aria-current="true"] > span { width: 11px; height: 11px; background: #fff; }
.home-editorial .hero-carousel-dot:hover > span { background: #fff; }
.home-editorial .hero-carousel-controls [data-hero-carousel-target="toggle"] { position: absolute; right: 0; bottom: 0; width: 44px; padding: 0; font-size: 0; border: 0; background: transparent; }
.home-editorial .hero-carousel-controls [data-hero-carousel-target="toggle"]::before { content: "Ⅱ"; font-size: 16px; }
.home-editorial .hero-carousel-controls [data-hero-carousel-target="toggle"][aria-pressed="true"]::before { content: "▶"; font-size: 12px; }
.home-editorial .hero-carousel-controls [data-hero-carousel-target="toggle"]:disabled { opacity: .45; }
.home-editorial .hero-carousel-caption { bottom: 78px; }
@media (max-width: 767px) {
  .home-editorial .hero-carousel-caption { bottom: 76px; }
  .home-editorial .hero-carousel-controls [data-hero-carousel-target="toggle"] { bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-editorial .hero-carousel-dot > span { transition: none; }
}

/* Copy enters once per page visit, never on each background rotation. */
.home-editorial .hero-copy-layer { padding-bottom: 132px; }
.home-editorial .hero-copy { max-width: 650px; }
.home-editorial .hero-service { margin-bottom: 16px; color: rgb(255 255 255 / 86%); font-weight: 500; }
.home-editorial .hero-emphasis { font-size: clamp(42px, 4.2vw, 60px); line-height: 1.15; }
.home-editorial .hero-actions { margin-top: 26px; }
.home-editorial .hero-service { animation: hero-copy-enter .7s .08s both; }
.home-editorial .hero-emphasis { animation: hero-copy-enter .8s .2s both; }
.home-editorial .hero-actions { animation: hero-copy-enter .8s .34s both; }
.home-editorial .hero-carousel-dots[hidden] { display: none; }
@keyframes hero-copy-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
  .home-editorial .hero-copy-layer { padding-bottom: 142px; }
  .home-editorial .hero-service { font-size: 14px; margin-bottom: 12px; }
  .home-editorial .hero-emphasis { font-size: clamp(30px, 8.7vw, 38px); }
  .home-editorial .hero-actions { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-editorial .hero-service, .home-editorial .hero-emphasis, .home-editorial .hero-actions { animation: none; }
}
