/* Azov project detail pages — shared chrome + components.
   ONE stylesheet for every project page so the chrome cannot drift between them.

   Visual direction: "the site file". A builder's own project folder, opened to the
   public: the concept render leads full-bleed under an ink scrim, a hairline ledger
   states only facts that exist on paper, and a swipeable rail carries what is
   actually on the ground today. Boldness is spent in exactly one place: the opening
   render with the live status chip and its accent halo.

   No JavaScript anywhere. The site CSP is script-src 'self' + three pinned hashes,
   so an inline script would silently never run. The gallery is a native scroll-snap
   rail (STREAMLINED 4b / TECHNIQUES 5 native primitives) with real anchor controls. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/outfit-latin-v15.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin-v24.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Tokens: lifted verbatim from public/azov-real-estate-v12.html so the two pages
   are the same brand, not a lookalike. */
:root {
  --ink: #1F1E20;
  --charcoal: #2A2A2C;
  --paper: #FFFFFF;
  --bone: #F5F3EF;
  --line: #E5E0D6;
  --steel: #6B6B6F;
  --accent: #E89B00;
  --accent-deep: #9A5300;
  --accent-glow: #FFC42E;
  --accent-gradient: linear-gradient(135deg, var(--accent-glow), var(--accent));
  --shadow-accent-soft: 0 4px 24px -4px rgba(232,155,0,0.25);
  --shadow-accent-glow: 0 12px 40px -8px rgba(232,155,0,0.45);
  --shadow-accent-press: 0 2px 10px -4px rgba(232,155,0,0.30);
  --ease: cubic-bezier(0.4,0,0.2,1);
  --ease-spring: cubic-bezier(0.22,1,0.36,1);
  --press-in: 0.1s;
  --press-out: 0.34s;
  --mono: 'JetBrains Mono', monospace;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;            /* root, not body alone */
  background: var(--ink);      /* matches the page top so navigation never flashes white */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
a, button { touch-action: manipulation; }

::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Preview strip. This page is not linked from the site and must not read as
      shipped. Slim by design: one mono line, ~30px, never a banner. ───────── */
/* ── Top bar. Not sticky: a phone screen is for the project, not for our chrome. */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  transition: color 150ms var(--ease), transform var(--press-out) var(--ease-spring);
}
.back-link svg { flex: none; transition: transform 150ms var(--ease); }
@media (any-hover: hover) {
  .back-link:hover { color: var(--ink); }
  .back-link:hover svg { transform: translateX(-2px); }
}
.back-link:active { transform: scale(0.98); transition-duration: var(--press-in); }
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 12px 5px;
}
.wordmark span { color: var(--accent); }

/* ── Hero. The signature moment: the concept render full-bleed under an ink
      scrim, with the status chip carrying the halo dot. ───────────────────── */
.hero {
  position: relative;
  background: var(--ink) center 42%/cover no-repeat;
  min-height: 52svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(31,30,32,0.94) 0%, rgba(31,30,32,0.62) 38%, rgba(31,30,32,0.10) 72%, rgba(31,30,32,0.28) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px var(--gutter) 28px;
}
.hero-note {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  background: rgba(31,30,32,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9999px;
  padding: 6px 12px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  border-radius: 9999px;
  padding: 7px 14px 7px 12px;
  margin-bottom: 18px;
}
/* halo glow dot: ping layer behind a solid dot with an omni-directional halo */
.dot { position: relative; width: 9px; height: 9px; flex: none; }
.dot::before, .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--accent-glow);
}
.dot::before { animation: ping 1.9s var(--ease) infinite; }
.dot::after { box-shadow: 0 0 22px 6px rgba(255,196,46,0.55); }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.1); opacity: 0; } }

.hero h1 {
  margin: 0 0 12px;
  color: var(--paper);
  font-size: clamp(2rem, 1.35rem + 3.2vi, 3.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero-scope {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-glow);
}
.hero-address {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.72);
}

/* ── Seam ramp: the ink hero must not butt straight into paper. ──────────── */
.seam {
  height: 96px;
  margin-top: -96px;
  position: relative;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(31,30,32,0) 0%, rgba(31,30,32,0) 55%, rgba(255,255,255,0.65) 88%, var(--paper) 100%);
}

