/* Project stories and company profile; load after editorial.css. */
.profile-trust,
.profile-project-grid,
.project-story,
.company-intro,
.company-capabilities,
.contact-options,
.service-additions {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
}
:is(.profile-trust, .profile-project-grid, .project-story, .company-intro,
.company-capabilities, .contact-options, .service-additions) > * {
  min-width: 0;
}
.profile-trust {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 2.25rem;
  border-block: 1px solid var(--border-color);
}
.trust-item strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.65;
}
.trust-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* The project index is a quiet two-column sequence. Homepage work-grid
   keeps its existing editorial placement and image proportions. */
.profile-project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem 2.5rem;
}
.project-card { min-width: 0; }
.profile-project-grid > .project-card {
  display: block;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-color);
}
.project-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-surface);
}
.project-card-media picture,
.project-card-media img {
  display: block;
  width: 100%;
  height: 100%;
}
.project-card-media img { object-fit: cover; }
.project-card-copy { padding-top: 1.5rem; }
.project-card-copy .eyebrow { margin-bottom: .55rem; }
.project-card-copy h3 {
  margin: 0 0 .7rem;
  padding: 0;
  color: var(--text-main);
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  font-weight: 600;
  line-height: 1.55;
}
.project-card-copy p {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}
:is(ul.project-tags, .project-tags ul) {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.project-tags li {
  max-width: 100%;
  color: var(--text-accent);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.project-tags li + li::before {
  content: "/";
  display: inline-block;
  margin-inline-end: .85rem;
  color: var(--border-color);
}
a.project-card:hover :is(h3, .work-arrow) { color: var(--text-accent); }
a.project-card:focus-visible {
  outline: 3px solid var(--text-accent);
  outline-offset: 7px;
}
.project-card-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .75rem;
  color: var(--text-accent);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: .25em;
}

/* Each detail page opens with the original project photograph. */
.project-detail-hero { margin: 0; }
.project-detail-hero figure { margin: 0; }
.project-detail-hero picture { display: block; }
.project-detail-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 58%;
  background: var(--bg-surface);
}
.project-detail-hero figcaption,
.company-photo figcaption {
  margin-top: .85rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.project-story {
  grid-template-columns: minmax(0, 1.7fr) minmax(15rem, .85fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.project-story h2,
.company-text h2 {
  margin: 0 0 1.25rem;
  padding: 0;
  color: var(--text-main);
  font-size: clamp(1.75rem, 2.7vw, 2.5rem);
  font-weight: 600;
  line-height: 1.55;
}
.project-story p,
.company-text p {
  max-width: 45rem;
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}
.project-story ul,
.company-text ul {
  margin: 1rem 0;
  padding-inline-start: 1.35rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}
.project-story li,
.company-text li { margin-block: .45rem; }
.project-meta {
  padding-inline-start: 2rem;
  border-inline-start: 1px solid var(--border-color);
}
.project-meta h2,
.project-meta h3 {
  margin-bottom: 1.5rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1.6;
}
.project-meta dl { margin: 0; }
.project-meta dt {
  margin-bottom: .3rem;
  color: var(--text-accent);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
}
.project-meta dd {
  margin: 0 0 1.3rem;
  color: var(--text-main);
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.project-meta dd:last-child { margin-bottom: 0; }
.project-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: .25em;
}
.project-gallery[data-image-viewer],
.project-gallery > [data-image-viewer] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 2.5rem 2rem;
}
.project-gallery a {
  display: block;
  min-width: 0;
  cursor: zoom-in;
}
.project-gallery a > picture,
.project-gallery a > div {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-surface);
}
.project-gallery a > div > picture { display: block; width: 100%; height: 100%; }
.project-gallery a img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-gallery .caption {
  display: block;
  padding-top: .85rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
.project-gallery a:hover .caption { color: var(--text-main); }
.project-gallery a:focus-visible {
  outline: 3px solid var(--text-accent);
  outline-offset: 7px;
}
.project-next {
  margin-top: clamp(3rem, 6vw, 6rem);
  padding-block: 2rem;
  border-top: 1px solid var(--border-color);
}
.project-next h2 { margin: 0 0 .75rem; padding: 0; font-size: 1.25rem; }
.project-next a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  color: var(--text-main);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.65;
  text-decoration: underline;
  text-decoration-color: var(--text-accent);
  text-underline-offset: .3em;
  overflow-wrap: anywhere;
}
.project-next a:hover { color: var(--text-accent); }

/* People and capabilities, without decorative statistics. */
.company-intro {
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.company-photo,
.company-photo figure { min-width: 0; margin: 0; }
.company-photo picture { display: block; }
.company-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 60%;
}
.company-text { min-width: 0; }
.company-capabilities,
.service-additions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(3rem, 5vw, 5rem);
}
:is(.company-capabilities, .service-additions) > :is(h2, .section-heading) {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.capability,
.service-addition {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}
.capability h3,
.service-addition h3 {
  margin: 0 0 .85rem;
  padding: 0;
  color: var(--text-main);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.6;
}
.capability p,
.service-addition p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}
.service-addition a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .75rem;
  color: var(--text-accent);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: .25em;
}

