/* Page parts added for the six-page site. Colours: brand green, ink, white and neutral greys only. */

/* ---------- shared ---------- */
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; background: var(--white); color: var(--ink); font-weight: 650; text-decoration: none; border-radius: 2px; box-shadow: 0 0 0 2px var(--green), 0 10px 30px rgba(0, 0, 0, .35); transform: translateY(-200%); }
.skip-link:focus { transform: none; outline-offset: 4px; }
.preview-banner { position: relative; z-index: 30; background: #eeeeee; color: var(--ink); text-align: center; font-size: 13px; padding: 8px 16px; }
[hidden] { display: none !important; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 650; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color .2s var(--ease); }
.text-link::after { content: "\2192"; font-family: var(--sans); transition: transform .3s var(--ease); }
@media (hover: hover) {
  .text-link:hover { color: var(--green-dk); }
  .text-link:hover::after { transform: translateX(4px); }
}

/* ---------- header and menu ---------- */
.top { justify-content: flex-start; gap: 10px; }
.top__logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.top__logo img { width: auto; height: 40px; }
.top__nav a[aria-current="page"]::after { transform: scaleX(1); }
.top:has(.mobile-menu[open]) { background: var(--ink); }
.mobile-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; list-style: none; cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu__icon, .mobile-menu__icon::before, .mobile-menu__icon::after { display: block; width: 22px; height: 2px; background: var(--white); transition: transform .25s var(--ease), background-color .25s var(--ease); }
.mobile-menu__icon { position: relative; }
.mobile-menu__icon::before, .mobile-menu__icon::after { content: ""; position: absolute; left: 0; }
.mobile-menu__icon::before { transform: translateY(-7px); }
.mobile-menu__icon::after { transform: translateY(7px); }
.mobile-menu[open] .mobile-menu__icon { background: transparent; }
.mobile-menu[open] .mobile-menu__icon::before { transform: rotate(45deg); }
.mobile-menu[open] .mobile-menu__icon::after { transform: rotate(-45deg); }
.mobile-menu nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; max-height: calc(100svh - 110px); overflow-y: auto; padding: 4px var(--gut) 28px; background: var(--ink); border-top: 1px solid var(--ld); box-shadow: 0 28px 40px rgba(0, 0, 0, .5); }
.mobile-menu nav a:not(.btn) { display: flex; align-items: center; gap: 12px; min-height: 56px; font-family: var(--display); font-size: 21px; letter-spacing: -.01em; text-decoration: none; border-bottom: 1px solid var(--ld); }
.mobile-menu nav a[aria-current="page"]::before { content: ""; flex: none; width: 18px; height: 2px; background: var(--green); }
.mobile-menu nav .btn { width: 100%; margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu[open] nav { animation: menu-in .22s var(--ease); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
}
@media (min-width: 480px) { .top__logo img { height: 44px; } }
@media (min-width: 1000px) {
  .top { gap: 22px; }
  .top__logo img { height: 46px; }
  .top__nav { gap: 20px; }
  .top__nav a { font-size: 15px; white-space: nowrap; }
  .top .top__tel { font-size: 16px; }
  .top .top__cta { display: none; }
  .mobile-menu { display: none; }
}
@media (min-width: 1240px) {
  .top { gap: 32px; }
  .top__logo img { height: 54px; }
  .top__nav { gap: 28px; }
  .top__nav a { font-size: 16px; }
  .top .top__tel { font-size: 18px; }
  .top .top__cta { display: inline-flex; }
}

/* ---------- page header band (inner pages) ---------- */
.page-head { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: 116px 0 44px; }
.page-head__air { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-head .wrap { position: relative; }
.page-head__h { font-size: clamp(34px, 9.4vw, 46px); line-height: 1.03; letter-spacing: -.016em; max-width: 17em; }
.page-head .lede { margin-top: 18px; max-width: 40em; font-size: 17px; color: #dddddd; }
.page-head--photo { padding-bottom: 92px; }
.m:not(.m-go) .page-head [data-in] { visibility: hidden; animation: failsafe 0s linear 3.5s forwards; }
.page-body { background: var(--white); color: var(--ink); padding: 52px 0 72px; }
.page-body--photo { padding-top: 0; }
.page-body--photo .wide-photo { position: relative; margin-top: -56px; top: -0px; }
.page-body h2 { font-size: clamp(25px, 2.7vw, 36px); }

/* ---------- home ---------- */
.intro-cards { display: grid; gap: 28px; margin-top: 44px; }
.intro-cards article { display: flex; flex-direction: column; align-items: flex-start; border-top: 2px solid var(--green); padding-top: 22px; }
.intro-cards h3 { font-size: 26px; }
.intro-cards p { margin-block: 14px 12px; color: var(--mute-l); }
.intro-cards .text-link { margin-top: auto; }
.projects-link { margin-top: 18px; }
.steps li::before { content: none; }
.steps__n { display: block; font-size: 14px; font-weight: 600; color: #cccccc; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.cta__tel { font-size: min(150px, calc((100vw - 2 * var(--gut)) / 7.9)); }
.band-details { display: grid; gap: 8px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .5); font-weight: 600; }
.band-details a { text-underline-offset: 5px; }

/* ---------- services ---------- */
.services-body { padding-top: 0; }
.services-body .svc__grid { margin-top: 0; padding-top: 40px; }
html:not(.m) .services-body .svc__frame { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }
.svc__item { scroll-margin-top: 24px; }
.m .svc__item { scroll-margin-top: calc(max(34svh, 230px) + 16px); }
.svc__item .eyebrow { margin: 0 0 12px; font-size: 14px; }
.svc__item h2 { font-size: 26px; transition: color .4s var(--ease); }
.m .svc__item.is-on h2 { color: var(--green-dk); }
.points { margin-top: 20px; max-width: 34em; border-bottom: 1px solid var(--ll); }
.points li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--ll); font-size: 16px; line-height: 1.45; }
.points li::before { content: ""; position: absolute; left: 0; top: calc(10px + .72em); width: 14px; height: 2px; background: var(--green); }
.svc__item .points { border-bottom: 0; }

/* ---------- design, maintenance ---------- */
.wide-photo { overflow: hidden; background: var(--ink); }
.wide-photo picture { display: block; }
.wide-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.9) contrast(1.04); }
.content-sections { margin-top: 12px; }
.content-sections section { display: grid; gap: 12px; padding-block: 30px; border-bottom: 1px solid var(--ll); scroll-margin-top: 24px; }
.content-sections p { max-width: 38em; color: var(--mute-l); }
.content-sections .text-link { margin-top: 10px; color: var(--ink); }
.draft-note { margin-top: 32px; padding: 2px 0 2px 14px; border-left: 2px solid var(--green); max-width: 40em; color: var(--mute-l); line-height: 1.4; }
.draft-note small { font-size: 14px; }
.covers { display: grid; gap: 20px; margin-top: 48px; padding: 28px 22px 30px; background: #eeeeee; }
.covers .points { margin-top: 0; }
.covers .btn { justify-self: start; margin-top: 8px; }

/* ---------- projects ---------- */
.project-story + .project-story { margin-top: 56px; }
.story-photo { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 6 / 5; }
.story-photo picture, .story-photo img { display: block; width: 100%; height: 100%; }
.story-photo img { object-fit: cover; }
.title-block { position: relative; z-index: 1; margin: -44px 0 0 24px; background: var(--ink); color: #ffffff; padding: 26px 22px 12px; }
.mirrored .title-block { margin: -44px 24px 0 0; }
.title-block::before { content: ''; display: block; width: 32px; height: 3px; background: var(--green); margin-bottom: 20px; }
.title-block h2 { font-size: clamp(24px, 2.4vw, 30px); padding-bottom: 14px; }
.title-block dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-top: 1px solid var(--ld); }
.title-block dt { font-size: 14px; line-height: 1.6; color: #cccccc; }
.title-block dd { font-size: 16px; line-height: 1.45; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 52px; }
.contact-number { display: inline-block; font-family: var(--display); font-size: clamp(36px, 10vw, 60px); line-height: 1; letter-spacing: -.012em; white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; transition: color .2s var(--ease); }
@media (hover: hover) { .contact-number:hover { color: var(--green-dk); } }
.contact-details p { margin-top: 12px; }
.contact-details .contact-number + p { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ll); }
.contact-details .text-link { margin-top: 12px; }
.contact-form h2 { margin-bottom: 20px; }
.contact-form form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 650; }
.optional { font-weight: 400; color: var(--mute-l); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; border: 1px solid #888888; border-radius: 2px; background: #ffffff; color: var(--ink); font: inherit; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field textarea { resize: vertical; }
.field :is(input, select, textarea):hover { border-color: var(--ink); }
.field :is(input, select, textarea):focus-visible { border-color: var(--green); outline: 0; box-shadow: inset 0 -2px 0 var(--green), 0 0 0 3px rgba(34, 136, 72, .2); }
.field :is(input, textarea)[aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field :is(input, textarea)[aria-invalid="true"]:focus-visible { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px rgba(34, 136, 72, .35); }
.field :is(input, select, textarea):disabled { background: #eeeeee; border-color: #cccccc; cursor: not-allowed; }
.contact-form button { border: 0; font-family: var(--sans); cursor: pointer; justify-self: start; min-width: 200px; }
.contact-form button:disabled { background: #999999; cursor: not-allowed; }
.contact-form button:disabled::before { content: none; }
.honeypot { display: none; }
.preview-note, #form-sent, #form-error { text-wrap: balance; margin-bottom: 22px; padding: 14px 16px; border-left: 3px solid var(--green); background: #eeeeee; font-weight: 600; }
#form-error { border-left-color: var(--ink); }
#form-sent { display: flex; align-items: center; gap: 16px; padding: 20px; font-size: 18px; line-height: 1.4; }
#form-sent:focus { outline: 0; }
.tick { flex: none; width: 44px; height: 44px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-dasharray: 145; animation: tick-circle .5s cubic-bezier(.3, .6, .2, 1) backwards; }
.tick path { stroke-dasharray: 32; animation: tick-mark .28s cubic-bezier(.2, .7, .1, 1) .42s backwards; }
@keyframes tick-circle { from { stroke-dashoffset: 145; } }
@keyframes tick-mark { from { stroke-dashoffset: 32; } }

/* enquiry form: choices, service-call group, errors */
.contact-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-form legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 650; }
.topic-choice, .urgency-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-button { position: relative; display: inline-flex; cursor: pointer; }
.choice-button input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.choice-button span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border: 1px solid #888888; border-radius: 2px; background: #ffffff; font-size: 15px; font-weight: 600; line-height: 1.2; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), scale .12s var(--ease); }
.choice-button input:checked + span { background: var(--ink); border-color: var(--ink); color: #ffffff; box-shadow: inset 0 -3px 0 var(--green); }
.choice-button input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.choice-button input:active + span { scale: .97; }
.choice-button input:disabled { cursor: not-allowed; }
.choice-button input:disabled + span { background: #eeeeee; border-color: #cccccc; color: var(--mute-l); }
@media (hover: hover) { .choice-button input:not(:checked):not(:disabled):hover + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); } }
.contact-form fieldset.service-call { display: grid; gap: 18px; padding: 20px 18px 22px; background: rgba(35, 31, 32, .05); border-left: 3px solid var(--green); animation: group-in .26s var(--ease); }
.service-call > legend { margin-bottom: 0; font-family: var(--display); font-size: 19px; font-weight: 400; letter-spacing: -.01em; }
@keyframes group-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes fade-in { from { opacity: 0; } }
.field-error { flex-basis: 100%; display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 650; line-height: 1.35; color: var(--ink); }
.field-error:empty { display: none; }
.field-error::before { content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #ffffff; font-size: 12px; font-weight: 800; line-height: 1; }
.reply-note { margin-top: -6px; font-size: 14px; color: var(--mute-l); }

/* maintenance: questions and answers */
.faq { margin-top: 56px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--ll); }
.faq details:last-child { border-bottom: 1px solid var(--ll); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 44px 14px 0; font-size: 17px; font-weight: 650; line-height: 1.35; list-style: none; cursor: pointer; transition: color .2s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--green); transition: transform .25s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq details p { max-width: 38em; padding: 0 44px 24px 0; color: var(--mute-l); }
.faq details[open] p { animation: answer-in .2s var(--ease); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } }
@media (hover: hover) { .faq summary:hover { color: var(--green-dk); } }

/* reading progress, under the header on long pages */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 19; height: 2px; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.progress.is-on { opacity: 1; }
.progress i { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; }

/* images ease in as they arrive */
main img { transition: opacity .6s var(--ease); }
main img.is-loading { opacity: 0; }
main picture { transition: transform .9s var(--ease); }
main picture:has(> img.is-loading) { transform: scale(1.035); }

/* ---------- privacy, 404 ---------- */
.privacy { max-width: 760px; }
.privacy h2 { font-size: 26px; margin-block: 40px 14px; }
.privacy h2:first-child { margin-top: 0; }
.privacy p { margin-block: 14px; }
.privacy ul, .privacy ol { padding-left: 24px; list-style: revert; }
.privacy li { margin-block: 6px; }
.not-found-nav { display: grid; max-width: 640px; margin-bottom: 36px; border-top: 1px solid var(--ll); }
.not-found-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; font-family: var(--display); font-size: 21px; letter-spacing: -.01em; text-decoration: none; border-bottom: 1px solid var(--ll); transition: color .2s var(--ease); }
.not-found-nav a::after { content: "\2192"; font-family: var(--sans); color: var(--green); transition: transform .3s var(--ease); }
@media (hover: hover) {
  .not-found-nav a:hover { color: var(--green-dk); }
  .not-found-nav a:hover::after { transform: translateX(4px); }
}

/* ---------- footer ---------- */
.foot__grid { gap: 36px; }
.foot__id img { height: 64px; }
.foot__contact p { margin-bottom: 4px; }
.foot__contact a { display: inline-flex; align-items: center; min-height: 40px; }
.foot__contact p:has(a) { margin-bottom: 0; }
.foot nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (min-width: 700px) {
  .intro-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro-cards[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-details { grid-auto-flow: column; justify-content: start; gap: 44px; }
  .wide-photo img { aspect-ratio: 21 / 9; }
  .covers { padding: 40px; }
  .project-story + .project-story { margin-top: 72px; }
}
@media (min-width: 800px) {
  .project-story { display: grid; grid-template-columns: minmax(0, 780fr) minmax(0, 352fr); align-items: end; max-width: 1132px; margin-inline: 0 auto; }
  .story-photo, .title-block { grid-row: 1; }
  .story-photo { grid-column: 1; }
  .title-block { grid-column: 2; width: calc(100% + 48px); margin: 0 0 40px; margin-left: -48px; padding: 30px 28px 14px; }
  .project-story.mirrored { grid-template-columns: minmax(0, 352fr) minmax(0, 780fr); margin-inline: auto 0; }
  .mirrored .story-photo { grid-column: 2; }
  .mirrored .title-block { grid-column: 1; margin: 0 0 40px; margin-right: -48px; }
}
@media (min-width: 1000px) {
  .page-head { padding: 172px 0 76px; }
  .page-head__h { font-size: clamp(48px, 4.7vw, 68px); line-height: 1.02; }
  .page-head .lede { margin-top: 26px; font-size: 21px; }
  .page-head--photo { padding-bottom: 148px; }
  .page-body { padding: 92px 0 120px; }
  .page-body--photo { padding-top: 0; }
  .page-body--photo .wide-photo { margin-top: -80px; }
  .progress { transform: translateY(76px); }
  .top.is-away + .progress { transform: none; }
  .faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 80px; margin-top: 88px; }
  .faq h2 { grid-column: 1; grid-row: 1 / span 12; margin: 0; padding-top: 18px; }
  .faq details { grid-column: 2; }
  .faq summary { font-size: 19px; min-height: 72px; }
  .intro-cards { gap: 40px; margin-top: 72px; }
  .intro-cards h3 { font-size: 28px; }
  .band-details { margin-top: 60px; font-size: 20px; gap: 64px; }
  .services-body .svc__grid { padding-top: 96px; }
  html:not(.m) .services-body .svc__frame { grid-template-columns: repeat(2, 1fr); position: sticky; top: 104px; margin-bottom: 0; }
  .svc__item, .m .svc__item { scroll-margin-top: 96px; }
  .svc__item h2 { font-size: 38px; }
  .svc__item .eyebrow { font-size: 15px; margin-bottom: 16px; }
  .points li { font-size: 17px; }
  .content-sections { margin-top: 28px; }
  .content-sections section { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; padding-block: 44px; scroll-margin-top: 96px; }
  .draft-note { margin-top: 40px; }
  .covers { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 80px; margin-top: 72px; padding: 56px; }
  .covers h2 { grid-column: 1; grid-row: 1; }
  .covers .points { grid-column: 2; grid-row: 1 / span 2; }
  .covers .btn { grid-column: 1; grid-row: 2; align-self: start; }
  .project-story + .project-story { margin-top: 104px; }
  .title-block dl > div { grid-template-columns: 96px minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
  .foot__grid { grid-template-columns: 5fr 4fr 3fr; gap: 48px; }
}
@media (prefers-reduced-motion: no-preference) {
  .story-photo.curtain-ready::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: translateX(0); transition: transform 900ms var(--ease); }
  .story-photo.curtain-ready img { transform: scale(1.08); transition: transform 1200ms var(--ease); }
  .story-photo.curtain-ready.is-visible::after { transform: translateX(101%); }
  .story-photo.curtain-ready.is-visible img { transform: scale(1); }
  /* the caption box follows the curtain in */
  .story-photo.curtain-ready + .title-block { opacity: 0; transform: translateY(18px); }
  .story-photo.curtain-ready.is-visible + .title-block { opacity: 1; transform: none; transition: opacity .5s var(--ease) .5s, transform .7s var(--ease) .5s; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .story-photo.curtain-ready.is-visible:hover img { transform: scale(1.045); transition-duration: 2.4s; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-form fieldset.service-call { animation: fade-in .25s both !important; }
  .faq details[open] p { animation: fade-in .25s both !important; }
}

/* Keep the logo tagline on a near-black ground over the hero photo (brand logo unchanged). */
.top::before { content: ""; position: absolute; inset: 0 0 -36px; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(35,31,32,.9), rgba(35,31,32,.55) 60%, rgba(35,31,32,0)); transition: opacity .4s var(--ease); }
.top.is-solid::before { opacity: 0; }

/* ---------- inner page header photo (optional, set per page in the editor) ---------- */
.page-head__photo { position: absolute; inset: 0; overflow: hidden; background: var(--ink); }
.page-head__photo picture { display: block; width: 100%; height: 100%; }
.page-head__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
/* ink at 80% or more under the text (left 65%), lighter to the right so the photo colour shows */
.page-head__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35, 31, 32, .9), rgba(35, 31, 32, .8) 65%, rgba(35, 31, 32, .3)); }
.page-head--bg .lede { color: var(--white); }

