﻿/* Limestone Renders — site styles
   Brand: Limestone #D9C4A0 · Plaster #F6F1E8 · Charcoal #2B2B2B · Sea #1F4E6B · Sunset #E3A64A
   Font: Futura (licensed) with Jost as the free stand-in. */

:root {
  --limestone: #D9C4A0;
  --limestone-deep: #B89C70;
  --plaster: #F6F1E8;
  --plaster-dark: #ECE4D6;
  --charcoal: #2B2B2B;
  --charcoal-soft: #5A5650;
  --sea: #1F4E6B;
  --sunset: #E3A64A;

  --font: "Futura PT", Futura, "Jost", system-ui, sans-serif;
  --wrap: min(1200px, 100% - 3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--limestone); color: var(--charcoal); }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--limestone-deep);
  margin: 0 0 1.25rem;
}
h1, h2, h3 { font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 500; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--charcoal-soft); max-width: 36ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.8rem;
  font: 500 .8rem/1 var(--font);
  letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--charcoal);
  background: var(--charcoal); color: var(--plaster);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--sea); border-color: var(--sea); }
.btn--ghost { background: transparent; color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--plaster); border-color: var(--charcoal); }
.btn--light { background: var(--plaster); color: var(--charcoal); border-color: var(--plaster); }
.btn--light:hover { background: var(--limestone); border-color: var(--limestone); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
  color: var(--plaster);
}
.site-header.is-solid, .site-header--solid {
  background: rgba(246, 241, 232, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(43, 43, 43, .08);
  color: var(--charcoal);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-size: .85rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }

.nav { display: flex; gap: 2.2rem; align-items: center; }
.nav a {
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  position: relative; padding: .3rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor;
  transition: right .4s var(--ease);
}
.nav a:hover::after { right: 0; }
.nav .nav-client { border: 1px solid currentColor; padding: .55rem 1rem; }
.nav .nav-client::after { display: none; }

.menu-btn { display: none; background: none; border: 0; color: inherit; padding: .5rem; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 1px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0;
    background: var(--plaster); color: var(--charcoal);
    padding: 1rem 1.5rem 2rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .nav a { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--plaster-dark); }
  .nav .nav-client { border: 0; border-bottom: 1px solid var(--plaster-dark); padding: 1rem 0; }
  .site-header.is-open { background: var(--plaster); color: var(--charcoal); }
  .site-header.is-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-header.is-open .menu-btn span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .site-header.is-open .menu-btn span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ---------- Render slots (placeholders until real renders are added) ---------- */
.render {
  position: relative; overflow: hidden;
  background:
    linear-gradient(160deg, rgba(227,166,74,.28) 0%, rgba(227,166,74,0) 45%),
    linear-gradient(200deg, var(--limestone) 0%, #C9B188 55%, #A88D62 100%);
}
.render img, .render video { width: 100%; height: 100%; object-fit: cover; }
.render[data-label]::after {
  content: attr(data-label);
  position: absolute; left: 1.2rem; bottom: 1rem;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(43,43,43,.55);
}
.render:has(img)::after, .render:has(video)::after { display: none; }
.render--dusk {
  background:
    radial-gradient(ellipse at 70% 75%, rgba(227,166,74,.55), transparent 55%),
    linear-gradient(180deg, #1B2C3A 0%, #2D4A5E 50%, #8A6A4A 100%);
}
.render--dusk[data-label]::after { color: rgba(246,241,232,.6); }
.render--clay { background: linear-gradient(200deg, #E9E6E1, #CFCBC4); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  color: var(--plaster); isolation: isolate;
}
.hero .render { position: absolute; inset: 0; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,20,20,.35) 0%, rgba(20,20,20,.12) 28%, rgba(20,20,20,.45) 55%, rgba(20,20,20,.7) 100%);
}
.hero .wrap { padding-block: 0 clamp(3rem, 9vh, 6rem); }
.hero .eyebrow { color: var(--plaster); opacity: .85; }
.hero h1, .hero p, .hero .eyebrow { text-shadow: 0 1px 18px rgba(0,0,0,.25); }
.hero h1 { max-width: 14ch; }
.hero p { max-width: 38ch; margin: 1.5rem 0 2.4rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); opacity: .9; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; right: 1.5rem; bottom: 2rem; writing-mode: vertical-rl;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7;
}
@media (max-width: 600px) { .scroll-cue { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 12vw, 9rem); }
.section--dark { background: var(--charcoal); color: var(--plaster); }
.section--dark .lead { color: rgba(246,241,232,.7); }
.section--stone { background: var(--plaster-dark); }
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
}

