/* Dorcas Lock and Key — creative layout */

:root {
  --ink: #12100e;
  --ink-soft: #4d463f;
  --gold: #c9a227;
  --gold-bright: #e0b83a;
  --stone: #dfe2e4;
  --panel: #eef0f1;
  --white: #f6f7f8;
  --max: 1100px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Staatliches", "Arial Narrow", sans-serif;
  --font-body: "Albert Sans", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(700px 380px at 90% 0%, rgba(201, 162, 39, 0.09), transparent 55%),
    linear-gradient(180deg, var(--panel) 0%, var(--stone) 100%);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3,
.logo,
.site-footer__brand,
.hero__brand,
.about__marker,
.spine__node {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.88), transparent);
}

.site-header__inner {
  width: min(100% - 2rem, var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  font-size: 1.45rem;
  color: var(--white);
  letter-spacing: 0.08em;
}

.nav__list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(246, 247, 248, 0.9);
}

.nav__phone {
  color: var(--gold-bright) !important;
  letter-spacing: 0.04em;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(246, 247, 248, 0.35);
  background: rgba(18, 16, 14, 0.4);
  display: inline-grid;
  place-content: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  inset: var(--header-h) 0 auto;
  background: rgba(18, 16, 14, 0.97);
  padding: 0.5rem 1rem 1.25rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0.35rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(246, 247, 248, 0.08);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--gold-bright);
  color: var(--ink);
}

.btn--ghost {
  border-color: rgba(246, 247, 248, 0.5);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn--solid {
  background: var(--ink);
  color: var(--white);
}

.btn--solid:hover {
  background: #2a2520;
  color: var(--white);
}

/* ========== HERO: stacked brand + L-frame ========== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.06);
  animation: drift 20s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(18, 16, 14, 0.92) 0%, rgba(18, 16, 14, 0.7) 42%, rgba(18, 16, 14, 0.25) 72%, rgba(18, 16, 14, 0.45) 100%),
    linear-gradient(0deg, rgba(18, 16, 14, 0.75) 0%, transparent 40%);
}

.hero__frame {
  position: absolute;
  z-index: 2;
  left: max(1rem, calc((100% - var(--max)) / 2));
  bottom: 2.5rem;
  width: min(42vw, 18rem);
  height: min(55vh, 28rem);
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  pointer-events: none;
  opacity: 0.85;
  animation: frame-in 1.1s var(--ease) 0.2s both;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-height: 100vh;
  min-height: 100svh;
}

.hero__brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: clamp(3.4rem, 14vw, 8.5rem);
  line-height: 0.88;
  text-transform: uppercase;
  max-width: 10ch;
  animation: rise 0.9s var(--ease) both;
}

.hero__brand span:last-child {
  color: var(--gold);
  font-size: 0.72em;
}

.hero__cluster {
  max-width: 28rem;
  padding-left: 1.15rem;
  animation: rise 0.9s var(--ease) 0.15s both;
}

.hero__headline {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.hero__lede {
  margin: 0 0 1.35rem;
  max-width: 34ch;
  color: rgba(246, 247, 248, 0.82);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@keyframes drift {
  from {
    transform: scale(1.06);
  }

  to {
    transform: scale(1.14) translate(-1.5%, 0.5%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.4rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 0.85;
    transform: none;
  }
}

/* ========== ABOUT: giant 27a + film strip ========== */

.about {
  padding: clamp(3.5rem, 8vw, 6rem) 0 0;
}

.about__stage {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: end;
  position: relative;
}

.about__marker {
  margin: 0;
  font-size: clamp(5.5rem, 22vw, 14rem);
  line-height: 0.8;
  color: rgba(18, 16, 14, 0.08);
  letter-spacing: -0.02em;
  user-select: none;
  grid-row: 1;
  grid-column: 1;
  z-index: 0;
}

.about__copy {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  grid-row: 1;
  grid-column: 1;
  padding-bottom: 0.5rem;
}

.about__copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  text-transform: uppercase;
  max-width: 12ch;
  color: var(--ink);
}

.about__copy p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
}

.about__address {
  margin: 1.35rem 0 0;
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 600;
}

.about__address a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

.about__address a:hover {
  color: var(--ink);
}

.about__film {
  width: 100%;
  overflow: hidden;
  margin: 0;
}

.about__film img {
  width: 100%;
  height: clamp(12rem, 32vw, 22rem);
  object-fit: cover;
  object-position: center 40%;
  filter: contrast(1.05) saturate(0.9);
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
}

/* ========== SERVICES: vertical spine ========== */

.services {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.services__head {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2.75rem;
}

.services__head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}

.services__lede {
  margin: 0;
  color: var(--ink-soft);
}

.spine {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  display: grid;
  gap: 2.5rem;
}

.spine::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(201, 162, 39, 0.15));
}

.spine__item {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 3.5rem;
}

.spine__node {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--panel);
}

.spine__visual {
  overflow: hidden;
}

.spine__visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.spine__item:hover .spine__visual img {
  transform: scale(1.05);
}

.spine__text h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}

.spine__text p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36ch;
}

.services__cta {
  width: min(100% - 2rem, var(--max));
  margin: 3rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 0;
  border-top: 2px solid rgba(18, 16, 14, 0.12);
}

.services__cta p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-transform: uppercase;
  line-height: 1;
  max-width: 14ch;
  color: var(--ink);
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(246, 247, 248, 0.75);
  padding: 2.75rem 0;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 0.4rem;
}

.site-footer__brand {
  margin: 0;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.06em;
}

.site-footer__address {
  margin: 0;
  font-style: normal;
  font-size: 0.92rem;
}

.site-footer__meta {
  margin: 0.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.site-footer__copy {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: rgba(246, 247, 248, 0.45);
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Desktop */

@media (min-width: 780px) {
  .nav__list {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .hero__inner {
    padding-bottom: 3.5rem;
  }

  .hero__frame {
    bottom: 3rem;
    height: min(58vh, 32rem);
  }

  .about__stage {
    grid-template-columns: 1fr 1fr;
    min-height: 22rem;
  }

  .about__marker {
    grid-column: 1;
    align-self: center;
  }

  .about__copy {
    grid-column: 2;
    justify-self: end;
    padding-top: 2rem;
  }

  .spine {
    gap: 3.5rem;
  }

  .spine::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .spine__item {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-left: 0;
    align-items: center;
  }

  .spine__node {
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: -1.35rem;
  }

  .spine__visual {
    grid-column: 1;
  }

  .spine__text {
    grid-column: 2;
  }

  .spine__item--flip .spine__visual {
    grid-column: 2;
    order: 2;
  }

  .spine__item--flip .spine__text {
    grid-column: 1;
    order: 1;
    text-align: right;
    justify-self: end;
  }

  .spine__item--flip .spine__text p {
    margin-left: auto;
  }

  .spine__visual img {
    min-height: 15rem;
    aspect-ratio: 5 / 4;
  }
}

@media (min-width: 1040px) {
  .hero__brand {
    max-width: none;
  }

  .about__film img {
    height: 24rem;
  }
}
