/* Lintel — real estate photography concept site */

:root {
  --plaster: #EDEEEA;
  --paper: #F8F8F5;
  --dusk: #1D2939;
  --dusk-2: #283649;
  --text: #253041;
  --muted: #5B6678;
  --line: #CDD0CA;
  --tungsten: #E7A447;
  --tungsten-2: #F0B862;
  --sky: #9DB1C6;
  --danger: #A8402F;

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; border-radius: 2px; }

.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;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--dusk); color: #fff; padding: 10px 16px; border-radius: 6px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* Type scale */
.h2 {
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
  line-height: 1.02;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "wdth" 82;
  letter-spacing: -0.025em;
  color: var(--dusk);
  text-wrap: balance;
}
.h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 600;
  font-variation-settings: "opsz" 32, "wdth" 90;
  letter-spacing: -0.01em;
  color: var(--dusk);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-accent { background: var(--tungsten); color: var(--dusk); }
.btn-accent:hover { background: var(--tungsten-2); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-line { border-color: var(--dusk); color: var(--dusk); }
.btn-line:hover { background: var(--dusk); color: var(--paper); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding-inline: var(--gutter);
  background: rgba(237, 238, 234, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(29, 41, 57, .08);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--dusk);
  font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em;
  font-variation-settings: "opsz" 48, "wdth" 85;
}
.wordmark svg { width: 28px; height: 28px; fill: currentColor; }
.wordmark .wm-beam { fill: var(--tungsten); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--dusk); }

/* Hero */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h));
  min-height: 560px;
  max-height: 980px;
  background: var(--dusk);
  overflow: hidden;
}
.compare {
  position: absolute; inset: 0;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.compare img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-after { position: absolute; inset: 0; }
.compare-before {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
/* The "raw" camera file: underexposed, warm cast, flat, slightly tilted */
.compare-before img {
  filter: brightness(.66) contrast(.8) saturate(.72) sepia(.32) hue-rotate(-10deg);
  transform: rotate(-1.6deg) scale(1.07);
}
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 44px; margin-left: -22px;
  display: grid; place-items: center;
  cursor: ew-resize; z-index: 3;
}
.compare-handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px; background: #fff;
  box-shadow: 0 0 0 1px rgba(29,41,57,.15);
}
.compare-grip {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--dusk);
  box-shadow: 0 6px 20px rgba(13, 20, 30, .35);
  transition: transform .2s var(--ease);
}
.compare-handle:hover .compare-grip,
.compare.is-dragging .compare-grip { transform: scale(1.08); }
.compare-handle:focus-visible { outline: none; }
.compare-handle:focus-visible .compare-grip { outline: 3px solid var(--tungsten); outline-offset: 3px; }
.compare-grip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.compare-tag {
  position: absolute; top: 20px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 500;
  background: rgba(13, 20, 30, .55); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: opacity .25s;
}
.compare-tag-before { left: 20px; }
.compare-tag-after { right: 20px; }

.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  padding: 120px var(--gutter) clamp(28px, 5vh, 56px);
  background: linear-gradient(to top, rgba(17, 25, 36, .82) 0%, rgba(17, 25, 36, .55) 45%, rgba(17, 25, 36, 0) 100%);
  color: #fff;
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.hero-copy > *:not(.hero-actions) { max-width: 46rem; }
.hero-title {
  margin: 0;
  font-size: clamp(3rem, 1.4rem + 6.4vw, 7.25rem);
  line-height: .95;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "wdth" 82;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-lede {
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem);
  line-height: 1.45;
  color: rgba(255,255,255,.88);
  max-width: 34rem !important;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-hint { margin: 18px 0 0; font-size: .9rem; color: rgba(255,255,255,.7); pointer-events: none !important; }

/* Included */
.included { padding-block: clamp(72px, 10vw, 140px); }
.included-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.included-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px;
}
.included-list li { color: var(--muted); max-width: 32ch; }
.included-list strong { display: block; color: var(--dusk); font-weight: 600; margin-bottom: 2px; }

