/* The brief is written on a light surface inside the studio's dark contact section. */
html:has(#contact:target, #assistant:focus-within) { scroll-behavior: auto; }
.contact-layout {
  grid-template-columns: minmax(0,.76fr) minmax(0,1.24fr);
  align-items: start;
  gap: clamp(2.5rem,6vw,6.5rem);
}
.contact-copy { padding-top: clamp(.5rem,2.5vw,2.3rem); }
.chat {
  --panel: #1b1e19;
  --line: #42473d;
  --paper: #f7f7ef;
  --quiet: #b5bdac;
  --pad: clamp(1.2rem,2.5vw,2rem);
  --history: 5.9rem;
  --replies: 18.25rem;
  background: var(--panel);
  color: #f7f8f1;
  border: 1px solid #3b4035;
  border-radius: 1.55rem;
  overflow: hidden;
  overflow-anchor: none;
  box-shadow: 0 1.35rem 3.1rem -2.35rem #000c;
}
.chat-stage {
  block-size: calc(var(--pad) * 2 + var(--history) + 1.2rem + var(--replies));
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #69735f transparent;
  scroll-behavior: auto;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.25rem var(--pad);
  border-bottom: 1px solid #363b31;
}
.nova-symbol {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #20231a;
  background: var(--lime);
  border-radius: .82rem;
}
.chat-head h3 { margin: 0; font-size: 1.04rem; line-height: 1.28; letter-spacing: -.025em; }
.chat-head p { display: grid; margin: .13rem 0 0; color: var(--quiet); font-size: .84rem; line-height: 1.4; }
.chat-head p > span { grid-area: 1 / 1; }
.chat-head p:has(.response-status:not(:empty)) > :first-child { visibility: hidden; }
.response-status:not(:empty) { display: inline-flex; align-items: center; gap: .45rem; }
.response-status:not(:empty)::before { content: ""; box-sizing: border-box; flex: 0 0 .82rem; height: .82rem; border: 2px solid #68725d; border-top-color: var(--lime); border-radius: 50%; animation: nova-thinking .8s linear infinite; }
@keyframes nova-thinking { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .response-status:not(:empty)::before { animation: none; } }
.chat-body, .quote, #contact-details, #receipt { padding: var(--pad); }
#conversation {
  block-size: var(--history);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #69735f transparent;
  scrollbar-gutter: stable;
  scroll-padding-block: .5rem;
  scroll-behavior: auto;
  overflow-anchor: none;
}
#conversation:focus-visible { border-radius: .3rem; outline-offset: 3px; }
.bubble {
  width: fit-content;
  max-width: 94%;
  margin: 0;
  padding: .15rem .35rem .15rem 0;
  color: #f5f5ee;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble + .bubble { margin-top: .95rem; }
#conversation > .nova:last-child { min-block-size: 100%; }
.speaker {
  display: block;
  margin-bottom: .22rem;
  color: var(--quiet);
  font-size: .77rem;
  line-height: 1.2;
  font-weight: 650;
}
.bubble.visitor {
  margin-left: auto;
  margin-right: .35rem;
  padding: .63rem .9rem;
  border-radius: .9rem .9rem .25rem .9rem;
  background: #333c29;
  color: #f2f5eb;
}
.visitor .speaker { color: #c8d6b6; }
.chat[data-phase="opening"] .bubble {
  max-width: none;
  padding: 0;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(1.48rem,2.3vw,2.05rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -.058em;
}
.chat[data-phase="opening"] .speaker { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#turn:not(:empty) { margin-top: 1.2rem; }
.composer {
  display: grid;
  gap: .6rem;
  padding: clamp(.9rem,2vw,1.25rem);
  border: 1px solid #e6e8d9;
  background: var(--paper);
  border-radius: 1.1rem;
  box-shadow: inset 0 1px 0 #fff;
}
.composer:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px #d7ff3f45; }
.chat .composer :is(textarea, input) {
  appearance: none;
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: .12rem .13rem;
  outline: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  color: #20251e;
  font: 450 1.08rem/1.5 "DM Sans", Arial, sans-serif;
  letter-spacing: -.012em;
  caret-color: #3d531d;
}
.chat .composer textarea { resize: none; block-size: 4.95rem; overflow-y: auto; scrollbar-gutter: stable; }
.chat .composer :is(textarea,input)::placeholder { color: #666e60; opacity: 1; }
.composer-tools { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.composer-hint { display: inline-flex; align-items: baseline; gap: .18rem; color: #51594b; font-size: .79rem; line-height: 1.35; }
.composer-hint kbd { font: inherit; }
.chat .button {
  min-height: 2.75rem;
  padding: .68rem 1.22rem;
  border-radius: 100rem;
  font-weight: 650;
  line-height: 1.2;
}
.chat .lime {
  background: var(--lime);
  color: #1d2114;
  border: 1px solid transparent;
}
.chat .lime:hover { background: #e4ff78; }
.chat .compose-send {
  min-width: 5.5rem;
  margin-left: auto;
  border: 1px solid #a7c82f;
  box-shadow: 0 1px 2px #34450014;
}
.chat .compose-send:focus-visible { outline-color: #425b14; }
.brief-note { display: grid; gap: .35rem; margin-top: .8rem; color: #eff2e8; }
.brief-note > span { display: flex; align-items: baseline; gap: .45rem; font-size: .9rem; font-weight: 650; }
.brief-note small { color: var(--quiet); font-size: .78rem; font-weight: 400; }
.chat .brief-note textarea { box-sizing: border-box; width: 100%; min-width: 0; height: 3.85rem; min-height: 0; resize: none; margin: 0; padding: .55rem .75rem; border: 1px solid #626b59; border-radius: .65rem; background: #282e25; color: #f5f7ec; font: inherit; line-height: 1.35; }
.chat .brief-note textarea::placeholder { color: #b8c1b0; }
.chat .brief-note textarea:focus-visible { border-color: var(--lime); outline: 2px solid #a9c865; outline-offset: 1px; }
.chat .next:disabled { opacity: .48; cursor: default; }
.chat .button:hover { transform: none; }
.chat [aria-busy="true"] button { cursor: wait; }
.option-caption { margin: 1rem 0 .53rem; color: var(--quiet); font-size: .86rem; line-height: 1.4; }
.chat-options { display: flex; flex-wrap: wrap; align-items: center; gap: .42rem; }
.composer:not([hidden]) + .turn-options > .chat-options:first-child { margin-top: .85rem; }
.reply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .43rem;
  min-width: 0;
  min-height: 2.45rem;
  padding: .5rem .76rem;
  color: #f2f5ed;
  background: #252922;
  border: 1px solid #464d40;
  border-radius: 100rem;
  text-align: left;
  font-size: .9rem;
  line-height: 1.3;
  font-weight: 500;
  transition: color .15s, border-color .15s, background-color .15s;
}
.reply:hover { border-color: #879678; background: #31382b; }
.reply[aria-pressed="true"] { color: #e7fcb2; background: #36412b; border-color: #a6bf67; }
.chat button:disabled { cursor: wait; }
.type-symbol { position: relative; display: inline-block; width: 1rem; height: .95rem; flex: 0 0 auto; color: #c9d5ba; }
.type-symbol::before, .type-symbol::after { position: absolute; content: ""; display: block; box-sizing: border-box; }
.type-web::before, .type-both::before { inset: .12rem .02rem .24rem 0; border: 1.3px solid currentColor; border-radius: .13rem; }
.type-web::after { left: .28rem; right: .28rem; bottom: .06rem; border-top: 1.3px solid currentColor; }
.type-mobile { width: .72rem; }
.type-mobile::before, .type-both::after { inset: .01rem .07rem; border: 1.3px solid currentColor; border-radius: .13rem; }
.type-mobile::after { width: .16rem; height: 1px; background: currentColor; bottom: .15rem; left: .28rem; }
.type-both::before { right: .1rem; }
.type-both::after { inset: .28rem 0 0 .54rem; background: #252922; }
.chat-note, #chat-status { color: var(--quiet); font-size: .82rem; line-height: 1.45; }
.chat-note { margin: .65rem 0 0; }
.privacy-note { margin-top: .64rem; }
.chat-link { padding: .3rem 0; color: #cdd6c2; background: none; border: none; font: inherit; font-size: .9rem; text-align: left; text-decoration: underline; text-underline-offset: .22em; }
.chat-link:hover { color: var(--lime); }
.chat-link.back, .next { margin-top: .9rem; }
.next + .back { margin-left: .9rem; }
#reference {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin: var(--pad) var(--pad) 0; padding: 0 0 .65rem; border-bottom: 1px solid var(--line);
  color: #d0d9c5; font-size: .9rem;
}
#reference:not([hidden]) + .chat-body { padding-top: .85rem; }
#chat-status:empty { display: none; }
#chat-status:not(:empty) { margin: 0 var(--pad) var(--pad); }
#chat-status button { margin-left: .45rem; }
.quote { color: #25291f; background: #e6edce; }
.quote-head { display: flex; gap: .7rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.quote h4 { margin: 0; font: 650 1.2rem/1.28 Manrope, Arial, sans-serif; letter-spacing: -.045em; }
.currency { display: flex; gap: .42rem; align-items: center; font-size: .87rem; }
.currency select {
  appearance: none; padding: .35rem 1.63rem .35rem .5rem; color: #273020;
  background: linear-gradient(45deg,transparent 50%,#414a36 50%) right .71rem center / .28rem .28rem no-repeat,
              linear-gradient(135deg,#414a36 50%,transparent 50%) right .46rem center / .28rem .28rem no-repeat,#f6f9e9;
  font: inherit; border: 1px solid #a2ae93; border-radius: .38rem;
}
.quote-amount { margin: .85rem 0 .48rem; font: 650 clamp(1.8rem,3vw,2.72rem)/1.08 Manrope, Arial, sans-serif; letter-spacing: -.07em; overflow-wrap: anywhere; }
.quote-note { color: #47513b; font-size: .93rem; line-height: 1.5; }
.brief-summary { padding-block: .9rem; margin-block: .9rem 1.15rem; border-block: 1px solid #bcc9a8; font-size: .95rem; }
.brief-summary summary { font-weight: 650; }
.brief-summary dl { margin: 1rem 0 0; }
.brief-summary dt { display: flex; gap: .6rem; align-items: baseline; justify-content: space-between; font-weight: 650; }
.brief-summary dd { margin: .2rem 0 .85rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.quote .chat-link { color: #37482a; }
.quote .lime { color: #fff; background: #252c20; }
.quote .lime:hover { background: #3c4932; }
.quote :focus-visible { outline-color: #52653c; }
#contact-details, #receipt { border-top: 1px solid #47513e; }
#contact-details h3, #receipt h3 { font-size: 1.36rem; }
#contact-details input { border-radius: .65rem; }
#contact-details .send { min-inline-size: 9.5rem; }
#receipt { display: grid; gap: .7rem; overflow-wrap: anywhere; }
#receipt p { color: var(--on-dark); line-height: 1.55; }
#messages .contact-methods { display: flex; flex-wrap: wrap; gap: 1.2rem; }
@media (max-width: 53rem) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-copy { padding-top: 0; }
  .contact-copy h2 br { display: none; }
  .contact-copy > p:not(.eyebrow) { max-width: 34rem; }
}
@media (max-width: 35rem) {
  .chat { --pad: 1rem; --history: 7.6rem; --replies: 21.5rem; border-radius: 1.23rem; }
  .chat-head { gap: .65rem; padding-block: .9rem; }
  .nova-symbol { width: 2.35rem; height: 2.35rem; border-radius: .68rem; }
  .nova-symbol svg { width: 1.3rem; height: 1.3rem; }
  .chat[data-phase="opening"] .bubble { font-size: 1.55rem; }
  .reply { min-height: 2.65rem; }
  .chat-options[role="group"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composer { padding: .85rem; border-radius: .9rem; gap: .4rem; }
  .composer-hint { display: none; }
  .chat .composer textarea { block-size: 4.6rem; }
  .chat .composer :is(textarea,input) { font-size: 1rem; }
  .quote-amount { font-size: 1.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .chat *, .chat *::before, .chat *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