/* ---------- home: steps band on light ---------- */
.call { background: var(--white); color: var(--ink); }
.call .eyebrow, .call .lede { color: var(--mute-l); }
.call .steps::before { background: var(--ll); }
.call .steps__n { color: var(--mute-l); }
.call .steps p { color: var(--mute-l); }
.call .steps a { color: var(--ink); text-decoration-color: var(--green); }

/* ---------- optional banner video (see motion.js) ---------- */
.hero__video { display: none; }

/* ---------- premium polish: layout and state (every transition and animation for it is in the reduced-motion block at the end) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the reading progress bar follows the slimmer header */
@media (min-width: 1000px) { .top.is-solid:not(.is-away) + .progress { transform: translateY(64px); } }

/* header menu: one green bar slides to the item under the pointer (built by site.js; without it each item draws its own underline) */
.top__nav { position: relative; }
.top__ind { position: absolute; left: 0; bottom: 4px; width: 100px; height: 2px; background: var(--green); transform-origin: 0 50%; opacity: 0; pointer-events: none; }
.top__ind.is-on { opacity: 1; }
.top__nav.has-ind a::after, .top__nav.has-ind a[aria-current="page"]::after { display: none; }

/* text links: a darker green line draws over the resting underline */
.text-link { position: relative; }
.text-link::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(50% - 16px); height: 2px; background: var(--green-dk); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* back to top */
.to-top { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 2px; background: var(--ink); color: var(--white); cursor: pointer; opacity: 0; visibility: hidden; }
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:focus-visible { outline-color: var(--green); outline-offset: 3px; box-shadow: 0 0 0 2px #ffffff; }
@media (hover: hover) { .to-top:hover { background: var(--green-dk); } }
@media (max-width: 699px) { .dock.is-up ~ .to-top { translate: 0 calc(-56px - env(safe-area-inset-bottom)); } }

/* copy buttons beside the phone number and email (fine pointers only, built by site.js) */
.copy { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 12px; padding: 0; border: 1px solid currentColor; border-radius: 2px; background: transparent; color: inherit; cursor: pointer; vertical-align: middle; opacity: .75; }
.copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.copy__done { display: none; }
.copy:hover, .copy:focus-visible { opacity: 1; }
.copy:active { translate: 0 1px; }
.copy.is-done { opacity: 1; background: var(--green); border-color: var(--green); color: #ffffff; }
.copy.is-done .copy__icon { display: none; }
.copy.is-done .copy__done { display: block; }

/* FAQ: the answer's height is animated by site.js on a detail's own box; keep the clip while it runs */
.faq details.is-running { overflow: hidden; }

/* project photos open in a viewer (button and dialog built and wired by projects.js) */
.story-photo__open { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-end; padding: 0; border: 0; background: transparent; color: #ffffff; cursor: zoom-in; }
.story-photo__open:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; box-shadow: inset 0 0 0 6px #ffffff; }
.story-photo__hint { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--ink); }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 18, 19, .97); color: #ffffff; overflow: hidden; overscroll-behavior: contain; }
.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.viewer::backdrop { background: rgba(20, 18, 19, .97); }
.viewer__fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; min-height: 0; padding: 64px var(--gut) 8px; }
.viewer__img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer__cap { font-size: 16px; font-weight: 600; text-align: center; }
.viewer__nav { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 12px; padding: 8px var(--gut) max(18px, env(safe-area-inset-bottom)); }
.viewer__count { text-align: center; font-size: 14px; color: var(--mute-d); font-variant-numeric: tabular-nums; }
.viewer button { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .4); border-radius: 2px; background: transparent; color: #ffffff; cursor: pointer; }
.viewer button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; box-shadow: 0 0 0 2px #ffffff; }
@media (hover: hover) { .viewer button:hover { background: var(--green-dk); border-color: var(--green-dk); } }
.viewer__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.viewer.is-single .viewer__prev, .viewer.is-single .viewer__next { visibility: hidden; }
html:has(.viewer[open]) { overflow: hidden; }

