/* Coastline DC — Luxury homepage (cinematic hero + story sections)
   Preserves brand fonts; full-bleed film hero (not phone Short layout). */

:root {
  --hl-ink: #0f1724;
  --hl-ink-soft: #243044;
  --hl-muted: #5a6575;
  --hl-sand: #ebe6dc;
  --hl-paper: #f7f4ee;
  --hl-line: #d4cdc0;
  --hl-brass: #9a7b2f;
  --hl-brass-deep: #7a6124;
  --hl-sea: #1c3a4f;
  --hl-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --hl-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.home-luxury {
  margin: 0;
  color: var(--hl-ink);
  background: var(--hl-paper);
  font-family: var(--hl-body);
  font-size: 1.05rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hl-skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.hl-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  background: #fff;
  padding: 0.5rem 0.75rem;
}

/* —— Top bar over hero —— */
.hl-top {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 78rem;
  margin: 0 auto;
  color: #fff;
}
.hl-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}
.hl-brand__name {
  font-family: var(--hl-display);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hl-brand__tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}
.hl-top__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  justify-content: flex-end;
}
.hl-top__link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}
.hl-top__link:hover,
.hl-top__link:focus-visible {
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

/* —— Cinematic hero —— */
.hl-hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--hl-sea);
}

.hl-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a121c center/cover no-repeat;
}

.hl-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
  transition: opacity 0.7s ease;
}
.hl-hero__poster.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hl-hero__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* cover */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  z-index: 1;
}

.hl-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(8, 14, 22, 0.45) 0%, rgba(8, 14, 22, 0.25) 38%, rgba(8, 14, 22, 0.72) 100%),
    radial-gradient(90% 70% at 70% 20%, transparent 0%, rgba(8, 14, 22, 0.35) 100%);
  pointer-events: none;
}

.hl-unmute {
  position: absolute;
  z-index: 15;
  left: 1.25rem;
  bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.35rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(15, 23, 36, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.hl-unmute.is-on {
  background: var(--hl-brass);
  border-color: transparent;
}

.hl-hero__content {
  position: relative;
  z-index: 10;
  width: min(100% - 2.5rem, 42rem);
  margin: 0 auto 0 1.25rem;
  padding: 0 0 clamp(4.5rem, 10vh, 6.5rem);
  animation: hl-rise 1.1s ease both;
}

@keyframes hl-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hl-hero__brand-signal {
  margin: 0 0 0.85rem;
  font-family: var(--hl-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.95);
}

.hl-hero__title {
  margin: 0 0 1rem;
  font-family: var(--hl-display);
  font-size: clamp(2.15rem, 5.2vw, 3.55rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.hl-hero__lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.45;
  color: rgba(247, 244, 238, 0.88);
  max-width: 38rem;
}

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

.hl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  border-radius: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hl-btn--primary {
  background: linear-gradient(165deg, #b8922e 0%, var(--hl-brass-deep) 100%);
  color: #fff;
  border: 0;
}
.hl-btn--primary:hover,
.hl-btn--primary:focus-visible {
  filter: brightness(1.06);
}
.hl-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.hl-btn--ghost:hover,
.hl-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hl-hero__content {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* —— Shared sections —— */
.hl-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}
.hl-section--sand {
  background:
    radial-gradient(80% 60% at 0% 0%, #f3efe6 0%, transparent 55%),
    radial-gradient(70% 50% at 100% 30%, #e4ebf2 0%, transparent 45%),
    var(--hl-sand);
}
.hl-section--paper {
  background: var(--hl-paper);
}
.hl-section--ink {
  background: linear-gradient(165deg, #132033 0%, #0f1724 55%, #1a2a3c 100%);
  color: #f7f4ee;
}
.hl-wrap {
  max-width: 72rem;
  margin: 0 auto;
}
.hl-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hl-brass-deep);
  font-weight: 650;
}
.hl-section--ink .hl-eyebrow {
  color: #d4b56a;
}
.hl-h2 {
  margin: 0 0 0.85rem;
  font-family: var(--hl-display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 22ch;
}
.hl-lede {
  margin: 0 0 2rem;
  color: var(--hl-muted);
  max-width: 40rem;
  font-size: 1.05rem;
}
.hl-section--ink .hl-lede {
  color: rgba(247, 244, 238, 0.78);
}

/* Story services */
.hl-service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.hl-service-grid a {
  display: block;
  padding: 1.15rem 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--hl-line);
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.hl-service-grid a:hover,
.hl-service-grid a:focus-visible {
  border-bottom-color: var(--hl-brass);
  transform: translateY(-2px);
}
.hl-service-grid__name {
  display: block;
  font-family: var(--hl-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.hl-service-grid__desc {
  display: block;
  font-size: 0.92rem;
  color: var(--hl-muted);
  line-height: 1.4;
}

/* Projects strip */
.hl-project-cats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.hl-project-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: #f7f4ee;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hl-project-cats a:hover,
.hl-project-cats a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}
.hl-project-cats__arrow {
  opacity: 0.65;
}

/* Reviews peek */
.hl-reviews {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.hl-review {
  margin: 0;
}
.hl-review__quote {
  margin: 0 0 0.85rem;
  font-family: var(--hl-display);
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 400;
}
.hl-review__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hl-muted);
}
.hl-review__meta a {
  color: inherit;
}

.hl-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.hl-platforms a {
  color: var(--hl-ink-soft);
  font-weight: 650;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Consultation */
.hl-consult {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .hl-consult {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}
.hl-form {
  display: grid;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--hl-line);
  padding: 1.25rem 1.15rem 1.4rem;
}
.hl-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 650;
}
.hl-form input,
.hl-form textarea {
  width: 100%;
  border: 1px solid var(--hl-line);
  border-radius: 0.35rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-weight: 400;
  min-height: 2.85rem;
  background: #fff;
}
.hl-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}
.hl-form input:focus,
.hl-form textarea:focus {
  outline: 2px solid var(--hl-brass);
  outline-offset: 1px;
}
.hl-form__row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
.hl-form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.hl-form__submit {
  border: 0;
  border-radius: 0.35rem;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  font-weight: 650;
  background: linear-gradient(165deg, #b8922e 0%, var(--hl-brass-deep) 100%);
  color: #fff;
  cursor: pointer;
  min-height: 3rem;
}
.hl-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.hl-form__status {
  margin: 0;
  min-height: 1.35em;
  font-size: 0.95rem;
  color: var(--hl-muted);
}

.hl-foot {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.25rem;
  font-size: 0.88rem;
  color: var(--hl-muted);
  text-align: center;
}
.hl-foot a {
  color: inherit;
}
.hl-foot__authority {
  margin: 0 0 1rem;
  line-height: 1.55;
  color: var(--hl-ink);
  font-size: 0.95rem;
}
.hl-foot__authority a {
  color: #9a3412;
  font-weight: 650;
}
.hl-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.hl-foot__nav a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 640px) {
  .hl-top__nav .hl-top__link:nth-child(n + 4) {
    display: none;
  }
  .hl-hero__content {
    margin-left: 1rem;
    width: calc(100% - 2rem);
  }
  .hl-unmute {
    left: 1rem;
    bottom: auto;
    top: auto;
    right: 1rem;
    left: auto;
    bottom: 1rem;
  }
}
