
/* Manrope, SIL Open Font License: /assets/manrope-ofl.txt */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #111210;
  --text: #eeeae1;
  --muted: #9b9f94;
  --line: #e4e8d41a;
  --accent: #c9aa76;
  --accent-light: #e2c79d;
  --button-accent: #d6b47b;
  --field: #1c2019;
  --shell: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.6 Manrope, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; outline-offset: 5px; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .35; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); }
::selection { background: #c9aa7659; }
[hidden] { display: none !important; }
.section-shell { width: min(calc(100% - 112px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 100; padding: 12px 18px; color: #161a11; background: var(--accent); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { font-size: 9px; font-weight: 500; line-height: 1.7; letter-spacing: 2px; }

/* The photographic opening follows the composition of the original morning version. */
.site-header { max-width: 1680px; height: 96px; margin: auto; padding: 0 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-size: 17px; font-weight: 600; letter-spacing: 2.1px; line-height: 1; white-space: nowrap; }
.brand-light { margin-left: 4px; color: #a8a99f; font-weight: 400; }
.brand-symbol { position: relative; width: 28px; height: 28px; border-left: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.brand-symbol:before { content: ''; position: absolute; inset: 0 0 8px 8px; border-left: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.header-note { color: #929788; font-size: 9px; letter-spacing: 2px; }
.header-action { display: inline-flex; align-items: center; gap: 32px; padding: 12px 0; border-bottom: 1px solid #e4e8d44d; font-size: 12px; }
.header-action span { color: var(--accent); font-size: 18px; }
.hero { position: relative; min-height: 740px; height: min(790px, calc(100svh - 96px)); overflow: hidden; isolation: isolate; background: #0b0e0b; }
.hero-image { position: absolute; inset: 0 0 0 auto; z-index: -3; width: 63%; height: 100%; object-fit: contain; object-position: center; background: #12150f; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #0b0e0b 0%, #0b0e0bf2 29%, #0b0e0b83 46%, #0b0e0b08 68%), linear-gradient(0deg, #0b0e0be6, transparent 32%); }
.hero-content { position: relative; width: min(calc(100% - 112px), var(--shell)); margin: auto; padding-top: 91px; }
.hero-content > .eyebrow { color: #b7b6a7; font-size: 9px; letter-spacing: 2.1px; }
h1 { font-size: clamp(68px, 6.1vw, 94px); font-weight: 400; line-height: 1.04; letter-spacing: -4.5px; margin: 28px 0 26px; max-width: 710px; }
h1 em { font-family: Georgia, serif; color: var(--accent-light); font-weight: 400; }
.hero-content > p { color: #b7b9ac; font-size: 13px; line-height: 1.95; margin: 0; max-width: 410px; }
.hero-actions { display: flex; align-items: center; gap: 29px; margin-top: 32px; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 50px; width: 100%; padding: 14px 17px; border: 1px solid var(--button-accent); border-radius: 2px; background: var(--button-accent); color: #1e2318; font-size: 12px; font-weight: 600; text-align: left; }
.primary > span { font-size: 18px; font-weight: 400; line-height: 1; }
.primary:hover:not(:disabled) { background: var(--accent-light); border-color: var(--accent-light); }
.hero-primary { width: 222px; min-height: 52px; }
.hero-secondary { display: inline-flex; align-items: center; gap: 20px; color: #d5d6c8; font-size: 11px; }
.hero-secondary span { color: var(--accent-light); font-size: 17px; }
.hero-caption { position: absolute; right: max(56px, calc((100% - var(--shell)) / 2)); bottom: 30px; color: #9ea58f; font-size: 9px; letter-spacing: .3px; }

/* The working studio is a quiet form and a large image, without panel frames. */
.studio-section { padding-top: 95px; padding-bottom: 16px; }
.studio-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 43px; }
.studio-heading .eyebrow { color: var(--accent); font-size: 9px; }
.studio-heading h2 { font-size: clamp(38px, 3.8vw, 57px); font-weight: 400; line-height: 1.13; letter-spacing: -2.2px; margin: 17px 0 0; }
.studio-heading h2 span { color: #92998a; }
.studio-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); align-items: start; gap: 44px; }
.controls { min-width: 0; padding: 0; scroll-margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h3 { font-size: 13px; font-weight: 500; margin: 0; }
.muted { color: #8c9383; font-size: 10px; }
.dropzone { position: relative; min-height: 148px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 20px 12px; border: 1px dashed #cad0c033; background: #cbd0c303; cursor: pointer; }
.dropzone:hover, .dropzone.dragover { border-color: #c9aa7699; background: #c9aa7605; }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { font-size: 24px; font-weight: 400; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.dropzone strong { font-size: 13px; font-weight: 500; }
.dropzone > span:not(.upload-icon) { color: #9aA18f; font-size: 11px; }
.dropzone small { color: #7c8871; font-size: 9px; margin-top: 7px; }
.file-list:empty { display: none; }
.file-row { display: flex; align-items: center; gap: 9px; padding: 12px 0; border-bottom: 1px solid var(--line); color: #bdc5b0; font-size: 11px; }
.file-row img { width: 36px; height: 32px; object-fit: cover; }
.file-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presets-heading { margin-top: 29px; margin-bottom: 12px; }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.preset { min-height: 45px; padding: 9px 6px 12px; border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; background: none; color: #9ba78b; text-align: center; font-size: 12px; }
.preset.selected { border-bottom-color: var(--accent); color: #e0c79f; }
.preset:hover:not(:disabled) { color: var(--accent-light); }
.field { display: block; margin: 19px 0 15px; color: #aab79c; font-size: 11px; line-height: 1.6; }
.field > span { float: right; color: #7b8c6a; font-size: 9px; padding-top: 2px; }
.field input, .field select, .field textarea, select, textarea { display: block; min-width: 0; width: 100%; min-height: 43px; margin-top: 9px; padding: 11px 12px; border: 1px solid #bac9a826; border-radius: 2px; background: var(--field); color: #d9dfd1; font-size: 13px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #8b9b7d; }
textarea { resize: vertical; min-height: 94px; }
.notes-field { margin-top: 23px; }
.generation-action { margin-top: 24px; }
.connection { margin-top: 13px; color: #96aa83; font-size: 10px; line-height: 1.85; }
.connection.offline { color: #aa9672; }
.canvas-panel { min-width: 0; }
.canvas-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 17px; gap: 18px; }
.canvas-toolbar > strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #bec8b3; font-size: 11px; font-weight: 400; }
.canvas-tools { display: flex; align-items: center; gap: 19px; flex: none; max-width: 68%; }
.history-field { display: flex; align-items: center; gap: 8px; color: #8da07a; font-size: 9px; min-width: 0; }
.history-field select { width: 160px; max-width: 100%; min-height: 31px; margin: 0; padding: 5px 8px; border: 0; border-bottom: 1px solid #afc29a33; background: #1a2016; color: #a9bd96; font-size: 10px; }
.new-project { display: inline-flex; align-items: center; gap: 13px; padding: 6px 0; border: 0; background: none; color: #b5c8a2; font-size: 10px; white-space: nowrap; }
.new-project > span { color: var(--accent); font-size: 16px; }
.stage { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.05; overflow: hidden; background: #0e120b; scroll-margin-top: 24px; }
.empty { height: 100%; position: relative; background: #0e120b; }
.example-photo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.responsive-photo { display: contents; }
.empty > .responsive-photo > .example-photo { position: absolute; inset: 0; }
#example-before-layer { position: absolute; inset: 0; clip-path: inset(0 56% 0 0); background: #0e120b; }
#example-compare, #compare { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; }
.compare-line { position: absolute; top: 0; bottom: 0; z-index: 3; left: 50%; width: 1px; background: #e4eaccb3; pointer-events: none; }
#example-compare-line { left: 44%; }
.compare-line:after { content: '‹  ›'; position: absolute; top: 48%; left: -19px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #dce5c899; border-radius: 50%; background: #1e2918c9; color: #eef1df; font: 17px Georgia, serif; letter-spacing: 3px; padding-left: 3px; }
.image-tag { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 6px 9px; background: #192412d1; color: #dae3ce; font-size: 9px; line-height: 1.6; }
.image-tag.right { left: auto; right: 18px; }
#viewer { height: 100%; position: relative; }
#viewer img { width: 100%; height: 100%; display: block; object-fit: contain; }
#result-image { position: absolute; inset: 0; }
#before-layer { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); background: #0e120b; }
#compare:focus-visible ~ .compare-line:after, #example-compare:focus-visible ~ .compare-line:after { outline: 2px solid var(--accent); outline-offset: 4px; }
#busy {
  position: absolute; inset: 0; z-index: 7; isolation: isolate;
  display: grid; align-items: end; overflow: hidden;
  padding: clamp(14px, 4vw, 34px); background: #131811;
}
.exposure-scene { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.exposure-scene img, .survey-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 43%;
}
.exposure-scene img { filter: brightness(.77) saturate(.72); }
.exposure-light {
  position: absolute; inset: -30% auto -30% 0; width: 58%;
  background: linear-gradient(90deg, transparent 2%, #d78f302e 24%, #ffd3868c 56%, #fff0bf33 72%, transparent 100%);
  mix-blend-mode: screen;
  animation: exposure-pass 5.6s cubic-bezier(.36,.1,.48,.99) infinite;
}
.exposure-scene::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, #10150ff7 0%, #10150fd9 19%, #13171245 58%, transparent 84%),
              linear-gradient(90deg, #14181150, transparent 68%);
}
.exposure-caption { position: relative; min-width: 0; color: #f8f2e7; }
.exposure-caption strong, .survey-caption strong { display: block; line-height: 1.25; font-weight: 600; }
.exposure-caption strong { font-size: clamp(18px, 3.2vw, 31px); letter-spacing: -.025em; }
.exposure-caption p, .survey-caption p { margin: 6px 0 0; font-size: 12px; line-height: 1.45; }
.exposure-caption p { color: #e3dacb; }
.exposure-rail {
  position: relative; display: block; overflow: hidden; width: 60px; height: 2px;
  margin-bottom: 10px; background: #e6c18560;
}
.exposure-rail::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 44%;
  background: linear-gradient(90deg, transparent, #f8d59b, transparent);
  animation: exposure-pass 2.8s ease-in-out infinite;
}
@keyframes exposure-pass {
  0% { transform: translateX(-110%); }
  85%, 100% { transform: translateX(245%); }
}
#estimate-busy {
  display: grid; grid-template-columns: clamp(90px, 34%, 182px) minmax(0, 1fr);
  align-items: center; gap: clamp(12px, 3vw, 22px);
  margin: 2px 0 14px; padding: 8px 12px 8px 8px;
  border: 1px solid #c3c9ab26; border-radius: 6px; background: #19211a;
}
.survey-frame { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; min-height: 62px; border-radius: 3px; background: #101914; }
.survey-frame img { filter: brightness(.82) saturate(.68); }
.survey-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #101b16c9, transparent 48%),
              repeating-linear-gradient(90deg, #ddeac521 0 1px, transparent 1px 18px),
              repeating-linear-gradient(0deg, #ddeac521 0 1px, transparent 1px 18px);
}
.survey-scan {
  position: absolute; inset: 0 auto 0 0; width: 35%;
  border-right: 1px solid #d9f7ccad;
  background: linear-gradient(90deg, transparent, #b7e0a862);
  animation: survey-pass 3.8s ease-in-out infinite alternate;
}
.survey-scale {
  position: absolute; z-index: 1; inset: auto 9px 7px; height: 8px;
  border-bottom: 1px solid #d6e5bda6;
  background: repeating-linear-gradient(90deg, #d6e5bda6 0 1px, transparent 1px 9px);
}
.survey-caption strong { color: var(--text); font-size: clamp(13px, 2.2vw, 17px); }
.survey-caption p { color: #bdcbb4; }
@keyframes survey-pass {
  from { transform: translateX(-100%); }
  to { transform: translateX(186%); }
}
.result-bar { display: flex; justify-content: space-between; align-items: start; gap: 22px; padding-top: 23px; }
.result-info { min-width: 0; overflow-wrap: anywhere; }
.result-info h3 { margin: 0 0 7px; color: #d0dcc1; font-size: 16px; font-weight: 400; line-height: 1.5; }
.result-info p { max-width: 500px; margin: 0; color: #98ad84; font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.result-info .photo-credit { margin-top: 8px; color: #7d8f6d; font-size: 9px; }
.result-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; flex: none; }
.secondary { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; padding: 9px 12px; border: 1px solid #bfd1ac38; border-radius: 2px; background: none; color: #bccfa9; font-size: 11px; line-height: 1.6; }
.secondary:hover:not(:disabled) { border-color: #c9aa7680; color: var(--accent-light); }
.sample-load { display: inline-flex; align-items: center; gap: 20px; border: 0; border-bottom: 1px solid #91aa7252; background: none; padding: 11px 0 7px; margin-top: 9px; color: #b0c39c; font-size: 10px; line-height: 1.7; }
.sample-load span { color: var(--accent); font-size: 16px; }
.sample-load:hover { color: var(--accent-light); }
.revision-area { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 5px; }
.revision-options { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.revision-options p { color: #8fa87a; font-size: 10px; line-height: 1.8; margin: 0; }
.revision-options > .secondary { flex: none; }
.revision-guidance { min-width: 0; }
.revision-guidance .paid-note { margin-top: 4px; color: #a5977c; font-size: 9px; }
.versions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.versions button { padding: 6px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: #95ad7e; font-size: 10px; line-height: 1.7; }
.versions button.selected { color: #d5be94; border-bottom-color: #c9aa7680; }
.page-footer { margin-top: 32px; padding: 19px 0 28px; border-top: 1px solid var(--line); display: flex; align-items: start; justify-content: space-between; gap: 25px; }
.page-footer p { color: #81946f; font-size: 9px; line-height: 1.9; margin: 0; }
.text-button { padding: 0; border: 0; background: none; color: #95aa7e; font-size: 9px; line-height: 1.9; text-align: left; text-decoration: underline; text-decoration-color: #95aa7e55; text-underline-offset: 4px; }
.text-button:hover { color: var(--accent-light); }
.page-footer > .text-button { flex: none; }
.site-footer { padding: 29px 0 35px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.site-footer .brand { font-size: 13px; letter-spacing: 1.8px; }
.site-footer > a { color: #98ae80; font-size: 10px; }
.site-footer > a > span { margin-left: 18px; color: var(--accent); }
#toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%) translateY(150px); width: max-content; max-width: calc(100% - 32px); padding: 14px 20px; background: #ddc9a4; color: #2b3521; box-shadow: 0 12px 45px #0005; border-radius: 3px; font-size: 12px; line-height: 1.7; }
#toast.visible { transform: translateX(-50%) translateY(0); }

@media (max-width: 1200px) {
  .section-shell, .hero-content { width: calc(100% - 72px); }
  .site-header { padding-inline: 36px; }
  .hero-content { padding-top: 84px; }
  h1 { font-size: 76px; letter-spacing: -3.8px; }
  .hero-caption { right: 36px; }
  .workspace { grid-template-columns: 285px minmax(0, 1fr); gap: 34px; }
  .hero { min-height: 690px; }
  .hero-content > p { font-size: 12px; }
  .canvas-tools { gap: 13px; }
  .history-field > span { display: none; }
  .history-field select { width: 135px; }
  .result-bar { flex-direction: column; gap: 14px; }
  .result-actions { justify-content: flex-start; }
}
@media (max-width: 960px) {
  .header-note { display: none; }
  .hero-image { width: 69%; object-position: right center; }
  .hero-shade { background: linear-gradient(90deg, #0b0e0bf5, #0b0e0bc9 32%, #0b0e0b5c 70%, #0b0e0b0d), linear-gradient(0deg, #0b0e0bed, transparent 40%); }
  h1 { font-size: 70px; letter-spacing: -3.5px; }
  .hero-content > .eyebrow { font-size: 8px; letter-spacing: 1.6px; }
  .studio-heading h2 { font-size: 45px; }
  .workspace { grid-template-columns: 260px minmax(0, 1fr); gap: 26px; }
  .canvas-toolbar > strong { font-size: 9px; }
  .canvas-tools { max-width: 70%; gap: 10px; }
  .history-field select { width: 112px; font-size: 9px; }
  .new-project { font-size: 9px; gap: 8px; }
  .stage { aspect-ratio: .9; }
  .image-tag { font-size: 8px; top: 12px; left: 12px; }
  .image-tag.right { right: 12px; }
  .revision-options { flex-direction: column; align-items: start; gap: 13px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 20px; }
  .section-shell, .hero-content { width: calc(100% - 40px); }
  .site-header { height: 77px; padding-inline: 20px; gap: 20px; }
  .brand { font-size: 14px; letter-spacing: 1.6px; gap: 10px; }
  .brand-symbol { width: 23px; height: 25px; }
  .header-action { font-size: 10px; gap: 18px; }
  .header-action span { font-size: 16px; }
  .hero { height: 740px; min-height: 690px; }
  .hero-image { width: 100%; object-fit: cover; object-position: center 48%; opacity: .86; }
  .hero-shade { background: linear-gradient(90deg, #080b09f2, #0b0e0aab 56%, #0b0d093d), linear-gradient(0deg, #0b0e0bf2, transparent 42%, #0b0e0b0d); }
  .hero-content { padding-top: 87px; }
  .hero-content > .eyebrow { font-size: 7px; letter-spacing: 1.5px; }
  h1 { font-size: clamp(52px, 8.2vw, 65px); line-height: 1.08; letter-spacing: -2.6px; margin-top: 28px; margin-bottom: 26px; }
  .hero-content > p { font-size: 12px; line-height: 1.95; }
  .hero-actions { gap: 23px; margin-top: 32px; }
  .hero-primary { width: 193px; min-height: 49px; padding: 13px 14px; font-size: 11px; }
  .hero-secondary { font-size: 9px; gap: 12px; }
  .hero-caption { bottom: 24px; right: 20px; font-size: 8px; }
  .studio-section { padding-top: 65px; }
  .studio-heading { display: block; margin-bottom: 30px; }
  .studio-heading .eyebrow { font-size: 8px; }
  .studio-heading h2 { font-size: 41px; letter-spacing: -1.5px; margin-top: 15px; }
  .studio-heading > p { font-size: 11px; line-height: 1.9; margin-top: 20px; }
  .studio-heading > p br { display: none; }
  .workspace { display: flex; flex-direction: column; gap: 32px; }
  .controls { width: 100%; scroll-margin-top: 22px; }
  .section-head h3 { font-size: 13px; }
  .dropzone { min-height: 138px; }
  .dropzone strong { font-size: 14px; }
  .dropzone > span:not(.upload-icon) { font-size: 11px; }
  .dropzone small { font-size: 10px; }
  .preset { font-size: 13px; min-height: 48px; }
  .field { font-size: 12px; }
  .field > span { font-size: 10px; }
  .field input, .field select, .field textarea, select, textarea { min-height: 45px; padding: 11px; font-size: 16px; }
  .notes-field { margin-top: 22px; }
  .primary { min-height: 50px; font-size: 12px; }
  .connection { font-size: 11px; }
  .file-row { font-size: 11px; }
  .canvas-panel { width: 100%; }
  .canvas-toolbar { gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
  .canvas-toolbar > strong { font-size: 11px; flex: 1 1 100%; }
  .canvas-tools { width: 100%; max-width: none; justify-content: space-between; }
  .history-field { flex: 1; }
  .history-field > span { display: inline; font-size: 10px; }
  .history-field select { width: min(190px, 100%); font-size: 12px; min-height: 35px; }
  .new-project { font-size: 11px; gap: 12px; }
  .stage { aspect-ratio: 3/4; }
  .image-tag { font-size: 8px; }
  .result-info h3 { font-size: 16px; }
  .result-info p { font-size: 11px; line-height: 1.85; }
  .result-info .photo-credit { font-size: 9px; }
  .secondary { min-height: 40px; font-size: 11px; }
  .sample-load { font-size: 11px; }
  .revision-options { gap: 14px; }
  .revision-options p { font-size: 10px; }
  .versions button { font-size: 11px; padding: 7px 0; }
  .page-footer { display: block; margin-top: 28px; padding-bottom: 25px; }
  .page-footer p { font-size: 10px; }
  .page-footer > .text-button { font-size: 10px; margin-top: 15px; }
  .site-footer { padding-top: 26px; padding-bottom: 28px; }
  .site-footer .brand { font-size: 11px; letter-spacing: 1.2px; }
  .site-footer > a { font-size: 9px; }
  #toast { bottom: 15px; padding: 12px 17px; font-size: 11px; }
}
@media (max-width: 390px) {
  .section-shell, .hero-content { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; }
  .brand { font-size: 12px; letter-spacing: 1.3px; gap: 8px; }
  .brand-symbol { width: 21px; height: 23px; }
  .header-action { font-size: 9px; gap: 13px; }
  .hero { height: 710px; min-height: 670px; }
  .hero-content { padding-top: 79px; }
  h1 { font-size: clamp(40px, 12vw, 47px); letter-spacing: -2.3px; }
  .hero-content > .eyebrow { font-size: 6px; letter-spacing: 1.15px; }
  .hero-content > p { font-size: 11px; }
  .hero-actions { align-items: start; flex-direction: column; gap: 19px; }
  .hero-primary { width: 190px; }
  .hero-secondary { font-size: 10px; }
  .hero-caption { right: 16px; font-size: 7px; }
  .studio-heading h2 { font-size: 37px; }
  .workspace { gap: 29px; }
  .history-field select { width: 145px; font-size: 10px; }
  .history-field > span { display: none; }
  .image-tag { font-size: 7px; left: 10px; }
  .image-tag.right { right: 10px; }
  .result-info h3 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .hero, .studio-heading, .controls, .canvas-toolbar, .result-actions, .revision-area, .page-footer, .site-footer, #toast, .skip-link, #busy, .sample-load { display: none !important; }
  body { background: white; color: black; }
  .section-shell { width: 100%; }
  .studio-section { padding: 0; }
  .workspace { display: block; }
  .stage { background: white; aspect-ratio: 3/4; }
  .result-info h3, .result-info p { color: black; }
}

/* Keep the entire widened chalet visible, including its eaves on narrow screens. */
@media screen {
  .hero { height: auto; min-height: 0; display: grid; grid-template-columns: minmax(275px, .85fr) minmax(0, 1.9fr); align-items: center; padding: clamp(24px,4vw,72px) clamp(20px,4vw,76px); gap: clamp(12px,2vw,36px); }
  .hero-content { grid-area: 1/1; width: auto; padding: 0; margin: 0; }
  .hero-image { position: relative; inset: auto; grid-area: 1/2; z-index: 0; width: 100%; height: auto; opacity: 1; background: transparent; }
  .hero-shade { display: none; }
  .hero-caption { position: static; grid-column: 2; text-align: right; }
  .hero h1 { font-size: clamp(42px,4.5vw,77px); }
  .hero-actions { flex-wrap: wrap; }
  .stage { aspect-ratio: 16 / 9; }

}
@media screen and (max-width:760px) {
  .hero { grid-template-columns:1fr; gap:15px; padding:24px 16px; }
  .hero-content, .hero-image, .hero-caption {grid-column:1}
  .hero-content {grid-row:1}
  .hero-image {grid-row:2}
  .hero h1 {font-size:clamp(37px,7.6vw,52px);letter-spacing:-1.6px;margin:12px 0}
  .hero-actions {margin-top:18px}
}

.header-contact { font-size:13px; color:var(--text); margin-left:auto; white-space:nowrap; }
.bot-link { margin:0 0 26px; font-size:12px; color:var(--muted); }
.bot-link a { color:var(--accent-light); text-decoration:underline; text-underline-offset:4px; }
.bot-link span { display:block; margin-top:5px; font-size:11px; }
.contact-section { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:36px; padding:64px 0; border-top:1px solid var(--line); margin-top:48px; }
.contact-section h2 { margin:0 0 16px; font-size:clamp(28px,3vw,42px); font-weight:400; letter-spacing:-1px; line-height:1.2; }
.contact-section p { max-width:420px; margin:0; font-size:14px; color:var(--muted); line-height:1.8; }
.contact-actions { justify-self:end; }
.contact-phone { font-size:clamp(24px,2.6vw,36px); white-space:nowrap; }
.contact-messengers { display:flex; flex-wrap:wrap; gap:12px; margin-top:20px; }
@media(max-width:760px) {
  .header-contact { display:none; }
  .contact-section { grid-template-columns:1fr; gap:24px; margin-top:30px; padding:36px 0; }
  .contact-actions { justify-self:start; }
  .contact-messengers .secondary { min-height:44px; }
}
@media print { .contact-section,.bot-link,.header-contact { display:none; } }

.presets { grid-template-columns:repeat(2,minmax(0,1fr)); }
.lead-offer { margin:20px 0; padding:20px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.lead-offer h3 { font-size:19px; line-height:1.3; margin:0 0 12px; font-weight:500; }
.lead-offer p,.lead-dialog>p { font-size:13px; line-height:1.7; color:var(--muted); }
.lead-offer .primary { margin-top:18px; line-height:1.5; }
.lead-direct { font-size:12px; line-height:1.7; color:var(--muted); }
.lead-direct a { color:var(--accent-light); text-decoration:underline; text-underline-offset:3px; }
.lead-dialog { width:min(520px,calc(100% - 32px)); max-height:calc(100dvh - 40px); overflow:auto; padding:32px; color:var(--text); background:var(--bg); border:1px solid var(--line); border-radius:8px; box-shadow:0 20px 80px #0006; }
.lead-dialog::backdrop { background:#000b; }
.lead-dialog h2 { font-size:28px; line-height:1.2; font-weight:400; margin:8px 28px 14px 0; }
.lead-close { position:absolute; right:10px; top:8px; width:44px; height:44px; border:0; background:transparent; color:var(--text); font-size:26px; }
.lead-dialog input:not([type=checkbox]),.lead-dialog textarea { font-size:16px; }
.lead-consent { display:flex; align-items:flex-start; gap:10px; font-size:12px; line-height:1.6; color:var(--muted); margin:20px 0; }
.lead-consent input { flex:none; width:18px; height:18px; margin-top:2px; accent-color:var(--accent); }
.lead-feedback { min-height:24px; }
@media(max-width:480px) { .lead-dialog { padding:25px 20px; } .lead-dialog h2 { font-size:25px; } }


/* Keyboard, form and motion corrections from the interface review. */
button, a, input, select, textarea { touch-action:manipulation; }
.hero h1, .studio-heading h2, .contact-section h2 { text-wrap:balance; }
#example-compare:focus-visible + .compare-line,
#compare:focus-visible + .compare-line { outline:3px solid var(--accent-light); outline-offset:3px; }
#example-compare:focus-visible + .compare-line::after,
#compare:focus-visible + .compare-line::after { box-shadow:0 0 0 4px var(--accent-light); }
.lead-dialog { overscroll-behavior:contain; margin-block:max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-bottom)); }
.field-error { display:block; margin-top:6px; color:#efb7a2; font-size:12px; line-height:1.5; }
[aria-invalid=true] { border-color:#efb7a2 !important; }
.lead-submit-spinner { display:inline-block; width:14px; height:14px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:spin .9s linear infinite; }
#lead-submit { justify-content:center; }
#photo-upload, #contacts, #studio-title { scroll-margin-top:28px; }
.new-project, .sample-load, .versions button { min-height:44px; }
.new-project:hover, .text-button:hover, .header-contact:hover { color:var(--accent-light); }
.hero-content, .result-info, .contact-actions, .canvas-tools { min-width:0; }
.result-info h3, .lead-feedback, .lead-direct { overflow-wrap:anywhere; }
.page-footer, .site-footer { padding-bottom:max(24px, env(safe-area-inset-bottom)); }
@media(prefers-reduced-motion:reduce) {
  .exposure-light, .exposure-rail::after, .survey-scan, .lead-submit-spinner { animation:none; }
  .exposure-light { transform: translateX(42%); opacity: .5; }
  .survey-scan { transform: translateX(91%); }
  #toast { transition:none; }
}

.lead-photos{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.lead-photos:empty{display:none}.lead-photos figure{margin:0;flex:1;min-width:110px}.lead-photos img{width:100%;height:110px;object-fit:contain;background:var(--field);border-radius:4px}.lead-photos figcaption{font-size:11px;color:var(--muted);margin-top:5px}.lead-order-note{font-size:12px;line-height:1.6;color:var(--muted)}

.services-section{padding-block:64px;border-top:1px solid #41443c}.services-section h2{font-size:clamp(28px,4vw,46px);text-wrap:balance}.services-intro{max-width:60ch;margin:18px 0 32px}.services-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}.services-grid h3{margin-bottom:12px}.services-grid p,.seasonal-services{line-height:1.7;max-width:65ch}.seasonal-services{margin:32px 0 24px}#tree-help{font-size:12px;line-height:1.5;margin:-4px 0 20px}@media(max-width:760px){.services-grid{grid-template-columns:1fr;gap:24px}.services-section{padding-block:40px}}
/* Phone controls remain readable and reachable with touch and large text. */
@media(max-width:760px){
 .result-bar{flex-direction:column;align-items:stretch}
 .result-actions{justify-content:flex-start;flex:1;max-width:100%}
 .secondary,.header-action,.hero-secondary,.text-button{min-height:44px}
 .history-field select{font-size:16px;min-height:44px;width:100%}
 .canvas-tools{flex-wrap:wrap}.history-field{flex:1 1 150px}
 .hero-content>p,.services-grid p,.seasonal-services{font-size:15px}
 .eyebrow,.hero-content>.eyebrow{font-size:11px;letter-spacing:.5px}
 .site-footer{flex-wrap:wrap;gap:20px}
 .contact-phone{font-size:clamp(20px,6vw,32px)}
}

/* Calm typography and one clear primary action, on phone and desktop. */
.site-header{height:80px}.header-action{border:0;font-size:14px;min-height:44px;justify-content:center}
.hero-content>.eyebrow{font-size:12px;letter-spacing:.2px;line-height:1.6}
.hero h1{font-size:clamp(38px,4vw,66px);line-height:1.08;letter-spacing:-2px}
.hero-content>p{font-size:16px;line-height:1.75;max-width:42ch}
.hero-actions{gap:20px;align-items:center}.hero-primary{width:auto;min-width:190px;justify-content:center;white-space:nowrap;font-size:14px}
.hero-secondary{font-size:13px;min-height:44px;display:inline-flex;align-items:center}
.result-lead{display:flex;align-items:center;gap:24px;margin-top:24px;padding:24px 0;border-block:1px solid var(--line)}
.result-lead h3{font-size:20px;line-height:1.35;margin:0 0 8px;font-weight:500}
.result-lead p{font-size:14px;color:var(--muted);margin:0;max-width:50ch}
.result-lead .primary{width:auto;flex-shrink:0;justify-content:center;font-size:13px}
.service-price{color:var(--accent-light);font-size:20px;font-weight:500;margin:20px 0 8px}
.contact-actions>.primary{width:auto;margin-bottom:24px;justify-content:center}
@media(max-width:1100px){.result-lead{flex-direction:column;align-items:stretch}.result-lead .primary{width:100%}}
@media(max-width:760px){
 .site-header{height:72px;padding-inline:20px;gap:16px}.header-action{font-size:12px;padding:10px 0}
 .hero{padding:24px 20px 28px;gap:20px}.hero h1{font-size:clamp(34px,8.4vw,46px);line-height:1.12;letter-spacing:-1.3px;margin:14px 0 20px;max-width:100%;text-wrap:balance}
 .hero-content>p{font-size:16px;line-height:1.65}.hero-content>.eyebrow{font-size:12px;letter-spacing:0}
 .hero-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:24px}
 .hero-primary{width:100%;min-width:0;min-height:52px;font-size:15px;padding:14px 20px}
 .hero-secondary{justify-content:center;font-size:13px;min-height:44px}
 .hero-caption{font-size:10px;text-align:left}.studio-section{padding-top:40px}
 .studio-heading h2{font-size:32px;letter-spacing:-1px}.studio-heading>p{font-size:14px;margin-top:12px}
 .result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .result-actions .secondary{white-space:normal;text-align:center}
 .result-lead{gap:18px;padding:20px 0}.result-lead h3{font-size:21px}
 .contact-actions{width:100%}.contact-actions>.primary{width:100%}
}

/* Compact studio: the image, versions and actions are the primary workspace. */
.studio-section{padding-top:40px;scroll-margin-top:16px}
.studio-heading{margin-bottom:22px;align-items:center}.studio-heading h2{font-size:34px;letter-spacing:-1px;margin:0}.studio-heading>p{font-size:13px}
.workspace{grid-template-columns:270px minmax(0,1fr);gap:28px}
.controls .dropzone{min-height:110px;padding:12px}.controls .field{margin:12px 0}.controls .field textarea{min-height:64px}
.controls .presets-heading{margin-top:14px}.controls .presets{margin-bottom:12px}.controls .generation-action{margin-top:14px}
.studio-disclosure{border-top:1px solid var(--line);padding:0;margin-top:12px}
.studio-disclosure>summary{cursor:pointer;min-height:44px;padding:12px 0;color:var(--text);font-size:14px;font-weight:500}
.studio-disclosure>summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.studio-disclosure[open]>summary{margin-bottom:4px}.studio-disclosure .field{margin-top:0}
.canvas-toolbar{margin-bottom:10px}.stage{height:clamp(220px,46svh,470px);aspect-ratio:auto}
.result-bar{padding-top:12px;gap:12px;align-items:center}.result-info h3{font-size:14px;margin:0}.result-info p{font-size:11px}.result-info .photo-credit{margin-top:2px}
.versions{margin-top:8px;gap:8px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:2px}.versions button{flex:none;min-height:40px;padding:8px 10px}
.result-lead{margin-top:8px;padding:0;border:0;display:flex;flex-direction:row;gap:10px}.result-lead .primary,.result-lead .secondary{min-height:44px;flex:1;width:auto;justify-content:center;font-size:13px;text-align:center}
.revision-area{margin-top:8px;padding-top:0}.revision-area textarea{min-height:64px}.revision-options{gap:12px;flex-direction:row;align-items:center}.revision-options p{margin:0;font-size:12px;line-height:1.5}
#estimate-output{font-size:13px;line-height:1.65;padding:0 0 16px;max-height:40svh;overflow:auto;overscroll-behavior:contain}#estimate-output h4{font-size:15px;margin:16px 0 4px}#estimate-output p{margin:6px 0}
.lead-version-picker{display:flex;gap:8px;overflow-x:auto;margin:12px 0;padding:4px}.lead-version-picker button{flex:none;display:flex;flex-direction:column;gap:4px}.lead-version-picker img{object-fit:contain}.lead-version-picker [aria-pressed=true]{border-color:var(--accent);background:#c9aa761a}
.page-footer{margin-top:18px;padding-top:12px}
@media(min-width:761px) and (min-height:600px){.controls{max-height:calc(100svh - 125px);overflow-y:auto;overscroll-behavior:contain;padding-right:8px;scrollbar-gutter:stable}.canvas-panel{min-width:0}}
@media(max-width:1000px) and (min-width:761px){.workspace{grid-template-columns:230px minmax(0,1fr);gap:20px}.result-info h3{font-size:13px}.stage{height:40svh}.result-bar{flex-wrap:wrap}.studio-heading h2{font-size:30px}}
@media(max-width:760px){
 .studio-section{padding-top:28px}.studio-heading{margin-bottom:18px}.studio-heading h2{font-size:28px}.studio-heading>p{margin-top:8px}
 .workspace{gap:18px}.controls.has-photo{order:2}.canvas-panel{order:1}.controls:not(.has-photo){order:0}
 .stage{height:auto;aspect-ratio:4/3;max-height:48svh}.result-bar{padding-top:10px;flex-direction:row;flex-wrap:wrap}.result-info{flex:1 1 160px}.result-actions{display:flex;width:auto;flex:0 1 auto}.result-actions .secondary{font-size:12px}
 .result-lead{flex-direction:column;gap:6px}.result-lead .primary,.result-lead .secondary{width:100%;min-height:44px}
 .revision-options{flex-direction:column;align-items:stretch}.revision-options .secondary{width:100%}.page-footer p{font-size:11px}
}
/* Reserve room for toolbar, version tabs, actions and closed disclosures. */
@media(min-width:761px){
 .stage{height:clamp(160px,calc(100svh - 430px),420px)}
 .studio-section{padding-top:24px}.studio-heading{margin-bottom:14px}
 .canvas-toolbar{min-height:32px;margin-bottom:8px}.result-info .photo-credit{display:none}
 .result-bar{padding-top:8px}.versions{margin-top:4px}.versions button{min-height:36px}
 .result-lead{margin-top:4px}.studio-disclosure{margin-top:6px}.studio-disclosure>summary{padding:10px 0;min-height:40px}
 .page-footer{margin-top:12px;padding-top:10px;padding-bottom:12px}
}
.variant-actions{margin-top:10px;border-top:1px solid var(--line);padding-top:10px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.variant-options{display:flex;gap:8px;flex-wrap:wrap}.variant-actions .muted{font-size:12px;line-height:1.5;margin:0;flex:1 1 180px}.variant-actions>.secondary{margin-left:auto;min-height:44px}
@media(max-width:760px){.variant-options{width:100%;display:grid;grid-template-columns:1fr 1fr}.variant-options .secondary{font-size:12px;padding:9px 8px}.variant-actions>.secondary{width:100%;margin:0}.variant-actions .muted{flex-basis:100%}}

/* Keep the intended headline phrases on separate lines without restricting text zoom. */
.hero-line{display:block}
.hero h1{word-break:normal;overflow-wrap:normal}
.services-grid h3,.lead-dialog h2,.lead-offer h3{ text-wrap:balance }
.hero-content>p,.studio-heading>p,.contact-section p,.services-grid p{ text-wrap:pretty }
@media(max-width:760px){
 .hero h1{font-size:clamp(30px,8.4vw,46px);max-width:100%}
 .hero-line{max-width:100%}
 .primary,.secondary,.studio-disclosure>summary{line-height:1.45}
 .services-grid h3{font-size:19px;line-height:1.35}
 .service-price{font-size:19px;line-height:1.5}
}
.variant-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;flex:1 1 320px}
.variant-options .field{margin:0;font-size:12px}.variant-options select{margin-top:5px;min-height:44px;font-size:14px}
@media(max-width:760px){.variant-options{flex-basis:100%}.variant-options select{font-size:16px}.variant-options .field{min-width:0}}

.service-tier{font-size:inherit;font-weight:500;margin-top:24px}

.estimate-scope{display:flex;align-items:center;gap:.65rem;font-size:.9rem;color:var(--muted);padding:.7rem 0}.estimate-scope input{width:1.1rem;height:1.1rem;flex:none;accent-color:#c7a974}.staff-dialog{max-width:440px}.staff-dialog form{display:grid;gap:1rem}.staff-dialog select{width:100%;padding:.75rem;border:1px solid #676056;border-radius:6px;background:#181b1b;color:#fff}.site-footer #staff-open{font-size:.8rem}
