:root {
  --navy: #172b4d;
  --gold: #d5bc86;
  --ivory: #f5f0e9;
  --muted: #5e6773;
  --line: #d6d2ca;
  --header: 88px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--navy);
  background: var(--ivory);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 24px);
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #927438;
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
h1 em,
h2 em,
.intro-strip em {
  font-weight: 400;
}
h1 {
  font-size: clamp(44px, 5.4vw, 82px);
}
h2 {
  font-size: clamp(38px, 4vw, 60px);
}
h3 {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.025em;
}
p {
  line-height: 1.7;
}
button {
  border: 0;
}
.wrap {
  max-width: 1440px;
  width: calc(100% - 128px);
  margin: auto;
}
.section {
  padding-top: 116px;
  padding-bottom: 116px;
  scroll-margin-top: 10px;
}
.header {
  height: var(--header);
  padding: 0 4.45%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 240, 233, 0.97);
  border-bottom: 1px solid rgba(23, 43, 77, 0.1);
  backdrop-filter: blur(14px);
}
.brand img {
  width: 190px;
  height: auto;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}
.header nav > a {
  padding: 12px 0;
  position: relative;
  white-space: nowrap;
}
.header nav > a:not(.nav-contact):after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.header nav > a:hover:after,
.header nav > a.active:after {
  transform: scaleX(1);
}
.header .nav-contact {
  padding: 13px 19px;
  border: 1px solid var(--navy);
  margin-left: 8px;
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-contact span {
  margin-left: 15px;
}
.header .nav-contact:hover {
  background: var(--navy);
  color: var(--ivory);
}
.menu-toggle {
  display: none;
}
.skip {
  position: fixed;
  top: -80px;
  left: 10px;
  z-index: 100;
  background: var(--ivory);
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.journey {
  height: 285vh;
  height: 285svh;
  position: relative;
  scroll-margin-top: var(--header);
}
.hero-sticky {
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  height: calc(100svh - var(--header));
  min-height: 560px;
  overflow: hidden;
  background: var(--navy);
  color: var(--ivory);
}
.hero-poster,
#hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster {
  object-position: center;
}
#hero-video {
  opacity: 0;
  transition: opacity 0.4s;
}
#hero-video.ready {
  opacity: 1;
}
.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(12, 24, 40, 0.76),
      rgba(12, 24, 40, 0.3) 60%,
      rgba(12, 24, 40, 0.1)
    ),
    linear-gradient(0deg, rgba(12, 24, 40, 0.66), transparent 42%);
}
.hero-content {
  position: relative;
  padding-top: clamp(76px, 12vh, 135px);
  transition:
    opacity 0.3s,
    transform 0.5s;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 27px;
  line-height: 1.5;
}
.hero-content .eyebrow {
  color: var(--gold);
}
.hero-content h1 em {
  color: #ece0c4;
}
.hero-description {
  font-size: 16px;
  line-height: 1.7;
  margin-top: 28px;
  max-width: 510px;
  color: #ede8e0;
}
.hero-cta {
  display: inline-flex;
  gap: 34px;
  align-items: center;
  background: var(--gold);
  color: var(--navy);
  padding: 19px 25px;
  font-size: 13px;
  margin-top: 35px;
  transition: background 0.2s;
}
.hero-cta:hover {
  background: #e6d4ae;
}
.hero-cta span {
  font-size: 20px;
}
.hero-bottom {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.scroll-hint {
  font-size: 12px;
  letter-spacing: 0.02em;
}
.scroll-hint span {
  display: inline-block;
  margin-left: 22px;
  font-size: 23px;
}
.hero-bottom button {
  background: transparent;
  color: var(--ivory);
  font-size: 11px;
  border-bottom: 1px solid #c5c2bb;
  padding: 6px 0;
  letter-spacing: 0;
}
.journey-progress {
  height: 3px;
  background: #ffffff22;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.journey-progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  width: 0;
}
.journey-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 150px;
  display: flex;
  gap: 30px;
  align-items: start;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s,
    transform 0.4s;
  pointer-events: none;
}
.journey-caption > span {
  font-size: 12px;
  margin-top: 12px;
  color: var(--gold);
}
.journey-caption p {
  font:
    clamp(34px, 4vw, 58px) / 1.15 Georgia,
    serif;
  letter-spacing: -0.035em;
}
.journey-caption div > span {
  font-size: 15px;
  display: block;
  margin-top: 19px;
  color: #f1eae0;
  max-width: 470px;
  line-height: 1.6;
}
.journey.later .hero-content {
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}
.journey.later .journey-caption {
  opacity: 1;
  transform: none;
}
.intro-strip {
  padding-top: 42px;
  padding-bottom: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.intro-strip > p {
  font:
    28px/1.4 Georgia,
    serif;
  letter-spacing: -0.025em;
}
.intro-strip > span {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.section-heading {
  margin-bottom: 52px;
}
.section-heading > p:last-child {
  font-size: 15px;
  max-width: 530px;
  color: var(--muted);
  margin-top: 24px;
}
.section-heading .eyebrow {
  color: #6d5a37;
}
.services-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: start;
}
.service-visual {
  position: sticky;
  top: calc(var(--header) + 30px);
}
.service-visual img {
  width: 100%;
  aspect-ratio: 1.07;
  object-fit: cover;
}
.image-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  padding-top: 15px;
  color: var(--muted);
}
.image-note span:last-child {
  font-style: italic;
}
.service-list details {
  border-top: 1px solid var(--line);
}
.service-list details:last-child {
  border-bottom: 1px solid var(--line);
}
summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 0;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
.service-no {
  font-size: 10px;
  color: #756546;
}
.plus {
  font-size: 22px;
  margin-left: auto;
  font-weight: 300;
  transition: transform 0.2s;
}
.service-list details[open] .plus {
  transform: rotate(45deg);
}
.service-body {
  padding: 0 28px 28px 37px;
}
.service-body p {
  font-size: 14px;
  color: var(--muted);
}
.service-body a {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  border-bottom: 1px solid #aaa08c;
  padding-bottom: 5px;
}
.service-body a span {
  margin-left: 18px;
}
.process-section {
  background: #ede7dd;
  border-top: 1px solid #e6dfd4;
  border-bottom: 1px solid #e6dfd4;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
  margin-top: 58px;
  margin-bottom: 38px;
}
.process-grid article {
  border-top: 1px solid #c5bbae;
  padding-top: 24px;
}
.process-grid article > span {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #70634d;
}
.process-grid h3 {
  font-size: 21px;
  margin: 23px 0 15px;
}
.process-grid p {
  font-size: 14px;
  color: var(--muted);
}
.text-link {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 38px;
  border-bottom: 1px solid var(--navy);
  padding: 10px 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  align-items: start;
}
.project-large img {
  width: 100%;
  aspect-ratio: 1.4;
}
.project-small {
  margin-top: 80px;
}
.project-small img {
  width: 100%;
  aspect-ratio: 1.04;
}
.projects-grid figcaption {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  padding-top: 23px;
}
.projects-grid figcaption p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.projects-grid figcaption a {
  font-size: 27px;
  min-width: 40px;
  min-height: 44px;
  text-align: right;
}
.concept-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 35px;
}
.about-section {
  padding-top: 0;
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 100px;
  align-items: center;
}
.about-image img {
  width: 100%;
  aspect-ratio: 1.1;
}
.about-copy > p {
  font-size: 15px;
  max-width: 510px;
  color: var(--muted);
  margin-top: 25px;
}
.location-line {
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 19px;
  align-items: center;
  font-size: 12px;
  line-height: 1.7;
}
.location-line > span:first-child {
  font-size: 35px;
  color: #8e7446;
}
.location-line strong {
  font-weight: 500;
}
.contact-section {
  background: #eae3d8;
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 95px;
}
.contact-copy > p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  margin-top: 27px;
  max-width: 340px;
}
.contact-copy .contact-region {
  font-size: 12px !important;
  margin-top: 42px !important;
}
form {
  padding-top: 10px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
label > span {
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #a7a298;
  border-radius: 0;
  padding: 13px 0;
  color: var(--navy);
  font-size: 14px;
  outline-offset: 3px;
}
input::placeholder,
textarea::placeholder {
  color: #666d74;
  font-size: 13px;
}
textarea {
  resize: vertical;
  min-height: 86px;
}
select {
  min-height: 49px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 27px;
  margin-bottom: 27px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 24px;
  font-size: 11px;
  line-height: 1.6;
}
.consent input {
  appearance: auto;
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--navy);
}
.submit-button {
  background: var(--navy);
  color: var(--ivory);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 23px;
  width: 100%;
  font-size: 13px;
  margin-top: 24px;
  transition: background 0.2s;
}
.submit-button:hover {
  background: #284363;
}
.submit-button span {
  font-size: 22px;
}
.submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.form-notice {
  font-size: 10px;
  color: #5a626b;
  margin-top: 14px;
  line-height: 1.6;
}
#form-status {
  font-size: 13px;
  margin-top: 13px;
}
#form-status.error {
  color: #8c2d22;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
