/* ==========================================================================
   Demonstration sites — v2
   Three studios that do not exist, built to three different briefs.
   They share a construction standard and nothing else: separate palettes,
   type pairings, section orders and hero treatments.
   These carry the entire proof load, so they are built like real work.
   ========================================================================== */

:root { --ease: cubic-bezier(.22,.61,.30,1); --t: 170ms; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: var(--display-weight, 400); line-height: 1.1; }
p { margin: 0 0 1rem; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.d-wrap { width: 100%; max-width: var(--max, 1180px); margin-inline: auto; padding-inline: clamp(18px, 4.5vw, 52px); }
.d-section { padding-block: clamp(48px, 8vw, 116px); }
.d-narrow { max-width: 720px; }

.d-label {
  display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: var(--label-tracking, .2em); text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}

/* Honesty bar — on every demonstration, top and bottom, never optional */
.d-notice {
  background: #0B1712; color: #E9E0CF;
  font-family: Inter, system-ui, sans-serif; font-size: 12.5px; line-height: 1.5;
  padding: 9px clamp(14px, 4vw, 32px);
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  align-items: center; justify-content: center; text-align: center;
}
.d-notice a { color: #BA9B5F; font-weight: 600; text-underline-offset: 3px; display: inline-block; padding-block: 3px; min-height: 24px; }
.d-notice a:hover { color: #E9E0CF; }

/* Header */
.d-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(9px); border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(9px)) { .d-header { background: var(--paper); } }
.d-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; }
.d-logo {
  font-family: var(--font-display); font-size: clamp(1rem, 1.9vw, 1.26rem);
  letter-spacing: var(--logo-tracking, .04em); text-transform: var(--logo-case, none);
  text-decoration: none; color: var(--ink); font-weight: var(--display-weight, 400);
}
.d-nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px); }
.d-nav a {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; color: var(--muted); text-transform: var(--nav-case, none);
  transition: color var(--t) var(--ease);
}
.d-nav a:not(.d-btn) { display: inline-block; padding-block: 6px; min-height: 26px; }
.d-nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .d-nav a:not(.d-btn) { display: none; } }

/* Buttons */
.d-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 22px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--accent); border-radius: var(--radius, 0);
  background: var(--accent); color: var(--on-accent);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.d-nav a.d-btn { color: var(--on-accent); }
.d-btn:hover, .d-nav a.d-btn:hover { background: transparent; color: var(--accent); }
.d-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.d-nav a.d-btn--ghost { color: var(--ink); }
.d-btn--ghost:hover, .d-nav a.d-btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- Cinematic hero ---- */
.d-hero { position: relative; overflow: hidden; }
.d-hero__media { position: relative; height: clamp(340px, 78vh, 780px); }
.d-hero__media img, .d-hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.d-hero__video { opacity: 0; transition: opacity 900ms var(--ease); }
.d-hero[data-video="playing"] .d-hero__video { opacity: 1; }
.d-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.80) 0%, rgba(0,0,0,.62) 30%, rgba(0,0,0,.24) 62%, rgba(0,0,0,.12) 100%);
}
.d-hero__over { position: absolute; inset: auto 0 0 0; padding-block: clamp(24px, 5vw, 66px); z-index: 2; color: #fff; }
.d-hero__over h1 {
  color: #fff; font-size: clamp(1.9rem, 5.2vw, 4.1rem); letter-spacing: -0.018em; line-height: 1.04;
}
.d-hero__over p { color: rgba(255,255,255,.9); margin-top: 14px; max-width: 44ch; }
.d-hero__over .d-label { color: rgba(255,255,255,.72); }

/* Split hero (portrait studio) */
.d-hero--split { display: grid; gap: 0; }
@media (min-width: 900px) { .d-hero--split { grid-template-columns: 1fr 1.18fr; align-items: stretch; } }
.d-hero--split .d-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5.5vw, 76px) clamp(18px, 4.5vw, 60px); }
.d-hero--split h1 { font-size: clamp(1.85rem, 4.2vw, 3.2rem); }
.d-hero--split .d-hero__img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }

/* Galleries — editorial, not a uniform grid */
.d-gal { display: grid; gap: var(--gap, 14px); }
.d-gal--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.d-gal--3 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.d-gal img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ar, 3/2); }
.d-gal .tall { aspect-ratio: 2/3; }
.d-gal--stagger > *:nth-child(even) { margin-top: var(--stagger, 0); }

/* An editorial mosaic: one large frame, two stacked beside it */
.d-mosaic { display: grid; gap: var(--gap, 14px); }
@media (min-width: 820px) {
  .d-mosaic { grid-template-columns: 1.62fr 1fr; align-items: stretch; }
  .d-mosaic__side { display: grid; gap: var(--gap, 14px); grid-template-rows: 1fr 1fr; }
  .d-mosaic__main img { height: 100%; aspect-ratio: auto; min-height: 420px; }
  .d-mosaic__side img { height: 100%; aspect-ratio: auto; }
}

/* Full-bleed band */
.d-band { position: relative; height: clamp(260px, 44vw, 520px); overflow: hidden; }
.d-band img { width: 100%; height: 100%; object-fit: cover; }
.d-band__over {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(to right, rgba(0,0,0,.68), rgba(0,0,0,.18));
  color: #fff;
}
.d-band__over h2 { color: #fff; font-size: clamp(1.4rem, 3.2vw, 2.4rem); max-width: 20ch; }

.d-figure { margin: 0; }
.d-figure figcaption { font-family: var(--font-body); font-size: 12px; color: var(--muted); padding-top: 8px; letter-spacing: .02em; }

.d-split { display: grid; gap: clamp(26px, 5vw, 62px); align-items: center; }
@media (min-width: 880px) {
  .d-split { grid-template-columns: 1fr 1fr; }
  .d-split--wide { grid-template-columns: 1.22fr 1fr; }
}
.d-split > * { min-width: 0; }

/* Stat row */
.d-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 46px); }
.d-stat__n { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); display: block; margin-bottom: 4px; }
.d-stat__l { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); }

/* Cards / pricing */
.d-cards { display: grid; gap: clamp(14px, 2.2vw, 26px); grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.d-cards > * { min-width: 0; }
.d-card { border: 1px solid var(--line); padding: clamp(20px, 2.8vw, 32px); background: var(--card); border-radius: var(--radius, 0); }
.d-card h3 { font-size: 1.16rem; margin-bottom: 9px; }
.d-card__price { font-family: var(--font-display); font-size: 1.95rem; line-height: 1; margin: 14px 0; font-variant-numeric: tabular-nums; }
.d-card ul { list-style: none; margin: 14px 0 0; padding: 0; font-family: var(--font-body); font-size: 13.5px; }
.d-card li { padding: 7px 0; border-top: 1px solid var(--line); color: var(--muted); }

.d-quote {
  border-left: 2px solid var(--accent); padding-left: clamp(18px, 3vw, 30px);
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  line-height: 1.34; max-width: 26ch;
}
.d-quote cite { display: block; font-family: var(--font-body); font-size: 12.5px; font-style: normal; color: var(--muted); margin-top: 14px; letter-spacing: .04em; }

/* Forms */
.d-form { display: grid; gap: 16px; }
.d-form__row { display: grid; gap: 16px; }
@media (min-width: 620px) { .d-form__row { grid-template-columns: 1fr 1fr; } }
.d-field { display: grid; gap: 6px; }
.d-field label { font-family: var(--font-body); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.d-field input, .d-field textarea, .d-field select {
  width: 100%; min-height: 46px; padding: 11px 13px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius, 0);
  transition: border-color var(--t) var(--ease);
}
.d-field textarea { min-height: 104px; resize: vertical; }
.d-field input:hover, .d-field textarea:hover, .d-field select:hover { border-color: var(--ink); }
.d-form__note { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin: 0; }

/* Footer */
.d-footer { border-top: 1px solid var(--line); padding-block: clamp(32px, 5vw, 60px); }
.d-footer__grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(190px,100%),1fr)); }
.d-footer__grid > * { min-width: 0; }
.d-footer a { font-family: var(--font-body); font-size: 13.5px; color: var(--muted); text-decoration: none; display: inline-block; padding-block: 4px; min-height: 24px; }
.d-footer a:hover { color: var(--ink); }
.d-footer__foot {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--font-body); font-size: 11.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between;
}