/* ── Fact ledger. Values dominant, labels demoted to the mono voice. ─────── */
.ledger-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.ledger {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px var(--gutter) 28px;
}
.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fact:last-child { border-bottom: 0; }
.fact-label {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}
.fact-value {
  text-align: right;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.fact-value small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-top: 3px;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section {
  padding: 44px 0 8px;
  background: var(--bone);   /* the rail cards are paper; they need a canvas to peek against */
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 1.35rem + 2vi, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.section-sub {
  margin: 0;
  color: var(--steel);
  font-size: 16px;
  max-width: 46ch;
}

/* ── Gallery rail. Native horizontal scroll + snap, next card peeking. ───── */
.rail {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 4px var(--gutter) 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(107,107,111,0.35) transparent;
}
.rail::-webkit-scrollbar { height: 10px; }
.rail::-webkit-scrollbar-thumb { background: rgba(107,107,111,0.35); border-radius: 9999px; }
.rail::-webkit-scrollbar-thumb:hover { background: rgba(232,155,0,0.6); }

.shot {
  flex: none;
  width: min(82vw, 460px);
  scroll-snap-align: start;
  scroll-margin-block: 96px;   /* an anchor jump must not shove the rail under the top bar */
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.shot-media {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
}
.shot-media img { width: 100%; height: 100%; object-fit: cover; }
/* Drawings are documents, not pictures: show the whole sheet, never crop it. */
.shot-media.sheet { background: var(--bone); }
.shot-media.sheet img { object-fit: contain; }
.shot-body { padding: 14px 16px 18px; }
.shot-kind {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.shot-caption {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--steel);
}

/* Real controls. Gestures supplement them, never replace them. */
.rail-controls {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter) 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rail-controls .rc-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-right: 4px;
}
.rc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--steel);
  text-decoration: none;
  background: var(--paper);
  transition: color 150ms var(--ease), border-color 150ms var(--ease), transform var(--press-out) var(--ease-spring);
}
@media (any-hover: hover) {
  .rc:hover { color: var(--ink); border-color: rgba(31,30,32,0.4); }
}
.rc:active { transform: scale(0.94); transition-duration: var(--press-in); }
.rc:focus-visible { color: var(--ink); border-color: var(--accent); }

/* ── Closing ask. One action. ────────────────────────────────────────────── */
.ask {
  margin-top: 40px;
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  border-top: 1px solid var(--line);
}
.ask-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px var(--gutter) 44px;
}
.ask h2 {
  margin: 0 0 10px;
  color: var(--paper);
  font-size: clamp(1.6rem, 1.25rem + 1.8vi, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.ask p { margin: 0 0 24px; font-size: 16px; max-width: 42ch; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 9999px;
  background: var(--accent-gradient);
  color: #241800;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow-accent-soft);
  transition: transform var(--press-out) var(--ease-spring), box-shadow 300ms var(--ease);
}
@media (any-hover: hover) {
  .btn:hover { transform: scale(1.02); box-shadow: var(--shadow-accent-glow); }
}
.btn:active { transform: scale(0.98); box-shadow: var(--shadow-accent-press); transition-duration: var(--press-in); }
.ask-phone {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
}
@media (any-hover: hover) { .ask-phone:hover { color: var(--accent-glow); } }

/* ── Footer: the licence line, nothing else. Never a second homepage. ────── */
.foot {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.45);
  font-size: 14px;          /* secondary copy floor; this is a sentence, not a mono label */
  line-height: 1.75;
}
.foot-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px var(--gutter) calc(26px + env(safe-area-inset-bottom));
}
/* Inline links in a sentence: padded to clear the 24px audit line without
   breaking the line box. */
.foot a {
  display: inline-block;
  padding: 4px 2px;
  color: rgba(255,255,255,0.62);
  transition: color 150ms var(--ease);
}
@media (any-hover: hover) { .foot a:hover { color: var(--accent-glow); } }

/* ── Preview index ───────────────────────────────────────────────────────── */
.idx { max-width: 1100px; margin: 0 auto; padding: 36px var(--gutter) 8px; }
.idx-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.idx-list li { border-bottom: 1px solid var(--line); }
.idx-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 0;
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.idx-name { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.idx-meta {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 4px;
}
.idx-list svg { flex: none; color: var(--steel); transition: transform 150ms var(--ease), color 150ms var(--ease); }
@media (any-hover: hover) {
  .idx-list a:hover .idx-name { color: var(--accent-deep); }
  .idx-list a:hover svg { transform: translateX(2px); color: var(--accent); }
}
.idx-list a:active svg { transform: translateX(2px); }

/* ── Desktop is the adaptation. ──────────────────────────────────────────── */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero { min-height: 56svh; }
  .hero-inner { padding: 120px var(--gutter) 40px; }
  .ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .section { padding: 64px 0 8px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  .ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { flex-direction: column; align-items: flex-start; gap: 6px; }
  .fact-value { text-align: left; }
}

/* ── Reduced motion. Killing durations alone makes infinite loops strobe. ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .dot::before { animation: none !important; opacity: 0; }
}