/* ---------- motion polish: all of it off under reduced motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* blocks rise once as they enter view. Visible by default; hidden only with the m class, and a 4s failsafe shows them if motion.js never starts */
  .m [data-rise]:not(.is-in) { opacity: 0; transform: translateY(14px); animation: rise-failsafe 0s linear 4s forwards; }
  .m.rise-on [data-rise]:not(.is-in) { animation: none; }
  .m [data-rise].is-in { opacity: 1; transform: none; transition: opacity .55s var(--ease) var(--rise-d, 0ms), transform .55s var(--ease) var(--rise-d, 0ms); }
  @keyframes rise-failsafe { to { opacity: 1; transform: none; } }
  /* header photo settles in */
  .m .page-head__photo img { animation: head-settle 1.2s var(--ease) both; }
  @keyframes head-settle { from { transform: scale(1.05); } }
  /* banner video, wide screens only (motion.js also checks) */
  @media (min-width: 900px) {
    .hero__video { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 112%; object-fit: cover; object-position: 56% 50%; filter:saturate(.85) contrast(1.05); opacity: 0; transition: opacity .9s var(--ease); }
    .hero__video.is-playing { opacity: .74; }
    .hero__photo.has-video img { opacity: 0; transition: opacity .9s var(--ease); }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .pj__fig picture { transition: scale .6s var(--ease); }
  .pj:hover .pj__fig picture { scale: 1.035; }
  .proj.is-pin .pj { transition: translate .4s var(--ease); }
  .proj.is-pin .pj:hover { translate: 0 -3px; }
  .intro-cards article { transition: translate .4s var(--ease); }
  .intro-cards article:hover { translate: 0 -3px !important; }
}

