/* A warm architectural work surface and the editor's indigo controls. */
:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --panel: #fffefa;
  --ink: #22252c;
  --muted: #565a61;
  --line: #dcdad4;
  --accent: #4b4fa6;
  --accent-dark: #343878;
  --accent-soft: #ececfa;
  --night: #1c2432;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(16px,4vw,72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 95% 4%,#e5e6ee 0,transparent 36rem),
              radial-gradient(ellipse at 2% 13%,#f3e9df 0,transparent 38rem),var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
a { color: inherit; text-decoration: none; }
button,input { font: inherit; color: inherit; }
button { border: 0; cursor: pointer; }
button,a,input,summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #767acb; outline-offset: 3px; }
p,h1,h2,h3,figure { margin: 0; }
.wrap { width: min(1600px,100%); padding-inline: var(--pad); margin-inline: auto; }
.mast { position: sticky; top: 0; z-index: 5; background: rgba(250,249,245,.97); border-bottom: 1px solid var(--line); }
.top,.brand,.sections,.tabs,.viewerhead,.viewernav { display: flex; align-items: center; }
.top { min-height: 68px; gap: clamp(16px,3vw,50px); }
.brand { gap: 10px; font: 750 clamp(16px,1.45vw,23px)/1.1 var(--sans); letter-spacing: -.05em; white-space: nowrap; }
.brand i { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: var(--accent); }
.brand i::after { content: ''; width: 18px; height: 18px; background: #fff; clip-path: polygon(0 43%,50% 0,100% 43%,89% 53%,85% 49%,85% 99%,59% 99%,59% 68%,41% 68%,41% 99%,15% 99%,15% 49%,11% 53%); }
.sections { gap: clamp(13px,2vw,31px); }
.sections a,.login { font-size: 14px; font-weight: 650; }
.sections a { padding-block: 9px; color: #484951; }
.sections a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
#homeFeedback { margin-left: auto; }
#homeFeedback .aasp-report-open { position: static; padding: 8px 0; background: none; box-shadow: none; border: 0; color: #44487d; font: 650 13px/1.25 var(--sans); }
.login { padding: 7px 18px; border: 1px solid #c3c4df; border-radius: 24px; background: #eeeef7; color: var(--accent-dark); white-space: nowrap; }
.login:hover { background: var(--accent-soft); border-color: var(--accent); }
.opening { padding-top: clamp(16px,1.8vw,28px); }
.hero {
  display: grid;
  grid-template-columns: minmax(0,.71fr) minmax(0,1.29fr);
  color: #fbfaf6;
  background: radial-gradient(ellipse at 0% 100%,#424355,transparent 62%),linear-gradient(125deg,#242c3b,#1b2532 70%);
  border: 1px solid #293443; border-radius: 23px; overflow: hidden;
  box-shadow: 0 20px 48px -34px rgba(28,32,42,.7);
}
.intro { align-self: center; padding: clamp(26px,3.7vw,68px); }
h1,h2,h3 { margin: 0; font-family: var(--serif); }
h1 { font-size: clamp(51px,5.55vw,89px); font-weight: 500; line-height: .96; letter-spacing: -.06em; }
h1 em { font-weight: 400; color: #e8dcbd; }
h2 { font-size: clamp(33px,3.2vw,54px); line-height: 1.08; font-weight: 500; letter-spacing: -.045em; }
h3 { font-size: clamp(21px,1.7vw,29px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.lead { max-width: 37ch; margin: clamp(16px,2vw,29px) 0 22px; color: #e2e4e7; font-size: clamp(15px,1.13vw,18px); line-height: 1.55; }
.primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; padding: 12px 20px; border-radius: 25px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.4; }
.primary:hover { background: var(--accent-dark); }
.intro .primary { background: #eeedff; color: #33386c; }
.intro .primary:hover { background: white; }
.primary span,.paths span { font-family: system-ui,sans-serif; }
.trial { margin-top: 13px; font-size: 12px; line-height: 1.5; color: #c5c9d4; }
.herofigure { display: grid; grid-template-rows: minmax(0,1fr) auto; min-width: 0; }
.heroimage { position: relative; width: 100%; height: 100%; display: grid; min-width: 0; padding: 0; background: #26303d; }
.heroimage img { width: 100%; height: 100%; min-height: 0; display: block; object-fit: contain; }
.heroimage span { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 34px; height: 34px; background: #fffef8ed; border-radius: 50%; color: #272e3b; font: 20px/1 system-ui,sans-serif; }
.heroimage:focus-visible { outline-offset: -4px; }
.herofigure figcaption { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 11px clamp(14px,1.55vw,26px); background: #252d3a; color: #f8f6ef; }
.herofigure strong,.herofigure small { display: block; }
.herofigure strong { font: 500 clamp(19px,1.6vw,26px)/1.1 var(--serif); letter-spacing: -.025em; }
.herofigure small,.herofigure figcaption>span { font-size: 12px; color: #d3d6dd; }
.herofigure small { margin-top: 4px; }.herofigure figcaption>span { white-space: nowrap; }
.paths { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block-end: 1px solid #bfbdba; }
.paths a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px clamp(10px,1.7vw,25px); font-size: 14px; line-height: 1.3; font-weight: 650; }
.paths a:first-child { padding-left: 0; }.paths a:last-child { padding-right: 0; }
.paths a+a { border-left: 1px solid var(--line); }
.paths span { color: var(--accent); font-size: 17px; }.paths a:hover { color: var(--accent); }
.section { padding-block: clamp(44px,5.2vw,80px); }
.sectionhead { display: flex; justify-content: space-between; align-items: end; gap: 26px; margin-bottom: 23px; }
.sectionhead>p { max-width: 365px; font-size: 15px; color: var(--muted); }
.tabs { flex-wrap: wrap; gap: 5px; margin: 0 0 18px; }
.tabs button,.viewernav button,.viewerhead button,.accountgrid button { border: 1px solid var(--line); border-radius: 24px; padding: 8px 16px; font-size: 14px; font-weight: 650; line-height: 1.35; background: var(--panel); }
.tabs button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: white; }
.tabs button:hover,.viewerhead button:hover,.viewernav button:enabled:hover { border-color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(12px,1.6vw,25px); }
.card {
  min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: stretch; padding: 0;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; text-align: left;
  box-shadow: 0 6px 18px -13px rgba(30,34,44,.31);
}
.card:hover { border-color: #989bbd; box-shadow: 0 10px 27px -13px #33365140; }
.card .art {
  display: block; width: 100%; aspect-ratio: 3 / 2; flex: 0 0 auto; overflow: hidden;
  background: #eeede9; border-bottom: 1px solid var(--line);
}
.card img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.card img[src*="elevation"],.card img[src*="section"],.card img[src*="wall-"],.card img[src*="-plan"],.card img[src*="sheet"],.card img[src*="nodes"] { object-fit: contain; background: #faf9f5; }
.card h3 { margin: 16px clamp(15px,1.4vw,22px) 6px; }
.card p { color: var(--muted); margin: 0 clamp(15px,1.4vw,22px) 18px; font-size: 14px; }
.card .count { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--accent); padding: 12px 0 14px; margin: auto clamp(15px,1.4vw,22px) 0; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.card .count::after { content: "→"; font: 18px/1 system-ui,sans-serif; }
.albums { color: #f9f9f4; background: radial-gradient(ellipse at 95% 105%,#373d51,transparent 66%),var(--night); }
.albums .sectionhead>p { color: #d4d7df; }.albums .card { border-color: #515460; }
.prices { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,205px),1fr)); gap: 12px; }
.prices>div { min-width: 0; border: 1px solid var(--line); border-radius: 13px; padding: clamp(16px,1.6vw,25px); background: var(--panel); overflow-wrap: anywhere; }
.prices span { font-weight: 650; }.prices strong { display: block; color: var(--accent-dark); font: 500 clamp(28px,2.5vw,40px)/1.2 var(--serif); letter-spacing: -.05em; margin-block: 6px 1px; }
.prices small,.fees,.account p { color: var(--muted); }
.fees { display: flex; flex-wrap: wrap; gap: 6px 25px; margin-block: 18px 23px; font-size: 14px; }
.account { background: #e8e8e4; border-top: 1px solid var(--line); }.accountgrid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; padding-block: 38px; }
.account h2 { font-size: 29px; }.account p { margin-top: 8px; font-size: 14px; }.account summary { cursor: pointer; color: var(--accent-dark); font-weight: 650; }
.account form { padding: 10px 0; }.promorow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.promorow input { min-width: 100px; max-width: 100%; border: 1px solid #aaaab3; border-radius: 8px; padding: 7px; }
#galleryDialog { width: min(1450px,96vw); max-width: 96vw; max-height: 96dvh; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); }
#galleryDialog::backdrop { background: #121723df; }
.viewer { padding: clamp(10px,1.4vw,22px); }.viewerhead,.viewernav { justify-content: space-between; gap: 10px; }
.viewerhead { margin-bottom: 12px; }.viewerhead p { font-weight: 700; }
.viewerbody { display: grid; grid-template-columns: minmax(0,3.6fr) minmax(195px,1fr); gap: clamp(15px,2vw,32px); align-items: center; }
.imagepane { border-radius: 8px; overflow: auto; max-height: 66dvh; background: #e9e8e4; overscroll-behavior: contain; }
.imagepane img { display: block; width: 100%; height: min(57vw,63dvh); object-fit: contain; }
.viewer.zoom .imagepane img { width: auto; height: auto; min-width: max(125%,1000px); max-width: none; }
.eyebrow { margin-bottom: 8px; color: var(--accent); font-size: 13px; font-weight: 700; }
.viewercopy h2 { font-size: clamp(23px,2.1vw,34px); }
.viewercopy>p:not(.eyebrow),.viewercopy ol { font-size: 14px; color: var(--muted); margin-block: 9px; }
.viewercopy ol { padding-left: 20px; }.viewercopy ol:empty { display: none; }
.thumbnails { display: flex; gap: 6px; overflow-x: auto; margin: 11px 0 8px; padding: 3px; }
.thumbnails button { width: 66px; height: 44px; flex: 0 0 auto; padding: 2px; border: 2px solid transparent; border-radius: 6px; background: #eeede9; }
.thumbnails img { width: 100%; height: 100%; display: block; border-radius: 2px; object-fit: contain; }
.thumbnails button[aria-pressed=true] { border-color: var(--accent); }
.viewernav button:disabled { opacity: .45; }
@media(max-width:1000px) {
  .top { gap: 18px; }.intro { padding: 25px; }.hero { grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); }
  h1 { font-size: clamp(45px,5.5vw,56px); }.lead { margin: 15px 0; }.intro .primary { padding: 10px 15px; }
  .trial { font-size: 11px; }.herofigure strong { font-size: 19px; }
}
@media(max-width:850px) {
  .sections { display: none; }.top { min-height: 56px; }
  .viewerbody { grid-template-columns: minmax(0,1fr); gap: 12px; }.imagepane img { height: min(58vw,45dvh); }.viewer.zoom .imagepane { max-height: 46dvh; }
}
@media(max-width:760px) {
  .hero { display: flex; flex-direction: column; border-radius: 16px; }.intro { width: 100%; padding: 24px; }
  h1 { font-size: clamp(40px,7.1vw,52px); }h1 em { white-space: nowrap; }
  .lead { max-width: 55ch; font-size: 15px; }.trial br { display: none; }
  .herofigure { width: 100%; }.heroimage img { height: auto; }.herofigure figcaption { padding: 9px 12px; }
  .paths a { padding: 12px; font-size: 12px; }
  .sectionhead { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 17px; }
  .sectionhead>p { max-width: 48ch; font-size: 14px; }
  .cards { grid-template-columns: 1fr; gap: 15px; }.card h3 { margin-top: 13px; }.card p { margin-bottom: 12px; }
  .tabs { gap: 5px; }.tabs button { padding: 7px 10px; font-size: 13px; }
}
@media(max-width:485px) {
  .top { gap: 8px; }.brand { gap: 6px; font-size: 15px; }.brand i { width: 27px; height: 27px; }.brand i::after { width: 15px; height: 15px; }
  #homeFeedback .aasp-report-open { max-width: 82px; padding: 6px 2px; font-size: 11px; }.login { padding: 6px 10px; font-size: 12px; }
  [data-home-member] .login { max-width: 95px; white-space: normal; text-align: center; line-height: 1.15; }
  .intro { padding: 19px; }.lead { margin-block: 11px 13px; }.trial { margin-top: 8px; }
  .herofigure strong { font-size: 17px; }.herofigure small,.herofigure figcaption>span { font-size: 10px; }
  .paths { grid-template-columns: 1fr; }.paths a { padding: 10px 1px; font-size: 13px; }.paths a+a { border-left: 0; border-top: 1px solid var(--line); }
  .prices { grid-template-columns: repeat(2,minmax(0,1fr)); }.prices>div { padding: 12px; }.prices span { font-size: 13px; }.prices strong { font-size: 26px; }
  .accountgrid { grid-template-columns: 1fr; gap: 18px; }
  .viewerhead button,.viewernav button { padding: 6px 10px; font-size: 13px; }.viewerhead p { font-size: 14px; }.thumbnails button { width: 54px; height: 36px; }
}
@media(max-width:345px) {
  .top { padding-inline: 8px; gap: 5px; }#homeFeedback .aasp-report-open { max-width: 65px; }.login { padding-inline: 7px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
.model-toggle { border: 1px solid #9694b3; border-radius: 9px; background: transparent; color: #444375; padding: 8px 13px; font-weight: 650; }
.model-toggle:hover { background: #eeedf5; }

.villa-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; }
.villa-actions .editor-link { color:#f0f0ff; text-decoration:underline; text-underline-offset:4px; font-size:14px; }
.guest-note { margin:9px 0 0; color:#f1f1fd; font-size:13px; }
#galleryWalk { margin:8px 0; }
#galleryWalk[hidden] { display:none; }