footer {
  padding-top: 38px;
  padding-bottom: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
footer .brand img {
  width: 155px;
}
footer p {
  font-size: 11px;
}
footer > span,
footer > a:last-child {
  font-size: 10px;
}
body.motion-paused .journey {
  height: calc(100svh - var(--header));
}
body.motion-paused .hero-sticky {
  position: relative;
  top: 0;
}
body.motion-paused .hero-content {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
body.motion-paused .journey-caption {
  display: none;
}
body.motion-paused .journey-progress {
  display: none;
}
@media (min-width: 1600px) {
  .hero-content {
    padding-top: 15vh;
  }
}
@media (max-width: 1100px) {
  :root {
    --header: 78px;
  }
  .wrap {
    width: calc(100% - 72px);
  }
  .header nav {
    gap: 17px;
    font-size: 12px;
  }
  .brand img {
    width: 155px;
  }
  .header .nav-contact {
    padding: 12px;
  }
  .services-layout {
    gap: 38px;
  }
  summary {
    gap: 15px;
  }
  summary h3 {
    font-size: 18px;
  }
  .contact-layout {
    gap: 50px;
  }
  .about-section {
    gap: 55px;
  }
  .hero-content {
    padding-top: 90px;
  }
  .hero-bottom > span {
    font-size: 8px;
  }
  .process-grid {
    gap: 30px;
  }
}
@media (max-width: 800px) {
  :root {
    --header: 72px;
  }
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    padding: 0 20px;
  }
  .brand img {
    width: 153px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    background: none;
    color: var(--navy);
    font-size: 12px;
    min-height: 44px;
  }
  .menu-toggle span {
    font-size: 21px;
  }
  .header nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: var(--ivory);
    padding: 18px 25px 25px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 25px #172b4d12;
  }
  .header nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }
  .header nav > a {
    font-size: 15px;
    padding: 13px 0;
  }
  .header .nav-contact {
    margin: 8px 0 0;
    padding: 14px;
  }
  .header nav > a:after {
    display: none;
  }
  .hero-sticky {
    min-height: 540px;
  }
  .journey {
    height: 240svh;
  }
  .hero-content {
    padding-top: 85px;
  }
  h1 {
    font-size: clamp(39px, 7vw, 58px);
  }
  .hero-content .eyebrow {
    font-size: 8px;
    max-width: 290px;
    line-height: 1.7;
  }
  .hero-description {
    font-size: 14px;
    max-width: 345px;
    margin-top: 24px;
  }
  .hero-cta {
    font-size: 12px;
    padding: 16px 19px;
    gap: 20px;
    margin-top: 28px;
  }
  .hero-bottom {
    bottom: 26px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .hero-bottom > span {
    width: 100%;
    font-size: 8px;
  }
  .hero-bottom .scroll-hint {
    font-size: 11px;
  }
  .hero-bottom button {
    margin-left: auto;
    font-size: 10px;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(12, 24, 40, 0.73), rgba(12, 24, 40, 0.22)),
      linear-gradient(0deg, rgba(12, 24, 40, 0.7), transparent 45%);
  }
  .journey-caption {
    bottom: 165px;
    gap: 18px;
  }
  .journey-caption p {
    font-size: 38px;
  }
  .journey-caption div > span {
    font-size: 14px;
  }
  .intro-strip {
    padding: 30px 0;
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .intro-strip > p {
    font-size: 24px;
  }
  .intro-strip > span {
    font-size: 11px;
  }
  .intro-strip > span br {
    display: none;
  }
  .section {
    padding-top: 75px;
    padding-bottom: 75px;
  }
  h2 {
    font-size: 40px;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .section-heading > p:last-child {
    font-size: 14px;
  }
  .services-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .service-visual {
    position: relative;
    top: 0;
  }
  .service-visual img {
    aspect-ratio: 1.4;
  }
  .service-body {
    padding-left: 28px;
  }
  .image-note {
    font-size: 10px;
  }
  summary {
    padding: 22px 0;
  }
  summary h3 {
    font-size: 20px;
  }
  .process-grid {
    grid-template-columns: 1fr;
    gap: 27px;
    margin-top: 40px;
  }
  .process-grid h3 {
    margin-top: 13px;
  }
  .process-grid article {
    padding-top: 20px;
  }
  .process-grid p {
    max-width: 530px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .project-small {
    margin-top: 0;
  }
  .project-small img {
    aspect-ratio: 1.3;
  }
  .projects-grid h3 {
    font-size: 22px;
  }
  .concept-note {
    font-size: 10px;
  }
  .about-section {
    padding-top: 0;
    grid-template-columns: 1fr;
    gap: 37px;
  }
  .about-image img {
    aspect-ratio: 1.35;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .contact-copy h2 br:nth-child(2) {
    display: none;
  }
  .contact-copy h2 {
    font-size: 45px;
  }
  .contact-copy .contact-region {
    margin-top: 20px !important;
  }
  .form-row {
    gap: 18px;
  }
  footer {
    flex-wrap: wrap;
    gap: 20px;
  }
  footer .brand {
    width: 45%;
  }
  footer p {
    width: 45%;
    font-size: 10px;
  }
  footer > span {
    margin-right: auto;
  }
  body.motion-paused .journey {
    min-height: 540px;
  }
}
@media (min-width: 801px) and (max-width: 1000px) {
  .header {
    padding: 0 24px;
  }
  .header .brand img {
    width: 130px;
  }
  .header nav {
    gap: 12px;
    font-size: 10px;
  }
  .header .nav-contact {
    padding: 11px 10px;
    margin-left: 0;
  }
  .nav-contact span {
    margin-left: 5px;
  }
}
@media (max-width: 380px) {
  h1 {
    font-size: 36px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .hero-content {
    padding-top: 65px;
  }
  .hero-description {
    font-size: 13px;
  }
  .hero-cta {
    font-size: 11px;
  }
  .hero-bottom > span {
    font-size: 7px;
  }
  .hero-sticky {
    min-height: 540px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  .journey {
    height: calc(100svh - var(--header));
    min-height: 540px;
  }
  .hero-sticky {
    position: relative;
    top: 0;
  }
  .journey.later .hero-content {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .journey-caption,
  .journey-progress {
    display: none;
  }
}

/* Preserve the complete hardware and dashboard framing at every viewport. */
.service-visual img,
.project-small img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

/* One complete dashboard example, proportioned to the available screen. */
#projects .section-heading {
  text-align: center;
  margin-bottom: 32px;
}
#projects .section-heading > p:last-child {
  margin-left: auto;
  margin-right: auto;
}
.ipad-showcase {
  max-width: 860px;
  margin: 0 auto;
}
.ipad-showcase img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 62svh;
  object-fit: contain;
  margin: 0 auto;
}
.ipad-showcase figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 760px;
  margin: 20px auto 0;
}
.ipad-showcase figcaption p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.ipad-showcase figcaption a {
  font-size: 28px;
  min-width: 44px;
  min-height: 44px;
  text-align: right;
}
#projects .concept-note {
  text-align: center;
  margin-top: 22px;
}
@media (max-width: 800px) {
  .ipad-showcase img {
    width: 100%;
    max-height: 58svh;
  }
  .ipad-showcase h3 {
    font-size: 21px;
  }
  .ipad-showcase figcaption p {
    font-size: 12px;
  }
  #projects .section-heading h2 {
    font-size: 36px;
  }
}