/* ---------- Intro statement ---------- */
.statement { font-size: clamp(1.5rem, 3.2vw, 2.4rem); font-weight: 300; line-height: 1.35; max-width: 30ch; }
.statement em { font-style: normal; color: var(--limestone-deep); }

/* ---------- Work grid ---------- */
.work-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(12, 1fr); }
.work-item { grid-column: span 12; text-decoration: none; }
.work-item .render { aspect-ratio: 4 / 3; }
.work-item .render img { transition: transform 1.2s var(--ease); }
.work-item:hover .render img { transform: scale(1.03); }
.work-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: .9rem; font-size: .9rem; }
.work-meta span:last-child { color: var(--charcoal-soft); }
/* full-width feature image (used while the portfolio has only a few renders) */
.work-grid .work-item--feature { grid-column: 1 / -1; }
.work-grid .work-item--feature .render { aspect-ratio: 3 / 2; }
@media (min-width: 1100px) { .work-grid .work-item--feature .render { aspect-ratio: 16 / 9; } }
[hidden] { display: none !important; }
@media (min-width: 760px) {
  .work-item { grid-column: span 6; }
  .work-item--wide { grid-column: span 12; }
  .work-item--wide .render { aspect-ratio: 21 / 9; }
  .work-item--tall .render { aspect-ratio: 4 / 5; }
}
@media (min-width: 1100px) {
  .work-item--third { grid-column: span 4; }
  .work-item--two-thirds { grid-column: span 8; }
  .work-item--third .render, .work-item--two-thirds .render { aspect-ratio: auto; height: 520px; }
}

/* ---------- Compare slider (clay → final, day → dusk) ---------- */
.compare {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; user-select: none; touch-action: pan-y;
  --pos: 50%;
}
.compare > .render { position: absolute; inset: 0; }
.compare .compare-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--plaster);
  transform: translateX(-.5px); pointer-events: none;
}
.compare-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--plaster); color: var(--charcoal); font-size: 1rem; letter-spacing: .2em;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.compare input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0;
}
.compare-labels {
  position: absolute; inset: auto 1rem 1rem; display: flex; justify-content: space-between; pointer-events: none;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--plaster);
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

/* ---------- Services / packages ---------- */
.packages { display: grid; gap: 1px; background: rgba(43,43,43,.12); border: 1px solid rgba(43,43,43,.12); }
@media (min-width: 900px) { .packages { grid-template-columns: repeat(3, 1fr); } }
.package { background: var(--plaster); padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1.2rem; }
.package--feature { background: var(--charcoal); color: var(--plaster); }
.package .price { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 300; line-height: 1; }
.package .price small { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; opacity: .6; display: block; margin-bottom: .6rem; }
.package ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .95rem; }
.package li { padding-left: 1.4rem; position: relative; }
.package li::before { content: ""; position: absolute; left: 0; top: .72em; width: .7rem; height: 1px; background: var(--limestone-deep); }
.package--feature li::before { background: var(--sunset); }
.package .btn { margin-top: auto; align-self: flex-start; }
.package--feature .btn { background: var(--plaster); color: var(--charcoal); border-color: var(--plaster); }
.package--feature .btn:hover { background: var(--sunset); border-color: var(--sunset); }

