:root {
  color-scheme: dark;
  --ink: #121212;
  --raised: #1a1a1a;
  --line: #3a3a3a;
  --text: #f5f5f5;
  --muted: #b4b4b4;
  --soft: #8a8a8a;
  --accent: #ffffff;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 1rem/1.6 var(--font-sans);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.1; }
p { color: var(--muted); }

.shell { width: min(1140px, calc(100% - 56px)); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 76px; }
.top {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--ink);
  z-index: 20;
}
.brand {
  font-weight: 800;
  letter-spacing: .08em;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-size: .95rem;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  height: 32px;
  width: 32px;
  font-style: italic;
  border-radius: 50%;
  font-size: 1.1rem;
}
nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .93rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
nav a:hover, nav a.active { color: var(--accent); }
nav a.active { border-color: var(--accent); }

.button, .quiet { border: 0; text-decoration: none; font-weight: 700; }
.button {
  display: inline-block;
  background: var(--accent);
  color: #141414;
  border-radius: 5px;
  padding: .8rem 1.2rem;
  text-align: center;
  transition: background .15s;
}
.button:hover { background: #dcdcdc; }
.small { padding: .55rem .9rem; font-size: .9rem; }
.outline { background: transparent; color: var(--text); border: 1px solid var(--soft); }
.outline:hover { background: #242424; }
.quiet {
  display: inline-block;
  padding: 0;
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.quiet:hover { color: #cfcfcf; }

section[data-view] { padding-block: clamp(48px, 7vw, 88px); }
section[data-view="home"] { padding-top: 0; }
.eyebrow { color: var(--soft); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.03em; font-weight: 800; }

.hero-frame {
  width: 100%;
  min-height: min(68vh, 660px);
  display: flex;
  align-items: flex-end;
  background: linear-gradient(160deg, #2a2a2a, #141414 65%);
  border-bottom: 1px solid var(--line);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-frame.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .2)), linear-gradient(0deg, rgba(0, 0, 0, .68), transparent);
  z-index: -1;
}
#hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-content { padding-block: 60px; max-width: 640px; }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; margin-block: 1rem; white-space: pre-line; }
.intro { font-size: 1.08rem; max-width: 44ch; color: #ececec; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.card h3, .card h4 { font-size: 1.18rem; }
.project-card { padding: 0; overflow: hidden; gap: 0; }
.project-card .card-body { display: grid; gap: .65rem; padding: 1.35rem; align-content: start; }
.media-cover { aspect-ratio: 16/10; display: block; width: 100%; object-fit: cover; background: #161616; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; margin-top: 24px; }
.photo-button { padding: 0; border: 1px solid var(--line); background: #161616; border-radius: 6px; overflow: hidden; }
.photo-button img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .15s; }
.photo-button:hover img { transform: scale(1.02); }
.back { display: inline-block; margin-bottom: 1.4rem; color: var(--soft); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--accent); }

.segmented { display: flex; gap: 4px; padding: 4px; background: #161616; border: 1px solid var(--line); border-radius: 6px; }
.segmented button { border: 0; border-radius: 4px; padding: .5rem .9rem; background: transparent; color: var(--text); font-weight: 700; }
.segmented button[aria-pressed=true] { background: var(--accent); color: var(--ink); }
.rateheading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.subhead { font-size: 1.2rem; margin: 1.8rem 0 .8rem; }
.extras { list-style: none; padding: 0; margin: 0; }
.extras li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.extras li strong:last-child { white-space: nowrap; color: var(--accent); }
.note { margin-top: 1rem; font-size: .9rem; }
.price { color: var(--accent); font-weight: 800; font-size: 1.45rem; }

.booking { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
form { display: grid; gap: .85rem; padding: 1.3rem; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
label { display: grid; gap: .35rem; font-weight: 700; font-size: .92rem; }
input, select, textarea { width: 100%; padding: .55rem; border: 1px solid var(--soft); border-radius: 4px; background: #151515; color: var(--text); }
form .button { justify-self: start; }
#status:empty { display: none; }
.prepared { margin-top: .5rem; }
.payment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 1.5rem; }
footer { background: #101010; border-top: 1px solid var(--line); }

/* Native <dialog> lightbox */
#lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 20px; border: 0; background: rgba(12, 12, 12, .96); color: #fff; }
#lightbox[open] { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
#lightbox figure { margin: 0; text-align: center; }
#lightbox img { display: block; max-width: 100%; max-height: 82vh; margin: auto; object-fit: contain; border-radius: 6px; }
#lb-label { margin-top: 12px; color: var(--muted); }
.lb-close, .lb-prev, .lb-next {
  background: transparent;
  border: 1px solid var(--soft);
  color: var(--text);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}
.lb-close { position: absolute; top: 20px; right: 20px; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
  .grid, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking, .payment-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .grid, .grid.cols-2, .grid.cols-4, .form-row { grid-template-columns: 1fr; }
  nav { order: 3; width: 100%; gap: 1.1rem; }
  .bar { flex-wrap: wrap; padding-block: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