/* ---------- premium polish: motion (all of it off under reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* menu bar slides between items */
  .top__ind { transition: transform .45s var(--ease), opacity .25s var(--ease); }
  /* text links */
  .text-link::before { transition: transform .4s var(--ease); }
  /* back to top */
  .to-top { transition: opacity .3s var(--ease), translate .35s var(--ease), background-color .2s var(--ease), visibility 0s .3s; }
  .to-top.is-on { transition: opacity .3s var(--ease), translate .35s var(--ease), background-color .2s var(--ease), visibility 0s; }
  .to-top:active { scale: .96; }
  /* copy confirmation */
  .copy { transition: opacity .2s var(--ease), background-color .2s var(--ease); }
  /* project viewer */
  .viewer[open] { animation: viewer-in .25s var(--ease); }
  .viewer__img { opacity: 0; transition: opacity .3s var(--ease); }
  .viewer__img.is-in { opacity: 1; }
  @keyframes viewer-in { from { opacity: 0; } }
  /* thank-you panel */
  #form-sent:not([hidden]) { animation: sent-in .55s var(--ease) backwards; }
  @keyframes sent-in { from { opacity: 0; transform: translateY(10px); } }
  /* the plain-HTML answer fade is replaced by the height animation */
  .faq details.is-animated[open] p { animation: none; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .text-link:hover::before { transform: scaleX(1); }
  .text-link:hover::after { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .viewer__img { opacity: 1; }
}
