/* Ringy Locksmiths — cream / walnut / copper ring layout
   Distinct from Stone Rd (top bar + full-bleed) and Mordi (side rail + split panel) */

:root {
  --parchment: #f3ead8;
  --parchment-deep: #e6d7bc;
  --walnut: #2a1a12;
  --walnut-soft: #3d2a1e;
  --ink: #1c1410;
  --mute: #5c4a3d;
  --copper: #c4783a;
  --copper-hot: #d48a4c;
  --cream: #fbf6ec;
  --line: rgba(42, 26, 18, 0.14);
  --display: "Fraunces", Georgia, serif;
  --body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(circle at 82% 18%, rgba(196, 120, 58, 0.16), transparent 42%),
    radial-gradient(circle at 8% 70%, rgba(42, 26, 18, 0.06), transparent 40%),
    var(--parchment);
  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(--walnut);
  color: var(--cream);
  padding: 0.7rem 1rem;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.mark {
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.34s; }

/* ——— Centered pill header (not a bar, not a rail) ——— */
.pill {
  position: fixed;
  z-index: 50;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.55rem 0.7rem 0.55rem 1.15rem;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(42, 26, 18, 0.08);
}

.pill a {
  text-decoration: none;
}

.pill__brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.pill__nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.pill__nav a {
  opacity: 0.7;
}

.pill__nav a:hover {
  opacity: 1;
}

.pill__phone {
  background: var(--walnut);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
}

.pill__phone:hover {
  background: var(--walnut-soft);
}

/* ——— Hero: top-aligned copy + circular orbit photo ——— */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 7.5rem 0 4rem;
}

.hero__copy {
  padding-top: 0.4rem;
}

.hero__name {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-style: italic;
  font-weight: 560;
  font-size: 1.05rem;
  color: var(--copper);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 10ch;
}

.hero__lede {
  margin: 0 0 1.6rem;
  max-width: 34ch;
  color: var(--mute);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.3rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  background: var(--copper);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--copper-hot);
  transform: translateY(-1px);
}

.ghost {
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1.5px solid var(--copper);
  padding-bottom: 0.12rem;
}

.ghost:hover {
  color: var(--copper);
}

.hero__orbit {
  position: relative;
  justify-self: center;
  width: min(100%, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 120, 58, 0.45);
  pointer-events: none;
}

.hero__ring--outer {
  inset: -18px;
}

.hero__ring--mid {
  inset: -8px;
  border-style: dashed;
  border-color: rgba(42, 26, 18, 0.22);
  animation: spin 36s linear infinite;
}

.hero__disc {
  margin: 0;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(42, 26, 18, 0.22);
}

.hero__disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.hero__tag {
  position: absolute;
  right: -0.4rem;
  bottom: 12%;
  margin: 0;
  background: var(--walnut);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ——— About: dark walnut band + paper stamp ——— */
.about {
  background: var(--walnut);
  color: var(--cream);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.about__wrap {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "text frame"
    "stamp frame";
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.about__text { grid-area: text; }
.about__frame { grid-area: frame; }
.stamp { grid-area: stamp; }

.about__title {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.about__body {
  margin: 0;
  max-width: 40ch;
  color: rgba(251, 246, 236, 0.78);
}

.about__frame {
  margin: 0;
}

.about__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.5rem 1.5rem 4rem 1.5rem;
  filter: saturate(0.85) contrast(1.05);
}

.stamp {
  background: var(--parchment);
  color: var(--ink);
  padding: 1.3rem 1.4rem 1.45rem;
  border-radius: 0.35rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  transform: rotate(-1.4deg);
  max-width: 22rem;
}

.stamp__label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.stamp__addr {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stamp__sub {
  margin: 0.35rem 0 1rem;
  font-weight: 600;
  color: var(--mute);
}

.stamp__links {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.stamp__links a {
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1.5px solid var(--copper);
}

.stamp__links a:hover {
  color: var(--copper);
}

/* ——— Services: circular-top portrait tiles ——— */
.services {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.services__head {
  max-width: 28rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.8rem);
}

.services__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: start;
}

.tile {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.15rem 1.15rem 1.4rem;
  display: grid;
  gap: 0.55rem;
}

.tile--lift {
  margin-top: 2.4rem;
}

.tile__photo {
  width: min(78%, 220px);
  aspect-ratio: 1;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--copper);
}

.tile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.tile:hover .tile__photo img {
  transform: scale(1.06);
}

.tile h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.tile p {
  margin: 0;
  color: var(--mute);
  text-align: center;
  font-size: 0.98rem;
}

.tile a {
  justify-self: center;
  margin-top: 0.25rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--copper);
}

.tile a:hover {
  color: var(--copper);
}

/* ——— Footer ——— */
.foot {
  border-top: 1px solid var(--line);
  padding: 1.8rem 1.25rem 2.2rem;
  display: grid;
  gap: 0.65rem;
  text-align: center;
}

.foot strong {
  font-family: var(--display);
  font-size: 1.3rem;
}

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.3rem;
  font-size: 0.95rem;
}

.foot__meta a {
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 120, 58, 0.5);
}

.foot__meta a:hover {
  color: var(--copper);
}

.foot p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--mute);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 6.5rem;
  }

  .hero__orbit {
    order: -1;
    width: min(78%, 340px);
  }

  .about__wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "frame"
      "stamp";
  }

  .about__frame img {
    aspect-ratio: 16 / 10;
    border-radius: 1.2rem;
  }

  .tiles {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .tile--lift {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .pill {
    width: calc(100% - 1.2rem);
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  }

  .pill__nav {
    display: none;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__ring--mid { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .tile__photo img { transition: none; }
}