/* Section heads */
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 48px);
}
.section-sub { margin: 12px 0 0; color: var(--muted); max-width: 44ch; }

/* Work */
.work { padding-bottom: clamp(72px, 10vw, 140px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--muted);
  font-weight: 500; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.filter:hover { border-color: var(--dusk); color: var(--dusk); }
.filter.is-active { background: var(--dusk); border-color: var(--dusk); color: var(--paper); }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 12px;
}
.shot { border-radius: 6px; overflow: hidden; background: var(--line); }
.shot.tall { grid-row: span 2; }
.shot.wide { grid-column: span 2; }
.shot.is-hidden { display: none; }
.shot button {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.shot button:hover img { transform: scale(1.03); }
.shot-cap {
  position: absolute; left: 12px; bottom: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(248, 248, 245, .92); color: var(--dusk);
  font-size: .85rem; font-weight: 500;
}

/* Twilight */
.twilight {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  background: var(--dusk); color: rgba(255,255,255,.82);
}
.twilight-media { min-height: 560px; }
.twilight-media img { width: 100%; height: 100%; object-fit: cover; }
.twilight-copy {
  align-self: center;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  max-width: 36rem;
}
.twilight .h2 { color: #fff; margin-bottom: 24px; }
.twilight p { margin: 0 0 16px; }
.twilight .btn { margin-top: 12px; }

/* Pricing */
.pricing { padding-block: clamp(72px, 10vw, 140px); }
.sizes { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: 999px; background: #E1E3DE; }
.sizes label { position: relative; }
.sizes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sizes span {
  display: block; padding: 9px 16px; border-radius: 999px;
  font-size: .95rem; font-weight: 500; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.sizes input:checked + span { background: var(--paper); color: var(--dusk); box-shadow: 0 1px 3px rgba(29,41,57,.12); }
.sizes input:focus-visible + span { outline: 2px solid var(--tungsten); outline-offset: 2px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan {
  display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line);
}
.plan-featured { background: var(--dusk); border-color: var(--dusk); color: rgba(255,255,255,.8); }
.plan-featured .plan-name, .plan-featured .plan-price { color: #fff; }
.plan-name { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--dusk); }
.plan-price {
  margin: 14px 0 6px;
  font-size: 3.4rem; line-height: 1; font-weight: 600;
  font-variation-settings: "opsz" 96, "wdth" 80;
  letter-spacing: -0.03em; color: var(--dusk);
  font-variant-numeric: tabular-nums;
}
.price { display: inline-block; }
.plan-for { margin: 8px 0 20px; color: inherit; opacity: .85; }
.plan:not(.plan-featured) .plan-for { color: var(--muted); opacity: 1; }
.plan-list { list-style: none; margin: 0 0 28px; padding: 18px 0 0; border-top: 1px solid var(--line); flex: 1; }
.plan-featured .plan-list { border-top-color: rgba(255,255,255,.16); }
.plan-list li { padding: 5px 0 5px 26px; position: relative; }
.plan-list li::before {
  content: ""; position: absolute; left: 2px; top: .8em;
  width: 12px; height: 6px; border-left: 2px solid var(--tungsten); border-bottom: 2px solid var(--tungsten);
  transform: translateY(-50%) rotate(-45deg);
}
.photos { font-variant-numeric: tabular-nums; }
.plan .btn { align-self: flex-start; }

.addons {
  margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px;
}
.addon-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.addon-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.addon-list dt { color: var(--text); }
.addon-list dd { margin: 0; font-weight: 600; color: var(--dusk); font-variant-numeric: tabular-nums; }

/* Process */
.process { padding-block: clamp(72px, 10vw, 140px); background: var(--paper); border-block: 1px solid var(--line); }
.steps {
  list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  font-size: 3.2rem; line-height: 1; font-weight: 300;
  font-variation-settings: "opsz" 96, "wdth" 78;
  color: var(--tungsten);
}
.steps li::after {
  content: ""; position: absolute; top: 26px; left: 48px; right: -16px;
  height: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps p { margin: 8px 0 0; color: var(--muted); }

/* Quotes */
.quotes { padding-block: clamp(72px, 10vw, 140px); }
.quote-grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px;
}
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote p {
  margin: 0; font-size: 1.3rem; line-height: 1.4; color: var(--dusk);
  font-variation-settings: "opsz" 32;
}
.quote-lead { grid-row: span 2; }
.quote-lead p {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.2; font-weight: 500;
  font-variation-settings: "opsz" 72, "wdth" 88; letter-spacing: -0.015em;
}
.quote figcaption { margin-top: 16px; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { padding-bottom: clamp(72px, 10vw, 140px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 600; font-size: 1.1rem; color: var(--dusk);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 60ch; }

/* Book */
.book { padding-block: clamp(72px, 10vw, 140px); background: var(--dusk); color: rgba(255,255,255,.82); }
.book-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 72px; align-items: start; }
.book .h2 { color: #fff; }
.book-intro p { margin: 16px 0 0; max-width: 34ch; }
.book-direct a { color: var(--tungsten); font-weight: 600; text-decoration: none; }
.book-direct a:hover { text-decoration: underline; }

.book-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
  padding: clamp(24px, 4vw, 40px); border-radius: 12px;
  background: var(--dusk-2);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 500; color: #fff; }
.optional { color: rgba(255,255,255,.55); font-weight: 400; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border-radius: 8px; border: 1.5px solid rgba(255,255,255,.14);
  background: rgba(13, 20, 30, .35); color: #fff;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field select option { color: var(--dusk); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--tungsten); }
.field input[type="date"] { color-scheme: dark; }
.field-error { display: none; margin: 0; font-size: .88rem; color: #F3B8A8; }
.field.has-error input { border-color: #E2836D; }
.field.has-error .field-error { display: block; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.estimate { margin: 0; color: rgba(255,255,255,.7); }
.estimate strong { color: #fff; font-size: 1.4rem; font-variant-numeric: tabular-nums; margin-left: 4px; }

.book-done {
  grid-column: 2; padding: clamp(28px, 4vw, 44px); border-radius: 12px;
  background: var(--dusk-2); border-left: 4px solid var(--tungsten);
}
.book-done .h3 { color: #fff; font-size: 1.6rem; }
.book-done p { margin: 12px 0 0; }
.book-done .demo-note { font-size: .92rem; color: rgba(255,255,255,.55); }
.book-done:focus { outline: none; }

/* Footer */
.site-footer { background: #17212F; color: rgba(255,255,255,.7); padding-block: 48px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.wordmark-light { color: #fff; }
.site-footer p { margin: 10px 0 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-note { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.5); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(12, 18, 26, .96); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(12, 18, 26, .9); }
.lightbox figure { margin: 0; padding: 64px 72px; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100vh; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 160px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: rgba(255,255,255,.75); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer;
  transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 1024px) {
  .included-grid, .faq-grid, .book-grid { grid-template-columns: 1fr; }
  .book-done { grid-column: 1; }
  .addons { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps li:nth-child(2)::after { display: none; }
  .twilight { grid-template-columns: 1fr; }
  .twilight-media { min-height: 0; aspect-ratio: 16 / 10; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-lead { grid-row: auto; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .site-header { justify-content: space-between; }
  .plans { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .compare { position: relative; inset: auto; height: 62svh; min-height: 380px; }
  .hero-copy { position: relative; padding: 28px var(--gutter) 36px; background: var(--dusk); }
  .compare-tag { top: 12px; font-size: .78rem; padding: 5px 10px; }
  .compare-tag-before { left: 12px; }
  .compare-tag-after { right: 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .included-list { grid-template-columns: 1fr; gap: 20px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .shot-cap {
    left: 8px; bottom: 8px; padding: 3px 8px; font-size: .75rem;
    max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .sizes { border-radius: 14px; }
  .sizes label { flex: 1 1 45%; }
  .sizes span { text-align: center; padding: 9px 8px; border-radius: 10px; }
  .addon-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .book-form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .lightbox figure { padding: 64px 12px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}
