/* A surface-and-motion layer over the approved composition. */
:root {
  --radius-control: 8px;
  --radius-photo: 12px;
  --radius-panel: 18px;
  --radius-section: 32px;
  --ease-detail: cubic-bezier(.22, .7, .3, 1);
  --shadow-photo: 0 2px 5px #152b3b08, 0 14px 30px -20px #152b3b50;
  --shadow-control: 0 1px 2px #101e2915, 0 5px 12px -7px #101e2940;
}
::selection { background: var(--pale); color: var(--blue); }

/* Fine static grain keeps the large surfaces tactile without visual noise. */
.services-section, .contact-section, .site-footer { position: relative; isolation: isolate; }
.services-section::before, .contact-section::before, .site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url('assets/surface-grain.svg') repeat;
  opacity: .09;
  pointer-events: none;
}
.services-section::before { mix-blend-mode: multiply; opacity: .12; }
.site-footer::before { mix-blend-mode: multiply; opacity: .06; }
.services-section { border-radius: var(--radius-section); }
.contact-section {
  border-radius: var(--radius-section) var(--radius-section) 0 0;
  box-shadow: inset 0 1px 0 #ffffff1a;
  background-image: radial-gradient(ellipse at 95% 0%, #ffffff0a, transparent 65%);
}
.hero { border-radius: 0 0 var(--radius-section) var(--radius-section); }
.hero-media { translate: 0 var(--hero-drift, 0px); }
.hero-work-link span { transition: transform 220ms var(--ease-detail); }
.footer-wordmark { translate: 0 var(--wordmark-drift, 0px); }

.button, .project-choice > span, .dialog-close,
.planner-step input:not([type=radio]), .planner-step textarea, .planner-step select {
  border-radius: var(--radius-control);
}
.button {
  box-shadow: var(--shadow-control);
  transition: background 180ms ease, color 180ms ease, box-shadow 220ms ease,
    transform 220ms var(--ease-detail);
}
.button-white { box-shadow: 0 1px 1px #ffffff40 inset, 0 6px 20px -8px #0005; }
.button-outline { box-shadow: none; }
.button:active { transform: translateY(1px); box-shadow: none; }
.text-action, .photo-link, .hero-work-link { text-underline-offset: 5px; }
.site-navigation > a, .footer-top nav a {
  background: linear-gradient(currentColor, currentColor) left calc(100% - 7px) / 0 1px no-repeat;
  transition: background-size 220ms var(--ease-detail), color 180ms ease;
}
.site-navigation > a:focus-visible, .footer-top nav a:focus-visible { background-size: 100% 1px; }

/* The selected photograph has one continuous, inset selection surface. */
.scene-picker {
  position: relative;
  isolation: isolate;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #ffffff14, 0 8px 24px -14px #0008;
}
.scene-picker button { position: relative; border-radius: 7px; }
.scene-picker.has-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--scene-width);
  height: var(--scene-height);
  transform: translate(var(--scene-x), var(--scene-y));
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 4px #0002;
  pointer-events: none;
  transition: transform 300ms var(--ease-detail), width 300ms var(--ease-detail), height 300ms var(--ease-detail);
}
.scene-picker.has-indicator button[aria-pressed=true] { background: transparent; }

