/* Detail District — shared styles
   Palette and type are lifted from the client's own flyers and logo:
   warm black, metallic gold, silver for the Silver package, Cinzel caps. */

/* Self-hosted (OFL) so first paint doesn't wait on a Google round trip. */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/cinzel.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/jost.woff2") format("woff2"); }
@font-face { font-family: "Pinyon Script"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/pinyon-script.woff2") format("woff2"); }

:root {
  --ink: #0b0a08;
  --panel: #14120e;
  --panel-2: #1b1813;
  --line: rgba(212, 175, 106, 0.32);
  --line-soft: rgba(237, 230, 216, 0.09);
  --gold: #d4af6a;
  --gold-hi: #f1daa0;
  --gold-lo: #8c6a34;
  --silver: #c9cdd3;
  --paper: #ede6d8;
  --muted: #9c9282;
  --metal-gold: linear-gradient(180deg, #f8e7b6 0%, #dcb76f 36%, #9f7536 60%, #e9ca88 100%);
  --metal-silver: linear-gradient(180deg, #ffffff 0%, #d5d8dd 38%, #8a9099 60%, #e8eaed 100%);

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Jost", "Futura", system-ui, sans-serif;
  --script: "Pinyon Script", cursive;

  --radius: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
/* Desktop keeps the proportions of a 1440px screen on smaller laptops:
   the side margins scale with the window instead of shrinking to 40px. */
@media (min-width: 960px) {
  .wrap { width: min(var(--max), 82vw); }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(2.2rem, 5.6vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }

p { margin: 0; }

.metal-gold,
.metal-silver {
  background: var(--metal-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metal-silver { background-image: var(--metal-silver); }

.script {
  font-family: var(--script);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--gold);
}

/* The flyer's panel title: spaced caps with a hairline running off to the right */
.rule-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 500 0.78rem/1 var(--body);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--paper);
}
.rule-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.muted { color: var(--muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 0.82rem/1 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: var(--metal-gold);
  color: #1a1307;
  box-shadow: 0 10px 30px -12px rgba(212, 175, 106, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.link-arrow:hover { color: var(--gold-hi); border-color: var(--gold); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 8, 0.95);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 38px; height: auto; mix-blend-mode: lighten; }
.brand span {
  font: 500 0.9rem/1 var(--display);
  letter-spacing: 0.24em;
  white-space: nowrap;
}
.brand span b { font-weight: 500; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn):not(.nav-call) {
  padding: 10px 14px;
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:not(.btn):not(.nav-call):hover,
.nav-links a[aria-current="page"]:not(.btn):not(.nav-call) { color: var(--paper); }
.nav-links .btn { min-height: 42px; padding: 0 18px; font-size: 0.74rem; }

@media (max-width: 640px) {
  .brand span { display: none; }
  .nav-links a:not(.btn):not(.nav-call) { padding: 10px 8px; font-size: 0.9rem; }
}
@media (max-width: 360px) {
  .nav-links .btn { padding: 0 14px; letter-spacing: 0.14em; }
}

/* ---------- size toggle (shared) ---------- */

.sizes {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  position: relative;
}
.sizes button {
  position: relative;
  z-index: 1;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 500 0.78rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
}
.sizes button[aria-pressed="true"] { color: #1a1307; }
.sizes .pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--metal-gold);
  transition: transform 0.4s var(--ease);
}
.sizes[data-size="medium"] .pill { transform: translateX(100%); }
.sizes[data-size="large"] .pill { transform: translateX(200%); }

.price-swap { display: inline-block; transition: opacity 0.18s, transform 0.18s; }
.price-swap.is-swapping { opacity: 0; transform: translateY(4px); }

/* ---------- panels ---------- */

.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- checklist ---------- */

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.4; }
.checks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%231a1307' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--metal-gold);
}
.checks.is-silver li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--metal-silver);
}

/* ---------- diamond divider (the sparkle under the logo) ---------- */

.diamond {
  width: 12px;
  height: 12px;
  flex: none;
  background: var(--metal-gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 40px;
  margin-top: 40px;
  text-align: center;
}
.footer img.word { width: min(360px, 80%); margin: 0 auto 22px; mix-blend-mode: lighten; }
.footer .handle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--paper);
}
.footer .handle:hover { color: var(--gold-hi); }
.footer .tag {
  margin-top: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer nav { margin-top: 26px; display: flex; justify-content: center; gap: 22px; font-size: 0.92rem; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--paper); }

.ig-icon { width: 20px; height: 20px; }

/* ---------- scroll reveals ----------
   An inline script in <head> adds .js, so nothing flashes before site.js
   runs. If site.js never marks the page ready, the head script adds
   .reveal-off after 3.5s and everything simply shows. */
.js:not(.reveal-off) [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 28px, 0); }
.js:not(.reveal-off) [data-reveal="title"]:not(.is-in) { transform: translate3d(0, 0.5em, 0); }
[data-reveal] {
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}
[data-reveal="title"] { transition-duration: 1.1s, 1.2s; }

/* work tiles: rise in while the photo or clip inside settles from a slight zoom */
[data-reveal="media"] { transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
[data-reveal="media"] :is(img, video) { transition: transform 1.6s var(--ease); transition-delay: inherit; }
.js:not(.reveal-off) [data-reveal="media"]:not(.is-in) { transform: translate3d(0, 40px, 0); }
.js:not(.reveal-off) [data-reveal="media"]:not(.is-in) :is(img, video) { transform: scale(1.14); }

/* hairlines draw in once their panel is shown */
[data-reveal] .rule-title::after { transform-origin: left; transition: transform 1.1s var(--ease) 0.25s; }
.js:not(.reveal-off) [data-reveal]:not(.is-in) .rule-title::after { transform: scaleX(0); }

/* checklist ticks land one after another */
[data-reveal] .checks li { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(0.2s + var(--li, 0) * 55ms); }
.js:not(.reveal-off) [data-reveal]:not(.is-in) .checks li { opacity: 0; transform: translate3d(-10px, 0, 0); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal] .checks li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js [data-reveal="media"] :is(img, video) { transform: none !important; transition: none !important; }
}

/* ?p=0.4 freezes every reveal at that point, for headless screenshots */
.freeze [data-reveal] { transition: none !important; opacity: var(--p) !important; transform: translate3d(0, calc((1 - var(--p)) * 28px), 0) !important; }
.freeze [data-reveal="media"] { transform: translate3d(0, calc((1 - var(--p)) * 40px), 0) !important; }
.freeze [data-reveal="media"] :is(img, video) { transition: none !important; transform: scale(calc(1.14 - var(--p) * 0.14)) !important; }
.freeze [data-reveal] .checks li { transition: none !important; }

/* ---------- call button (nav) ---------- */
.nav-links .nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font: 500 0.74rem/1 var(--body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  transition: border-color 0.2s, color 0.2s;
}
.nav-links .nav-call:hover { border-color: var(--gold); color: var(--gold-hi); }
.nav-call svg { width: 16px; height: 16px; color: var(--gold); }
@media (max-width: 640px) {
  .nav-links .nav-work { display: none; }
  .nav-links .nav-call { padding: 0; width: 42px; justify-content: center; }
  .nav-call span { display: none; }
}
.footer .contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.footer .handle svg { width: 20px; height: 20px; }