/* A real night garden: the photograph stays visible above the copy. */
.profile-band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 600px;
  padding-block: 7rem 3.5rem;
  background: #0c140f;
  color: #f0eee5;
}
.profile-band-picture {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  overflow: hidden;
}
.profile-band-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
}
.profile-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12,20,15,.05) 10%, rgba(12,20,15,.15) 36%, rgba(12,20,15,.76) 68%, rgba(12,20,15,.97) 100%);
  pointer-events: none;
}
.profile-band-copy { position: relative; z-index: 1; }
.profile-band-copy > * { max-width: 37.5rem; }
.profile-band .eyebrow { color: #dfcd9c; }
.profile-band h2 {
  margin: 0 0 1rem;
  padding: 0;
  color: #f0eee5;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.5;
}
.profile-band p {
  margin: 0;
  color: #e1e6db;
  font-size: 1.125rem;
  line-height: 1.85;
}
.profile-band a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1.25rem;
  color: #f0eee5;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: .3em;
}
.profile-band .btn-primary {
  background: #dce5cc;
  border-color: #dce5cc;
  color: #142019;
  text-decoration: none;
}
.profile-band :focus-visible { outline: 3px solid #dfcd9c; outline-offset: 5px; }

/* Native disclosure keeps frequently asked questions usable without JS. */
.profile-faq { margin-top: clamp(3rem, 6vw, 5rem); }
.profile-faq > h2 {
  margin-bottom: 1.5rem;
  padding: 0;
  font-size: clamp(1.75rem, 2.7vw, 2.5rem);
}
.profile-faq details {
  border-top: 1px solid var(--border-color);
  padding-bottom: .2rem;
}
.profile-faq details:last-child { border-bottom: 1px solid var(--border-color); }
.profile-faq summary {
  min-height: 64px;
  padding-block: 1.05rem;
  padding-inline-end: .75rem;
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.75;
  cursor: pointer;
}
.profile-faq summary::marker { color: var(--text-accent); }
.profile-faq summary:hover { color: var(--text-accent); }
.profile-faq summary:focus-visible {
  outline: 3px solid var(--text-accent);
  outline-offset: 4px;
}
.profile-faq details > :not(summary) {
  max-width: 52rem;
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}
.profile-faq p { margin: 0 0 1rem; }

/* Direct contact options remain readable at narrow widths and text zoom. */
.contact-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 2.3vw, 2rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}
.contact-option h2 {
  margin: 0 0 .75rem;
  padding: 0;
  color: var(--text-main);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.6;
}
.contact-option p {
  max-width: 100%;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.contact-option a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 48px;
  padding-block: .5rem;
  color: var(--text-accent);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.contact-option a.btn {
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
  white-space: normal;
}
.contact-option a.btn-primary { color: var(--btn-primary-text); }
.contact-option a.btn-outline { color: var(--text-main); }
code.line-number,
.line-number code {
  display: inline-block;
  max-width: 100%;
  padding: .4rem .75rem;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.8;
  overflow-wrap: anywhere;
  user-select: all;
}
.contact-prep {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.contact-prep h2 {
  margin: 0 0 1rem;
  padding: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}
.contact-prep p,
.contact-prep li {
  max-width: 50rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}
.contact-prep ul,
.contact-prep ol { padding-inline-start: 1.4rem; }
.contact-prep li { margin-block: .6rem; }

/* Shared endings and generous separation for the generated inner pages. */
.company-scope,
.archive-gallery { margin-top: clamp(3.5rem, 6vw, 6rem); }
.company-scope > h2,
.archive-gallery > h2 {
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: clamp(1.75rem, 2.7vw, 2.5rem);
  line-height: 1.55;
}
.company-scope > :is(.company-capabilities, .service-additions) { margin-top: 2rem; }
.archive-gallery > .gallery-intro {
  max-width: 45rem;
  margin-bottom: 2rem;
  font-size: 1.0625rem;
  line-height: 1.85;
}
.profile-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3.5rem, 6vw, 6rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-block: 1px solid var(--border-color);
  background: var(--bg-surface);
}
.profile-cta > div { flex: 1 1 28rem; min-width: 0; max-width: 48rem; }
.profile-cta .eyebrow { margin-bottom: .75rem; }
.profile-cta h2 {
  margin: 0 0 1rem;
  padding: 0;
  color: var(--text-main);
  font-size: clamp(1.75rem, 2.7vw, 2.5rem);
  font-weight: 600;
  line-height: 1.55;
}
.profile-cta p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.85;
}
.profile-cta > .btn { flex: 0 1 auto; min-height: 48px; white-space: normal; }
.company-profile-download .profile-download-info {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}
.company-profile-button {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}
.footer-links .company-profile-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.project-next { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.project-next > div { min-width: 0; }
.project-next .section-link { white-space: normal; }
.contact-prep address { max-width: 50rem; color: var(--text-muted); font-style: normal; font-size: 1.0625rem; line-height: 1.85; }

@media (max-width: 1000px) {
  .profile-project-grid { gap: 2.5rem 1.75rem; }
  .company-intro { align-items: start; }
  .company-capabilities,
  .service-additions { gap: 2rem; }
  .contact-options { gap: 1.25rem; }
}
@media (max-width: 820px) {
  .project-story,
  .company-intro { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .project-meta {
    border-inline-start: 0;
    border-top: 1px solid var(--border-color);
    padding-inline-start: 0;
    padding-top: 1.75rem;
  }
  .company-photo { max-width: 36rem; }
  .company-capabilities,
  .service-additions,
  .contact-options { grid-template-columns: minmax(0, 1fr); }
  .contact-option { padding: 1.5rem; }
  .profile-band { min-height: 480px; padding-block: 6rem 2.75rem; }
}
@media (max-width: 680px) {
  .profile-trust { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 1.75rem; }
  .trust-item + .trust-item { border-top: 1px solid var(--border-color); padding-top: 1.5rem; }
  .profile-project-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .project-card-copy { padding-top: 1.15rem; }
  .project-card-copy h3 { font-size: 1.5rem; }
  .project-detail-hero img { aspect-ratio: 4 / 3; }
  .project-story { padding-block: 2.5rem; }
  .project-gallery[data-image-viewer],
  .project-gallery > [data-image-viewer] { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .project-gallery a > picture,
.project-gallery a > div { aspect-ratio: auto; }
  .project-gallery a > div > picture { height: auto; }
  .project-gallery a img { height: auto; object-fit: contain; }
  .project-story h2,
  .company-text h2,
  .profile-faq > h2 { font-size: 1.75rem; }
  .company-photo { max-width: 100%; }
  .company-capabilities,
  .service-additions { margin-top: 2.5rem; }
  .profile-band { min-height: 420px; padding-block: 5rem 2.25rem; }
  .profile-band-picture img { object-position: 50% 55%; }
  .profile-band h2 { font-size: 2rem; }
  .profile-band p { font-size: 1.0625rem; }
  .profile-faq summary { font-size: 1.0625rem; }
}
@media (max-width: 380px) {
  .contact-option { padding: 1.15rem; }
  .contact-option a { font-size: 1rem; }
  .project-tags li + li::before { margin-inline-end: .65rem; }
}
@media (forced-colors: active) {
  .profile-band { background: Canvas; color: CanvasText; }
  .profile-band-picture, .profile-band::before { display: none; }
  .profile-band :is(h2, p, a, .eyebrow) { color: CanvasText; }
  .project-card, .project-gallery a { border: 1px solid LinkText; }
}


.project-detail-hero > a { display: block; cursor: zoom-in; }
.project-detail-hero > a:focus-visible { outline: 3px solid var(--text-accent); outline-offset: 6px; }

/* Six services remain balanced at desktop, tablet and phone widths. */
.inner-page .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services-grid #garden-maintenance img { object-position: 50% 80%; }
@media (max-width: 1050px) { .inner-page .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .inner-page .services-grid { grid-template-columns: minmax(0, 1fr); } }
