/* Clayton Lock Experts — courtyard L-hero / blueprint spec sheet
   Distinct from Stone Rd, Mordi, Ringy, Adel Grote, Open Presto */

:root {
  --ink: #16181d;
  --concrete: #e4e1d8;
  --paper: #f3f1ea;
  --signal: #ff5a1f;
  --signal-hot: #ff7340;
  --mute: #5c5a54;
  --line: rgba(22, 24, 29, 0.12);
  --display: "Sora", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--concrete);
  background-size: 48px 48px, 48px 48px, auto;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 80;
  background: var(--signal);
  color: #fff;
  padding: 0.7rem 1rem;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.mono-label {
  margin: 0 0 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* HUD — not pill / rail / dock / masthead */
.hud {
  position: absolute;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: #f3f1ea;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.hud a {
  text-decoration: none;
}

.hud__id {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.hud__nav {
  display: flex;
  gap: 1.2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hud__call {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(243, 241, 234, 0.7);
  padding: 0.4rem 0.7rem;
}

.hud__call:hover {
  background: var(--signal);
  border-color: var(--signal);
  text-shadow: none;
}

/* Hero — L courtyard: photo bar + photo riser, copy in the cutout */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.72fr);
  grid-template-rows: 42vh minmax(0, 1fr);
  grid-template-areas:
    "bar bar"
    "court riser";
  height: 100svh;
  min-height: 640px;
}

.hero__bar,
.hero__riser {
  min-height: 0;
}

.hero__bar {
  grid-area: bar;
  margin: 0;
  overflow: hidden;
}

.hero__bar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 35%;
}

.hero__court {
  grid-area: court;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 92%, white);
}

.hero__kicker {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--signal);
}

.hero__title {
  margin: 0 0 0.85rem;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero__lede {
  margin: 0 0 1.4rem;
  max-width: 36ch;
  color: var(--mute);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  background: var(--signal);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn:hover {
  background: var(--signal-hot);
}

.ghost {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.ghost:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.hero__riser {
  grid-area: riser;
  margin: 0;
  overflow: hidden;
  border-left: 6px solid var(--signal);
}

.hero__riser img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 70%;
}

/* About — datasheet */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  width: min(100% - 2.4rem, 1080px);
  margin: 0 auto;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.about__title {
  margin: 0 0 0.85rem;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 16ch;
}

.about__text {
  margin: 0;
  max-width: 40ch;
  color: var(--mute);
}

.about__fig {
  margin: 0;
}

.about__fig img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  outline: 1px solid var(--ink);
  outline-offset: 8px;
}

.spec {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.spec div {
  padding: 1rem 1rem 1.1rem 0;
  border-right: 1px solid var(--line);
}

.spec div:last-child {
  border-right: none;
}

.spec dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.35rem;
}

.spec dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.spec a {
  text-decoration: none;
}

.spec a:hover {
  color: var(--signal);
}

/* Services — cascading drawers */
.services {
  width: min(100% - 2.4rem, 1080px);
  margin: 0 auto;
  padding: 0 0 clamp(3.5rem, 8vw, 5.5rem);
}

.services__title {
  margin: 0 0 1.6rem;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  letter-spacing: -0.035em;
}

.drawers {
  display: grid;
  gap: 1rem;
}

.drawer {
  display: grid;
  grid-template-columns: minmax(140px, 240px) 1fr;
  gap: 1.2rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 0.85rem;
}

.drawer--2 {
  margin-left: 7%;
}

.drawer--3 {
  margin-left: 14%;
}

.drawer img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.drawer h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.drawer p {
  margin: 0 0 0.7rem;
  color: var(--mute);
  max-width: 38ch;
}

.drawer a {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--signal);
}

.drawer a:hover {
  color: var(--signal);
}

.foot {
  background: var(--ink);
  color: rgba(243, 241, 234, 0.82);
  padding: 1.6rem 1.25rem 2rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.foot span:first-child {
  font-weight: 800;
  color: #fff;
}

.foot div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.2rem;
}

.foot a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 90, 31, 0.65);
}

.foot a:hover {
  color: var(--signal-hot);
}

.foot p {
  margin: 0.2rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  opacity: 0.55;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 38vh auto 26vh;
    grid-template-areas:
      "bar"
      "court"
      "riser";
    height: auto;
    min-height: 0;
  }

  .hero__riser {
    height: 28vh;
    border-left: none;
    border-top: 6px solid var(--signal);
  }

  .hud__nav {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about__fig {
    max-width: 360px;
  }

  .spec {
    grid-template-columns: 1fr;
  }

  .spec div {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .drawer,
  .drawer--2,
  .drawer--3 {
    margin-left: 0;
    grid-template-columns: 120px 1fr;
  }
}

@media (max-width: 540px) {
  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
