/* Janee The Explorer — the tag.
   Tokens (design/DESIGN.md §4): page #E9DFC9, tag #F7ECD2,
   reverse #2E2118, ink #2E2118, ink-2 #6B573F, tint #D8C49A,
   red #9E2B1E. All pairs ≥ 4.5:1, computed before code. */

:root {
  --page: #E9DFC9;
  --tag: #F7ECD2;
  --reverse: #2E2118;
  --ink: #2E2118;
  --ink-2: #6B573F;
  --tint: #D8C49A;
  --red: #9E2B1E;
  --hair: rgba(46, 33, 24, 0.28);
  --hair-light: rgba(247, 236, 210, 0.22);
  --rule: rgba(46, 33, 24, 0.13);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); }
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 40;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-110%);
  transition: transform 160ms ease-out;
}
.skip:focus { transform: translateY(8px); }

/* Header — house furniture, on the page ground. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 8px 24px;
  background: var(--page);
  border-bottom: 1px solid var(--hair);
}
.wordmark {
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  padding: 10px 0;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-link {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 0;
}
.header-dir {
  display: none;
  color: var(--ink);
  padding: 10px 0;
}
.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.header-call.pill-quiet {
  background: transparent;
  color: var(--red);
}

/* The rail — the hero photograph, full width. */
.rail {
  padding-bottom: 96px;
}
.rail-photo {
  margin: 0;
}
.rail-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* The tag — one manila card hung over the photograph. */
.tag-wrap {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 32px));
  margin: -132px auto 0;
  filter: drop-shadow(0 18px 28px rgba(46, 33, 24, 0.30));
}
.tag {
  position: relative;
  background-color: var(--tag);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0, transparent 33px,
    var(--rule) 33px, var(--rule) 34px
  );
  background-position: 0 10px;
  padding: 64px clamp(28px, 5vw, 52px) 44px;
  transform: rotate(-2deg);
  animation: settle 450ms ease-out;
  clip-path: polygon(
    26px 0, calc(100% - 26px) 0, 100% 26px,
    100% 100%, 0 100%, 0 26px
  );
}
@keyframes settle {
  from { opacity: 0; transform: rotate(-2deg) translateY(10px); }
  to { opacity: 1; transform: rotate(-2deg) translateY(0); }
}
/* The string: drawn in red, descending from the
   photograph to the tag's hole. It belongs to the wrap,
   so it stays vertical while the tag hangs rotated
   beneath it; its foot lands on the hole, which the
   tag's rotation carries a few pixels off centre. */
.string {
  position: absolute;
  left: calc(50% - 8px);
  top: -118px;
  width: 3px;
  height: 140px;
  background: var(--red);
}
/* The hole: a reinforced ring with a dark punched
   centre, as on the tags in both photographs. */
.hole {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #C9B083;
  transform: translateX(-50%);
}
.hole::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3A2C1E;
  transform: translate(-50%, -50%);
}

.kind {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.name {
  margin: 0;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-align: center;
}
.name-main {
  display: block;
  font-size: clamp(52px, 10vw, 104px);
}
.name-sub {
  display: block;
  margin-top: 6px;
  font-size: clamp(24px, 4.4vw, 42px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lead {
  margin: 26px auto 0;
  color: var(--ink-2);
  font-size: 19px;
  text-align: center;
  max-width: 36ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 32px;
}
.call {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  transition: transform 120ms ease-out;
}
.call:active { transform: scale(0.98); }
.dir {
  color: var(--ink);
  font-weight: 600;
  padding: 12px 0;
}

/* The reverse — the tag turned over: a card at the
   tag's measure on the kraft ground, its top corners
   clipped like the front's, its hole punched at the
   head. */
.reverse {
  background: var(--page);
  padding: 8px 16px 96px;
}
.reverse-inner {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  background: var(--reverse);
  color: var(--tag);
  clip-path: polygon(
    26px 0, calc(100% - 26px) 0, 100% 26px,
    100% 100%, 0 100%, 0 26px
  );
  padding: clamp(72px, 7vw, 88px) clamp(24px, 4vw, 56px) clamp(48px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}
.hole-back::after { background: #17100B; }
.inscriptions { min-width: 0; }
.field + .field { margin-top: 40px; }
.label {
  margin: 0 0 8px;
  color: var(--tint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.address-lines {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1.15;
}
.phone {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.phone a {
  color: var(--tag);
  text-decoration: none;
  display: inline-block;
  padding: 8px 0;
  margin: -8px 0;
}
.actions-reverse {
  justify-content: flex-start;
  margin-top: 40px;
}
.call-reverse {
  background: var(--tag);
  color: var(--ink);
}
.dir-reverse {
  color: var(--tag);
}
.counter-photo {
  margin: 0;
}
.counter-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}

/* Footer — plain lines on the page ground. */
.site-footer {
  padding: 48px 24px 64px;
}
.site-footer p {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 14px;
}
.site-footer .foot-name {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}
.site-footer a {
  color: var(--ink-2);
  padding: 12px 0;
  display: inline-block;
  min-height: 44px;
}

/* Desktop and tablet: the hero photograph is cropped
   to a band so the tag and the name enter the first
   screen (Look fix 1). The phone keeps its 4/3 crop. */
@media (min-width: 761px) {
  .rail-photo img {
    height: min(70vh, 780px);
    aspect-ratio: auto;
    object-position: 50% 30%;
  }
}

/* Phone bar. */
.bar { display: none; }

@media (max-width: 760px) {
  .site-header { padding: 8px 16px; }
  .header-link, .header-call { display: none; }
  .header-dir { display: inline-block; }
  .rail { padding-bottom: 72px; }
  .rail-photo img {
    aspect-ratio: 4 / 3;
    object-position: 50% 42%;
  }
  .tag-wrap {
    margin-top: -72px;
    width: calc(100% - 28px);
  }
  .string {
    top: -64px;
    height: 88px;
  }
  .tag { padding: 58px 22px 36px; }
  .lead { font-size: 18px; }
  .reverse { padding: 8px 14px 72px; }
  .reverse-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 68px 20px 48px;
  }
  .counter-photo { margin-top: 8px; }
  .site-footer { padding-bottom: 120px; }
  .bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--page);
    border-top: 1px solid var(--hair);
    transition: transform 240ms ease-out, opacity 240ms ease-out;
  }
  .bar.bar-aside {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
  .bar-call {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
  }
  .bar-dir {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
