/*
  DIRECTION CONTRACT — impeccable:direction-seed OCON-2026-01
  THESIS: The portfolio is the pitch — real aerial and ground coverage of
    real properties, shown at cinematic scale, so an agent decides to book
    before reading a word of copy.
  OWN-WORLD: Near-black charcoal ground throughout; warm brass/gold as the
    single accent (CTAs, active filter, italic display flourishes); Fraunces
    serif display (italic for accents) paired with Instrument Sans for
    UI/body; thin gold hairlines; full-bleed photography, no card chrome.
  STORY: Full-bleed aerial hero -> filter into real work -> stopped by one
    property shown from every angle -> same work reframed for social ->
    closed by a dark cinematic CTA into Book a Shoot.
  FIRST VIEWPORT: full-bleed looping aerial video, 70-80vh, dark gradient
    overlay bottom third, gold eyebrow, large italic Fraunces H1, one-line
    subhead, gold-outlined pill CTA bottom-left.
  FORM: editorial real-estate-photography portfolio (asymmetric masonry,
    lightbox, cinematic video viewer) — direction taken directly from the
    user's own pinned references (Urbanova, Luxury Image Estate Photography)
    and a fully detailed wireframe brief. No concept-seed roll: brief-pinned,
    precisely specified request.
  FINISH: unreviewed and undocumented is unfinished; this build ends with
    the finish review, the verdict, DESIGN.md, and every shipping raster
    carrying its provenance.
*/

/* ---------------------------------- */
/* Tokens                              */
/* ---------------------------------- */
:root {
  /* Ground */
  --ink-950: #0b0b0a;
  --ink-900: #121210;
  --ink-800: #1a1a17;
  --ink-700: #26241f;
  --ink-600: #37342c;
  --line: rgba(214, 184, 122, 0.16);
  --line-strong: rgba(214, 184, 122, 0.32);

  /* Warm neutrals (text on dark) */
  --paper-100: #f6f2e9;
  --paper-200: #e8e1d0;
  --paper-300: #cdc4ac;
  --paper-mute: #9a9382;

  /* Accent — the one saturated color */
  --gold-400: #d9b972;
  --gold-500: #c9a259;
  --gold-600: #a9843f;
  --gold-glow: rgba(217, 185, 114, 0.28);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Instrument Sans", "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius-sm: 2px;
  --radius-md: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 220ms;
  --dur-med: 420ms;
  --dur-slow: 720ms;
}

/* ---------------------------------- */
/* Reset & base                        */
/* ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
}

.display {
  font-family: var(--font-display);
  font-weight: 480;
  letter-spacing: -0.01em;
  color: var(--paper-100);
}
.display em, .display i { font-style: italic; font-weight: 460; color: var(--gold-400); }

h1.display { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.02; }
h2.display { font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.06; }
h3.display { font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.15; }

.lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--paper-300);
  max-width: 46ch;
  line-height: 1.6;
}

.hairline { height: 1px; background: var(--line); border: 0; }

/* ---------------------------------- */
/* Buttons                             */
/* ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gold-400);
  color: var(--ink-950);
  border: 1px solid var(--gold-400);
}
.btn-primary:hover { background: var(--paper-100); border-color: var(--paper-100); }

.btn-ghost {
  background: transparent;
  color: var(--paper-100);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }

/* ---------------------------------- */
/* Nav                                 */
/* ---------------------------------- */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  height: 76px;
  background: linear-gradient(to bottom, rgba(11,11,10,0.86), rgba(11,11,10,0));
  transition: background var(--dur-med) var(--ease-out), backdrop-filter var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.site-nav.is-scrolled {
  background: rgba(11, 11, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--paper-100);
}
.nav-mark b { color: var(--gold-400); font-weight: inherit; }
.nav-mark__icon { height: 30px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-300);
  position: relative;
  padding-block: 0.3rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-400);
  transition: right var(--dur-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper-100); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 1.6rem; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 0; top: 0; background: var(--ink-950); flex-direction: column; justify-content: center; gap: 2.2rem; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 0.4rem; z-index: 600; }
  .nav-toggle span { width: 22px; height: 1.5px; background: var(--paper-100); transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* ---------------------------------- */
/* Footer                              */
/* ---------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 4rem var(--gutter) 2.4rem;
  background: var(--ink-950);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-mark { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-size: 1.6rem; color: var(--paper-100); }
.footer-mark b { color: var(--gold-400); font-weight: inherit; }
.footer-mark__icon { height: 34px; width: auto; display: block; }
.footer-tagline { color: var(--paper-mute); font-size: 0.92rem; margin-top: 0.6rem; max-width: 28ch; }
.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1rem; }
.footer-col a, .footer-col p { display: block; color: var(--paper-300); font-size: 0.9rem; margin-bottom: 0.6rem; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--paper-100); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; color: var(--paper-mute); font-size: 0.78rem; }

/* ---------------------------------- */
/* Skip link / a11y                    */
/* ---------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-400);
  color: var(--ink-950);
  padding: 0.8rem 1.2rem;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: var(--gutter); top: 1rem; }

:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------------------------- */
/* Section rhythm                      */
/* ---------------------------------- */
.section { padding-block: clamp(4rem, 10vw, 8rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 0.2rem; }

/* ---------------------------------- */
/* Lazy image fade-in                  */
/* ---------------------------------- */
img[loading="lazy"], .lazy-media img, .lazy-media video {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
}
img[loading="lazy"].is-loaded, .lazy-media.is-loaded img, .lazy-media.is-loaded video { opacity: 1; }