/* Smooth service selection without cropping or moving the image frame. */
#service-image {
  position: relative;
  z-index: 1;
}
.service-visual .service-image-previous {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.service-list summary {
  transition: color 0.25s ease;
}
.service-list summary:hover {
  color: #816a3e;
}
.service-list details .plus {
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-list details[data-expanded='false'] .plus {
  transform: rotate(0);
}
.service-list details[data-expanded='true'] .plus {
  transform: rotate(45deg);
}

/* Questions adapted from the legacy HomeSync site. */
.faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}
.faq h2 {
  font-size: clamp(36px, 3.7vw, 54px);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  font-size: 16px;
  line-height: 1.5;
  gap: 24px;
  padding: 23px 0;
}
.faq-list summary:after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-list details[data-expanded='true'] summary:after {
  transform: rotate(45deg);
}
.faq-list .faq-answer {
  padding: 0 35px 25px 0;
}
.faq-answer p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer a {
  display: inline;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: 0;
  margin: 0;
  padding: 0;
}
.faq-list summary:hover {
  color: #816a3e;
}
@media (max-width: 800px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-list summary {
    font-size: 15px;
  }
  .faq-list .faq-answer {
    padding-right: 12px;
  }
}
@media (min-width: 801px) and (max-width: 1200px) {
  .header {
    padding: 0 20px;
  }
  .header .brand img {
    width: 125px;
  }
  .header nav {
    font-size: 10px;
    gap: 10px;
  }
  .header .nav-contact {
    padding: 11px 9px;
    margin-left: 0;
  }
  .nav-contact span {
    margin-left: 4px;
  }
}

/* Reference repository: grouped opacity-only text reveal, 500ms entry delay in JS. */
.section-reveal-text {
  transition: opacity 1800ms cubic-bezier(0.4, 0, 0.2, 1);
}
.text-reveal-pending .section-reveal-text {
  opacity: 0;
}
.text-reveal-instant,
.motion-paused .section-reveal-text {
  transition: none !important;
  opacity: 1 !important;
}
@media (prefers-reduced-motion: reduce) {
  .section-reveal-text {
    opacity: 1 !important;
    transition: none !important;
  }
}
@media print {
  .section-reveal-text {
    opacity: 1 !important;
  }
}

/* Quiet field focus with a visible underline, without an enclosing box. */
#consultation-form input:not([type='checkbox']):focus,
#consultation-form select:focus,
#consultation-form textarea:focus {
  outline: none;
  box-shadow: inset 0 -1px 0 var(--navy);
  border-bottom-color: var(--navy);
}
.dashboard-enlarge {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  margin: 0 auto;
  cursor: zoom-in;
  max-width: 100%;
}
.dashboard-view-label {
  display: block;
  text-align: center;
  font-size: 12px;
  margin-top: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.dashboard-dialog {
  width: min(1600px, 96vw);
  max-height: 92dvh;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--navy);
}
.dashboard-dialog::backdrop {
  background: #0c1828bb;
}
.dashboard-dialog-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.dashboard-dialog-bar h2 {
  font-family: inherit;
  font-size: 17px;
  letter-spacing: 0;
  margin-right: auto;
}
.dashboard-dialog-bar button {
  padding: 10px 14px;
  background: var(--navy);
  color: var(--ivory);
  font-size: 12px;
}
.dashboard-viewport {
  overflow: auto;
  max-height: calc(92dvh - 76px);
}
.dashboard-viewport img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}
.dashboard-viewport.actual-size img {
  width: 1448px;
}
.dashboard-dialog-bar button[aria-pressed='true'] {
  background: #745d32;
}
body:has(.dashboard-dialog[open]) {
  overflow: hidden;
}
@media (max-width: 600px) {
  .dashboard-dialog-bar {
    padding: 12px;
    gap: 8px;
  }
  .dashboard-dialog-bar h2 {
    font-size: 14px;
  }
  .dashboard-dialog-bar button {
    padding: 10px;
    font-size: 11px;
  }
}

