/* A shorter homepage with two clear service paths and the existing brand. */
.home-studio main h2 {
  font-size: clamp(30px, 24px + 1.6vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.how-we-help {
  --focus: #326827;
  padding-block: 80px;
  background: var(--paper);
  color: var(--ink);
}
.how-we-help-heading {
  max-width: 760px;
}
.how-we-help-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 44px;
}
.help-way {
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-margin-top: 100px;
}
.help-way:first-child {
  padding-right: clamp(32px, 4vw, 64px);
}
.help-way + .help-way {
  padding-left: clamp(32px, 4vw, 64px);
  border-left: 1px solid var(--rule);
}
/* Medium weight keeps the paths below the section heading, as elsewhere. */
.help-way h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.help-way > p {
  max-width: 53ch;
  margin-top: 20px;
  margin-bottom: 28px;
  color: #526057;
  font-size: 17px;
  line-height: 1.6;
}
.help-way-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: auto;
}
.help-way-actions .button {
  min-height: 52px;
  padding: 13px 20px;
  gap: 20px;
  font-size: 15px;
  font-weight: 500;
}
.help-way-actions .button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.help-detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #3d5844;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* The fixed-fee first step for visitors who aren't ready for a project. */
.help-way-offer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #c9d2c1;
  color: #526057;
  font-size: 15px;
  line-height: 1.6;
}
.help-way-offer a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: nowrap;
}
/* The shared .arrow hides its glyph with font-size: 0, so its baseline sits at
   the top of the icon. Align by middle instead so it stays on the text line. */
.help-way-offer .arrow {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  vertical-align: middle;
  color: #326827;
}
.help-way-offer a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.home-specialists {
  --focus: #326827;
  padding-block: 64px 24px;
  background: var(--paper);
  color: var(--ink);
}
.home-specialists h2 {
  max-width: 760px;
}
.home-specialist-list {
  margin-top: 32px;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.home-specialist-list > li {
  border-bottom: 1px solid var(--rule);
}
.home-specialist-link {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) 24px;
  align-items: center;
  gap: 32px;
  min-height: 96px;
  padding-block: 24px;
  color: inherit;
  text-decoration: none;
}
.home-specialist-link h3 {
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.home-specialist-link p {
  max-width: 58ch;
  color: #526057;
  font-size: 16px;
  line-height: 1.6;
}
.home-specialist-link .arrow {
  color: #326827;
}
.home-specialist-link:is(:hover, :focus-visible) h3 {
  color: #326827;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.home-specialist-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .help-way-actions {
    min-height: 104px;
    align-content: flex-start;
    align-items: center;
    row-gap: 8px;
  }
}