.price-list { margin-top: 3rem; display: grid; gap: 0; }
@media (min-width: 760px) { .price-list { grid-template-columns: 1fr 1fr; column-gap: 4rem; } }
.price-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(43,43,43,.12); }
.price-row span:last-child { font-variant-numeric: tabular-nums; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 2.5rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.step { border-top: 1px solid rgba(246,241,232,.25); padding-top: 1.5rem; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: .75rem; letter-spacing: .25em; color: var(--sunset); margin-bottom: 1.2rem;
}
.step p { color: rgba(246,241,232,.7); margin: .7rem 0 0; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact-links { display: grid; gap: 0; }
.contact-links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 0; border-bottom: 1px solid rgba(43,43,43,.15);
  text-decoration: none; font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 300;
  transition: padding .4s var(--ease), color .3s;
}
.contact-links a:hover { padding-left: .6rem; color: var(--sea); }
.contact-links a small { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--charcoal-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(246,241,232,.6); padding-block: 3rem; font-size: .85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.site-footer .brand { color: var(--plaster); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--plaster); }

/* ---------- Client access ---------- */
.access {
  min-height: 100svh; display: grid; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .access { grid-template-columns: 1.1fr 1fr; } }
.access .render { min-height: 40vh; }
.access-panel { display: grid; align-content: center; padding: clamp(7rem, 10vw, 8rem) clamp(1.5rem, 6vw, 5rem) 4rem; }
.access-panel h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.code-form { margin-top: 2.5rem; display: grid; gap: 1rem; max-width: 26rem; }
.code-form label { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--charcoal-soft); }
.code-input {
  font: 300 clamp(1.4rem, 3vw, 1.8rem)/1 var(--font); letter-spacing: .18em; text-transform: uppercase;
  padding: 1rem 0; border: 0; border-bottom: 1px solid var(--charcoal); background: transparent; color: var(--charcoal);
  width: 100%; outline: none; border-radius: 0;
}
.code-input:focus { border-bottom-color: var(--sea); }
.code-input::placeholder { color: rgba(43,43,43,.25); }
.form-msg { min-height: 1.5em; font-size: .9rem; color: #9A3B2E; margin: 0; }
.access-note { margin-top: 2.5rem; font-size: .9rem; color: var(--charcoal-soft); max-width: 34ch; }

/* ---------- Reveal (client delivery page) ---------- */
.reveal-hero { padding: clamp(8rem, 14vw, 11rem) 0 clamp(3rem, 6vw, 4rem); }
.reveal-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.reveal-meta { display: flex; flex-wrap: wrap; gap: .6rem 2.5rem; margin-top: 2rem; font-size: .85rem; color: var(--charcoal-soft); }
.reveal-meta b { display: block; font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--limestone-deep); }

.toggle { display: inline-flex; border: 1px solid var(--charcoal); margin-bottom: 1.5rem; }
.toggle button {
  font: 500 .75rem/1 var(--font); letter-spacing: .2em; text-transform: uppercase;
  padding: .85rem 1.4rem; background: transparent; color: var(--charcoal); border: 0; cursor: pointer;
  transition: background .3s, color .3s;
}
.toggle button[aria-pressed="true"] { background: var(--charcoal); color: var(--plaster); }
.daydusk { position: relative; aspect-ratio: 16 / 9; }
.daydusk > .render { position: absolute; inset: 0; transition: opacity 1.4s var(--ease); }
.daydusk > .render--dusk { opacity: 0; }
.daydusk.is-dusk > .render--dusk { opacity: 1; }

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .render { aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery .render:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20,20,20,.94);
  display: grid; place-items: center; padding: 2rem; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 88vh; width: auto; }
.lightbox button {
  position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: var(--plaster);
  font: 300 2rem/1 var(--font); cursor: pointer; padding: .5rem 1rem;
}

.video-frame { aspect-ratio: 16 / 9; background: #111; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; }

.download-band { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .download-band { grid-template-columns: 1.4fr 1fr; } }
.download-band ul { margin: 1rem 0 0; padding-left: 1.1rem; color: rgba(246,241,232,.7); }

/* ---------- Reveal on scroll ---------- */
.fade { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