.project-open { border-radius: var(--radius-photo); box-shadow: var(--shadow-photo); }
.project-open::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid #11111109;
  border-radius: inherit;
  pointer-events: none;
}
.project-open-icon {
  box-shadow: 0 3px 12px #1112;
  transition: transform 220ms var(--ease-detail), box-shadow 220ms ease;
}
.project-open:hover .project-open-icon { transform: none; }
.project-open:active .project-open-icon { transform: scale(.94); }
.gallery-filters button { transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.gallery-filters button[aria-pressed=true] { box-shadow: var(--shadow-control); }
.service-panel {
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: 0 3px 8px #152b3b0a, 0 24px 44px -30px #152b3b66;
}
.service-panel-copy { background: linear-gradient(150deg, #ffffff04, transparent 75%); }
.service-tabs button { border-radius: 0 8px 8px 0; transition: color 180ms ease, background 180ms ease, padding 220ms var(--ease-detail); }
.service-tabs button[aria-selected=true] { background: linear-gradient(90deg, #263e5208, transparent); }
.about-photo img { border-radius: var(--radius-photo); box-shadow: var(--shadow-photo); }
.trust-details { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 23px 0 0; padding: 0; list-style: none; }
.trust-details li { display: inline-flex; align-items: center; gap: 9px; color: var(--blue); font-size: 15px; font-weight: 600; line-height: 1.4; }
.trust-details li::before { content: ''; width: 5px; height: 5px; flex: none; background: currentColor; }
.trust-details a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.trust-details a span[aria-hidden] { display: inline-block; margin-left: 2px; text-decoration: none; }
.bbb-seal-link { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; width: fit-content; max-width: 100%; margin-top: 16px; color: var(--blue); font-size: 15px; font-weight: 600; line-height: 1.35; }
.bbb-seal-link img { flex: none; width: 200px; height: 78px; max-width: 100%; object-fit: cover; object-position: center; }
.bbb-seal-link > span { text-decoration: underline; text-underline-offset: 4px; }
.gallery-route-link { display: table; margin: 20px auto 0; padding: 10px 0; font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.gallery-route-link span { display: inline-block; margin-left: 6px; text-decoration: none; }
.service-route-links { display: flex; gap: 20px 35px; flex-wrap: wrap; padding-top: 30px; }
.service-route-links a { font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.service-route-links a span { display: inline-block; margin-left: 5px; text-decoration: none; }
.owner-signoff { border-image: linear-gradient(90deg, var(--line), transparent) 1; }

.photo-dialog, .planner-dialog {
  border-radius: var(--radius-panel);
  box-shadow: 0 12px 32px #0003, 0 40px 100px -24px #0008;
}
dialog[open] { animation: detail-arrive 240ms var(--ease-detail) both; }
dialog[open]::backdrop { animation: detail-backdrop 200ms ease both; }
.photo-controls { border-radius: 12px; border: 1px solid #ffffff26; backdrop-filter: blur(8px); }
.photo-controls button { border-radius: 8px; transition: background 180ms ease; }
.dialog-close { box-shadow: var(--shadow-control); transition: background 180ms ease, transform 180ms ease; }
.dialog-close:active { transform: scale(.95); }
.planner-step:not([hidden]) { animation: detail-arrive 220ms var(--ease-detail) both; }
.project-choice > span { transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.project-choice input:checked + span { box-shadow: inset 0 0 0 1px var(--blue); }
.planner-step input:not([type=radio]), .planner-step textarea, .planner-step select {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.planner-step input:not([type=radio]):focus-visible,
.planner-step textarea:focus-visible, .planner-step select:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px #263e5210;
}
.mobile-contact { box-shadow: 0 -3px 20px #152b3b0d; }
.reading-progress {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left;
  pointer-events: none;
}
.modal-open .reading-progress { visibility: hidden; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); box-shadow: 0 2px 4px #152b3b10, 0 9px 20px -9px #152b3b55; }
  .button:active { transform: translateY(1px); box-shadow: none; }
  .hero-work-link:hover span { transform: translateY(3px); }
  .site-navigation > a:hover, .footer-top nav a:hover { background-size: 100% 1px; }
  .text-action:hover, .photo-link:hover, .direct-contact > a:hover { text-decoration: underline; }
  .project-open:hover .project-open-icon { transform: translateY(-3px); box-shadow: 0 6px 16px #1113; }
  .project-open:active .project-open-icon { transform: scale(.94); }
  .project-choice:hover > span { border-color: var(--blue); }
  .photo-controls button:hover { background: #ffffff20; }
  .dialog-close:hover { background: var(--pale); }
}
@media (hover: none) {
  .project-open:hover img, .project-open:hover .project-open-icon { transform: none; }
  .text-action:hover svg { transform: none; }
}
@media (max-width: 800px) {
  .hero-media { translate: none; }
  .site-navigation { border-radius: 0 0 var(--radius-panel) var(--radius-panel); }
  .site-navigation.is-open { animation: detail-arrive 180ms var(--ease-detail) both; }
}
@media (max-width: 650px) {
  :root { --radius-section: 22px; }
  .service-tabs button { border-radius: 8px; }
  .service-tabs button[aria-selected=true] { background: var(--pale); color: var(--blue); }
  .photo-dialog, .planner-dialog { border-radius: 14px; }
}
@keyframes detail-arrive { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes detail-backdrop { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-media, .footer-wordmark { translate: none; }
  .reading-progress { display: none; }
  .button:hover, .button:active, .project-open:hover img,
  .project-open .project-open-icon, .project-open:hover .project-open-icon,
  .hero-work-link:hover span, .button:hover svg, .text-action:hover svg,
  .dialog-close:active { transform: none; }
}
#planner-send-fields{margin-top:22px;padding-top:23px;border-top:1px solid var(--line)}
#planner-send-fields>p:first-child{color:var(--slate);font-size:16px;line-height:1.45}
#planner-send{margin-top:23px}
#planner-send-status{font-size:15px;line-height:1.45;margin-top:12px;color:var(--slate)}
#planner-send-status:empty{display:none}
@media(max-width:650px){#planner-send{width:100%;justify-content:center}}