/* Real-estate listing grid */
.d-listing { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.d-listing > * { min-width: 0; }
.d-listing article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.d-listing img { aspect-ratio: 3/2; width: 100%; object-fit: cover; }
.d-listing__body { padding: 15px 17px 19px; }
.d-listing h3 { font-size: .98rem; margin-bottom: 4px; }
.d-listing__meta { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 13px; margin-top: 9px; font-variant-numeric: tabular-nums; }
.d-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.d-filters button {
  appearance: none; min-height: 40px; padding: 8px 16px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 100px; cursor: pointer;
  transition: all var(--t) var(--ease);
}
.d-filters button:hover { color: var(--ink); border-color: var(--ink); }
.d-filters button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ==========================================================================
   THEME A — Wedding Canvas Studio
   Bone, charcoal, clay. High-contrast serif. Long, quiet, cinematic.
   ========================================================================== */
.t-wedding {
  --paper: #F6F2EC; --card: #FFFFFF; --ink: #2A2724; --muted: #6F655E;
  --accent: #96685A; --on-accent: #FFFFFF;
  --line: rgba(42,39,36,.14); --line-strong: rgba(42,39,36,.28);
  --font-display: "Cormorant Garamond", Georgia, serif; --font-body: Inter, system-ui, sans-serif;
  --display-weight: 300; --logo-tracking: .22em; --logo-case: uppercase;
  --label-tracking: .26em; --gap: 16px; --stagger: 54px; --radius: 0; --max: 1260px;
}
.t-wedding .d-logo { font-size: clamp(.9rem, 1.7vw, 1.1rem); }

/* ==========================================================================
   THEME B — Rowan Hill Portraits
   Cream, walnut, sage. Softer, rounder. Price visible before the scroll.
   ========================================================================== */
.t-portrait {
  --paper: #FBF7F1; --card: #FFFFFF; --ink: #3B3229; --muted: #6E6357;
  --accent: #5F6E50; --on-accent: #FFFFFF;
  --line: rgba(59,50,41,.13); --line-strong: rgba(59,50,41,.26);
  --font-display: Lora, Georgia, serif; --font-body: Inter, system-ui, sans-serif;
  --display-weight: 500; --logo-tracking: .02em; --label-tracking: .18em;
  --gap: 12px; --radius: 6px; --max: 1140px;
}
.t-portrait .d-card { box-shadow: 0 1px 2px rgba(59,50,41,.05); }

/* ==========================================================================
   THEME C — Northline Property Media
   White, graphite, slate. Grotesk, tabular figures. Dense and fast.
   ========================================================================== */
.t-realestate {
  --paper: #FFFFFF; --card: #F6F7F8; --ink: #1C2126; --muted: #5A646D;
  --accent: #2E5C7E; --on-accent: #FFFFFF;
  --line: rgba(28,33,38,.12); --line-strong: rgba(28,33,38,.26);
  --font-display: "Archivo", Inter, system-ui, sans-serif; --font-body: Inter, system-ui, sans-serif;
  --display-weight: 600; --logo-tracking: -.01em; --label-tracking: .14em;
  --gap: 8px; --radius: 3px; --max: 1300px;
}
.t-realestate h1, .t-realestate h2 { letter-spacing: -0.022em; }