/* Scroll progress uses a compositor transform instead of changing layout width. */
.journey-progress span {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: none;
}

/* Bring walkthrough captions into the viewing area without covering the room. */
.journey-caption {
  left: clamp(64px, 18vw, 300px);
  right: auto;
  bottom: 27%;
  width: min(700px, 70vw);
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  isolation: isolate;
}
.journey-caption::before {
  content: '';
  position: absolute;
  inset: -70px -110px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(8, 18, 30, 0.55) 0%,
    rgba(8, 18, 30, 0.3) 42%,
    transparent 72%
  );
}
.journey-caption > span {
  margin-top: 0;
  font-size: 11px;
  letter-spacing: 0.15em;
}
.journey-caption p {
  font-size: clamp(36px, 4.1vw, 58px);
  max-width: 650px;
  text-wrap: balance;
  text-shadow: 0 2px 18px #08121e45;
}
.journey-caption div > span {
  font-size: 16px;
  line-height: 1.5;
  margin-top: 14px;
  max-width: 440px;
  color: #f5f0e9;
}
@media (max-width: 800px) {
  .journey-caption {
    left: 24px;
    right: 24px;
    width: auto;
    bottom: 27%;
    gap: 13px;
  }
  .journey-caption p {
    font-size: clamp(32px, 8vw, 42px);
    max-width: 440px;
  }
  .journey-caption div > span {
    font-size: 14px;
    max-width: 310px;
  }
  .journey-caption::before {
    inset: -55px -45px;
  }
}
@media (max-height: 600px) and (min-width: 801px) {
  .journey-caption {
    bottom: 23%;
    gap: 10px;
  }
  .journey-caption p {
    font-size: 38px;
  }
  .journey-caption div > span {
    margin-top: 10px;
  }
}