@media (max-width: 767px) {
  .how-we-help {
    padding-block: 48px;
  }
  .how-we-help-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    margin-top: 32px;
  }
  .help-way:first-child {
    padding-right: 0;
  }
  .help-way + .help-way {
    padding-top: 36px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .help-way h3 {
    font-size: 28px;
  }
  .help-way > p {
    margin-top: 16px;
    margin-bottom: 20px;
    font-size: 16px;
  }
  .help-way-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .home-specialists {
    padding-block: 48px 12px;
  }
  .home-specialist-list {
    margin-top: 24px;
  }
  .home-specialist-link {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 10px 20px;
  }
  .home-specialist-link p {
    grid-column: 1;
    grid-row: 2;
    font-size: 15px;
  }
  .home-specialist-link .arrow {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Selected work pairs each engineering story with two inspectable project views. */
.home-studio .selected-work {
  padding-block: clamp(48px, 6vw, 92px);
  background: #f7f7f1;
}
.factory-story, .plan-story {
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.45fr);
}
.factory-story {
  padding: clamp(18px, 2.3vw, 34px);
  background: #182620;
  color: #f7f7f1;
  --focus: #b9ed83;
}
.story-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(14px, 2.2vw, 36px);
  padding-right: clamp(26px, 4vw, 66px);
}
.story-copy .project-credit {
  margin: 0 0 clamp(24px, 3.5vw, 50px);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.factory-story .project-credit { color: #c1ed99; }
.story-copy h3 {
  font-size: clamp(36px, 4vw, 62px);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.story-copy h3 + p, .process-copy p {
  max-width: 49ch;
  margin-top: 22px;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}
.factory-story h3 + p { color: #d0d9d0; }
.factory-story-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: clamp(20px, 2.4vw, 36px);
}
.factory-story-actions .button {
  gap: 12px;
  min-height: 48px;
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 500;
}
.factory-story-actions .text-link {
  color: #d0d9d0;
  font-size: 14px;
}
.story-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin-top: clamp(18px, 2.4vw, 36px);
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.story-link .text-link-label { text-underline-offset: 6px; }
.plan-story {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  padding-block: clamp(36px, 5vw, 76px) 8px;
  align-items: center;
}
.plan-story .story-copy {
  grid-column: 2;
  grid-row: 1;
  padding-inline: clamp(28px, 6vw, 92px) 0;
}
.plan-story .project-viewer { grid-column: 1; grid-row: 1; }
.plan-story .project-credit { color: #4e6251; }
.project-viewer {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  align-self: center;
}
.project-viewer .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.view-stage { position: relative; overflow: hidden; aspect-ratio: 1.55; }
.project-frame, .project-frame img { width: 100%; height: 100%; }
/* Inactive views stay laid out (not display:none) so their lazy images load
   with the section and switching never shows an empty frame. */
.project-frame { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.project-frame img { display: block; object-fit: cover; }
.view-choice:nth-of-type(1):checked ~ .view-stage .frame-0,
.view-choice:nth-of-type(2):checked ~ .view-stage .frame-1 { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .project-frame { transition: opacity 260ms ease, visibility 0s linear 260ms; }
  .view-choice:nth-of-type(1):checked ~ .view-stage .frame-0,
  .view-choice:nth-of-type(2):checked ~ .view-stage .frame-1 { transition: opacity 260ms ease, visibility 0s; }
}
.viewer-factory .project-frame::after {
  content: '';
  position: absolute;
  width: 9%;
  aspect-ratio: 1;
  border-top: 5px solid #b9ed83;
  border-right: 5px solid #b9ed83;
  top: 54%;
  right: 31%;
}
/* The control panel already fills this view; the marker only fits the floor photo. */
.viewer-factory .frame-1::after { display: none; }
.view-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  background: #0e1813;
  color: #ecf0e7;
}
.view-switch label {
  cursor: pointer;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding-inline: clamp(14px, 2vw, 28px);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
}
.view-switch label:hover { text-decoration: underline; text-underline-offset: 4px; }
.view-choice:nth-of-type(1):checked ~ .view-switch label:first-child,
.view-choice:nth-of-type(2):checked ~ .view-switch label:last-child {
  color: #182620;
  background: var(--lime);
}
.view-choice:nth-of-type(1):focus-visible ~ .view-switch label:first-child,
.view-choice:nth-of-type(2):focus-visible ~ .view-switch label:last-child {
  outline: 2px solid currentColor;
  outline-offset: -5px;
}
.viewer-plan .view-stage {
  aspect-ratio: 1.9;
  background: #e5e6e3;
}
.viewer-plan .frame-0 { background: #fff; }
/* The 3D crop sits on its own backdrop colour, so letterboxing is invisible. */
.viewer-plan .frame-1 { background: #e5e6e3; }
.viewer-plan img { object-fit: contain; }
.viewer-plan .view-switch { background: #e1e6db; color: var(--ink); }
.viewer-plan .view-choice:checked ~ .view-switch label { border: 1px solid transparent; }
.viewer-plan .view-choice:nth-of-type(1):checked ~ .view-switch label:first-child,
.viewer-plan .view-choice:nth-of-type(2):checked ~ .view-switch label:last-child {
  background: #23362b;
  color: #f4f7ef;
}
.home-studio .company-client-viewport { mask-image: none; }
.home-studio .company-clients .client-mark { height: 62px; }
.how-we-help { background: #e6ebdf; }
.home-specialists { padding-block: clamp(44px, 5vw, 76px); background: #f7f7f1; }
.process-note { background: #d9edbb; color: #203124; padding-block: clamp(50px, 6.5vw, 100px); }
.process-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: clamp(32px, 6vw, 100px);
}
.process-note h2 { margin-bottom: 16px; }
.process-question {
  max-width: 25ch;
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.process-copy p:first-child { margin-top: 0; }
.home-studio .footer-invitation-heading { display: grid; grid-template-columns: 1fr auto; }
.home-studio .footer-invitation-heading h2 > span { display: inline; }
.contact-person { display: flex; align-items: center; gap: 18px; color: inherit; text-decoration: none; }
.contact-person img { border-radius: 50%; width: 76px; height: 76px; object-fit: cover; }
.contact-person strong, .contact-person small, .team-link { display: block; }
.contact-person small { margin-top: 4px; color: #c1cdc3; }
.team-link { margin-top: 8px; font-size: 14px; color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 850px) {
  .factory-story, .plan-story, .process-layout { grid-template-columns: 1fr; }
  .factory-story { padding: 0; }
  .story-copy, .plan-story .story-copy { padding: 26px 24px; grid-area: auto; }
  .plan-story .story-copy { padding-inline: 0; }
  .plan-story .project-viewer { grid-area: auto; }
  .story-copy .project-credit { margin-bottom: 16px; }
  .process-layout { gap: 24px; }
  .home-studio .footer-invitation-heading { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 767px) {
  .home-studio .selected-work-heading { display: grid; gap: 4px; margin-bottom: 16px; }
  .viewer-plan .view-stage { aspect-ratio: 1.55; }
  .contact-person img { width: 58px; height: 58px; }
}
/* Homepage menu: show a close "X" like the inner pages, not a single slash. */
@media (max-width: 1023px) {
  .home-studio .menu-toggle[aria-expanded="true"] .menu-lines {
    position: relative;
    height: 12px;
    border: 0;
    transform: none;
  }
  .home-studio .menu-toggle[aria-expanded="true"] .menu-lines::before,
  .home-studio .menu-toggle[aria-expanded="true"] .menu-lines::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: rotate(45deg);
  }
  .home-studio .menu-toggle[aria-expanded="true"] .menu-lines::after {
    transform: rotate(-45deg);
  }
}

/* FloorPlanMind conversion composition, using the same home's real assets. */
#floorplanmind-work { scroll-margin-top: 100px; }
.conversion-canvas {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 700 / 480;
  background: #e5e6e3;
  border: 1px solid #d5d9d1;
}
.conversion-canvas::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: linear-gradient(#64705c0b 1px, transparent 1px), linear-gradient(90deg, #64705c0b 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(110deg, #000, transparent 65%);
}
.conversion-heading { position: absolute; z-index: 3; inset: 5.5% 5.5% auto; display: flex; justify-content: space-between; align-items: center; color: #354638; font-size: clamp(11px, 1vw, 14px); font-weight: 500; }
.conversion-heading > span:last-child { display: flex; gap: 10px; color: #667060; font-size: 11px; letter-spacing: .06em; }
.plan-story .conversion-line { position: absolute; z-index: 3; top: 15%; left: 5.5%; margin: 0; color: #354638; font-size: clamp(20px, 2.1vw, 31px); line-height: 1.1; letter-spacing: -.035em; }
.conversion-model { position: absolute; z-index: 1; width: 80%; top: 13%; right: -5%; }
.conversion-model img { display: block; width: 100%; height: auto; }
.conversion-plan { position: absolute; z-index: 3; left: 5.5%; bottom: 9%; width: 31%; padding: 12px; background: #fff; border: 1px solid #d0d5cb; box-shadow: 0 15px 35px -18px #36423570; transform: rotate(-8deg); }
.conversion-plan img { width: 100%; height: auto; }
.conversion-step { display: block; color: #3f5140; font-size: clamp(9px, .85vw, 12px); font-weight: 500; line-height: 1.5; }
.conversion-plan .conversion-step { margin-bottom: 9px; }
.conversion-result { position: absolute; z-index: 3; right: 6%; bottom: 7%; text-align: right; }
.conversion-result .conversion-step { font-size: clamp(12px, 1.15vw, 16px); }
.conversion-result-note { display: block; margin-top: 5px; color: #677061; font-size: clamp(10px, .9vw, 13px); }
.conversion-flow { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; stroke: #677f59; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.conversion-route { stroke-dasharray: 4 7; }
.plan-conversion figcaption { margin-top: 12px; color: #526057; font-size: 12px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .plan-story[data-home-motion="done"] .conversion-model { animation: conversion-arrive 1500ms cubic-bezier(.2,.65,.3,1) both; }
  .plan-story[data-home-motion="done"] .conversion-plan { animation: conversion-plan-arrive 1100ms cubic-bezier(.2,.65,.3,1) both; }
  .plan-story[data-home-motion="done"] .conversion-route { animation: conversion-trace 3000ms ease-out both; }
  @keyframes conversion-arrive { from { opacity: .4; transform: translate(-14px, 12px); } to { opacity: 1; transform: translate(0, 0); } }
  @keyframes conversion-plan-arrive { from { transform: translateY(10px) rotate(-4deg); } to { transform: translateY(0) rotate(-8deg); } }
  @keyframes conversion-trace { from { stroke-dashoffset: 55; opacity: .2; } to { stroke-dashoffset: 0; opacity: 1; } }
}
@media (max-width: 850px) {
  .plan-story .conversion-line { font-size: clamp(22px, 4vw, 32px); }
  .conversion-heading { font-size: 13px; }
  .conversion-plan { padding: 9px; }
  .conversion-plan .conversion-step { margin-bottom: 5px; }
  .conversion-step { font-size: clamp(9px, 1.8vw, 12px); }
  .conversion-result .conversion-step { font-size: clamp(12px, 2.2vw, 16px); }
  .conversion-result-note { font-size: clamp(10px, 1.8vw, 13px); }
}

/* Manufacturing: an uninterrupted photograph and one quiet connection line. */
#manufacturing-work { scroll-margin-top: 100px; }
.factory-composition { align-self: center; }
.factory-composition-canvas { overflow: hidden; background: #edf0e7; }
.factory-photo-panel { aspect-ratio: 1.85; overflow: hidden; }
.factory-photo-panel img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.factory-connection-strip { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 44px); padding: clamp(28px, 3vw, 44px) clamp(24px, 3.2vw, 46px); color: #40553e; }
.factory-connection-end { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: clamp(11px, 1vw, 14px); line-height: 1.5; }
.factory-connection-end svg { width: 27px; height: 27px; flex-shrink: 0; stroke: #5f7656; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.factory-connection-line { display: block; flex: 1; min-width: 28px; max-width: 160px; height: 24px; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.factory-line-base { stroke: #a9b89d; }
.factory-line-signal { stroke: #67834e; stroke-width: 2.4; stroke-dasharray: 2 22; }
.factory-composition figcaption { margin-top: 14px; color: #bdcabc; font-size: 12px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .factory-story[data-home-motion="done"] .factory-line-signal { animation: factory-flow 2400ms ease-out both; }
  @keyframes factory-flow { from { stroke-dashoffset: 72; opacity: .2; } to { stroke-dashoffset: 0; opacity: 1; } }
}
@media (max-width: 850px) {
  .factory-composition { margin: 4px 24px 26px; }
  .factory-connection-strip { padding: 30px 26px; }
  .factory-connection-end { font-size: 13px; }
}
@media (max-width: 600px) {
  .factory-composition { margin-inline: 20px; }
  .factory-photo-panel { aspect-ratio: 1.55; }
  .factory-connection-strip { padding: 26px 20px; gap: 14px; }
  .factory-connection-end { flex-direction: column; align-items: flex-start; gap: 9px; font-size: 11px; }
  .factory-connection-line { max-width: 80px; }
}

/* Two service paths: one primary action each, with supporting routes below. */
.how-we-help { padding-block: clamp(56px, 6vw, 88px); }
.how-we-help-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px 60px; max-width: none; }
.how-we-help-heading h2 { max-width: 680px; }
.how-we-help-heading > p { max-width: 34ch; margin: 0 0 3px; color: #586453; font-size: 16px; line-height: 1.6; }
.how-we-help-list { gap: 24px; margin-top: 36px; }
.how-we-help .help-way,
.how-we-help .help-way:first-child,
.how-we-help .help-way + .help-way { padding: clamp(28px, 3vw, 44px); border: 1px solid #ccd5c5; background: #f6f7f0; }
.how-we-help .help-way-label { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; color: #65705e; font-size: 12px; font-weight: 500; line-height: 1.5; }
.help-way-label > span { color: #8b9a80; font-size: 11px; font-variant-numeric: tabular-nums; }
.how-we-help .help-way h3 { margin: 0; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.04em; }
.how-we-help .help-way-description { flex: 1; max-width: 48ch; margin: 20px 0 28px; color: #52604f; font-size: 17px; line-height: 1.65; }
.how-we-help .help-way-actions { display: block; min-height: 0; margin: 0; }
.how-we-help .help-way-actions .button { min-height: 48px; padding: 13px 20px; gap: 22px; font-size: 15px; }
.help-way-related { display: grid; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #d4dccd; }
.how-we-help .help-detail-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; max-width: max-content; margin: 0; color: #40583c; font-size: 14px; line-height: 1.5; text-decoration-color: #91a185; text-underline-offset: 4px; }
.how-we-help .help-way-offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; padding: 0; border: 0; color: #6d7665; font-size: 13px; line-height: 1.7; }
.how-we-help .help-way-offer a { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; color: #40583c; font-size: 14px; font-weight: 400; line-height: 1.5; white-space: normal; text-decoration-color: #91a185; text-underline-offset: 4px; }
.how-we-help .help-detail-link:hover,
.how-we-help .help-way-offer a:hover { text-decoration-color: currentColor; }
@media (max-width: 1023px) {
  .how-we-help-heading { align-items: start; flex-direction: column; gap: 18px; }
  .how-we-help-heading > p { max-width: 48ch; }
  .how-we-help .help-way-description { font-size: 16px; }
  .how-we-help .help-way-offer { align-items: start; flex-direction: column; gap: 0; }
}
@media (max-width: 767px) {
  .how-we-help-list { gap: 20px; margin-top: 28px; }
  .how-we-help .help-way,
  .how-we-help .help-way:first-child,
  .how-we-help .help-way + .help-way { padding: 26px 24px; }
  .how-we-help .help-way-label { margin-bottom: 22px; }
  .how-we-help .help-way h3 { font-size: 29px; }
  .how-we-help .help-way-description { margin-block: 17px 24px; }
  .help-way-related { margin-top: 26px; padding-top: 18px; gap: 12px; }
}
@media (max-width: 380px) {
  .how-we-help .help-way,
  .how-we-help .help-way:first-child,
  .how-we-help .help-way + .help-way { padding-inline: 20px; }
  .how-we-help .help-way h3 { font-size: 27px; }
}
