/* Four manufacturing disciplines follow the reference's merge / draw / expand sequence. */
.factory-section {
  --factory-paper: var(--paper);
  --factory-ink: var(--ink);
  --factory-green: var(--accent);
  position: relative;
  background: var(--factory-paper);
  color: var(--factory-ink);
  isolation: isolate;
}
.factory-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
}
.factory-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  align-items: center;
  width: min(1290px, 89vw);
  gap: clamp(28px, 4vw, 65px);
  padding: clamp(70px, 10vh, 100px) 0;
}
.factory-diagram {
  position: relative;
  width: min(100%, 70svh);
  aspect-ratio: 1;
  justify-self: center;
  isolation: isolate;
}
.factory-circle {
  --circle-x: -44%;
  --circle-y: -44%;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) translate(var(--circle-x), var(--circle-y));
  background: rgba(104, 116, 108, .12);
  border: 1px solid rgba(53, 93, 80, .18);
}
.factory-circle:nth-child(2) { --circle-x: 44%; }
.factory-circle:nth-child(3) { --circle-y: 44%; }
.factory-circle:nth-child(4) { --circle-x: 44%; --circle-y: 44%; }
.factory-circle-media {
  position: absolute;
  inset: 0;
  background: var(--factory-ink);
  opacity: var(--factory-photo-opacity, 1);
  pointer-events: none;
}
.factory-circle-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.factory-circle-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 31, 26, .16), rgba(20, 31, 26, .46) 50%, rgba(20, 31, 26, .24));
}
.factory-circle-label {
  position: relative;
  z-index: 2;
  color: var(--factory-paper);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(20px, 2.8vw, 42px);
  line-height: 1.1;
  letter-spacing: -.06em;
}
.factory-circle-label { display: grid; place-items: center; width: 96%; text-align: center; }
.factory-label-initial, .factory-label-result { grid-area: 1 / 1; }
.factory-label-result { opacity: 0; font-size: .92em; line-height: 1.12; letter-spacing: -.05em; }
.factory-label-result > span { display: block; }
.factory-circuit {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--factory-green);
  stroke-width: 1;
  opacity: 0;
}
.factory-copy { position: relative; z-index: 1; }
.factory-copy h2 {
  margin: 0 0 30px;
  font-size: clamp(36px, 4.5vw, 66px);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 500;
}
.factory-copy p {
  max-width: 330px;
  margin: 0 0 34px;
  font-size: 16px;
  line-height: 1.5;
}
.factory-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 52px;
  padding: 15px 23px;
  border-radius: 5px;
  background: var(--factory-green);
  color: var(--factory-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.factory-cta:hover { background: var(--accent-hover); }
.factory-cta:focus-visible { outline: 2px solid var(--factory-ink); outline-offset: 5px; }
.factory-cta span { font-size: 24px; line-height: .6; }
.factory-description {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.factory-expansion { display: none; }
.factory-section.is-motion-ready { height: calc(100svh + var(--factory-travel, 3000px)); }
.is-motion-ready .factory-stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.is-motion-ready .factory-circle { will-change: transform; }
.is-motion-ready .factory-circuit [pathLength] { stroke-dasharray: 1; stroke-dashoffset: var(--factory-dash, 1); }
.factory-reveal-track, .factory-reveal-stage { display: contents; }
.factory-reveal-track.is-active {
  display: block;
  position: relative;
  z-index: 3;
  margin-top: calc(-100svh - var(--factory-reveal-travel));
  /* The transparent sticky scene overlaps production before the mask opens.
     Only its actual panels should intercept input, not this empty wrapper. */
  pointer-events: none;
}
.factory-reveal-track.is-active::after { content: ''; display: block; height: calc(var(--factory-reveal-travel) + var(--factory-gallery-travel, 0px) + var(--factory-handoff-travel, 0px)); }
.is-active > .factory-reveal-stage {
  display: block;
  position: sticky;
  top: 0;
  min-height: 100svh;
  overflow: clip;
}
.is-active > .factory-reveal-stage > #furniture {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  will-change: transform;
  pointer-events: auto;
}
.is-active > .factory-reveal-stage > #about {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: max(110px, 12svh);
  border-top: 0;
  background-image: linear-gradient(#f3f0e8c9, #f3f0e8c9), var(--reference-light);
  background-size: 500px;
  will-change: transform;
  pointer-events: auto;
}
.is-active > .factory-reveal-stage > #about .reveal { opacity: 1; transform: none; transition: none; }
.is-active > .factory-reveal-stage > #about > .container {
  width: min(90%, 1440px);
  max-width: none;
  margin-left: 5%;
  margin-right: auto;
}
.factory-reveal-target {
  position: sticky;
  top: 0;
  margin-top: 0;
  background: var(--paper);
  clip-path: circle(0);
  visibility: hidden;
}
.factory-reveal-target .reveal { opacity: 1; transform: none; transition: none; }
@media (max-width: 900px) {
  .factory-layout { grid-template-columns: 1fr; width: min(640px, 88vw); gap: 18px; padding: 100px 0 70px; }
  .factory-copy { grid-row: 1; }
  .factory-copy h2 { font-size: clamp(36px, 6.4vw, 56px); max-width: 620px; margin-bottom: 22px; }
  .factory-copy p { max-width: 500px; }
  .factory-diagram { width: min(100%, 580px); justify-self: center; }
  .factory-circle-label { font-size: clamp(22px, 5vw, 42px); }
  .is-motion-ready .factory-layout { width: min(620px, 88vw); padding: 74px 0 24px; gap: 10px; }
  .is-motion-ready .factory-copy { display: grid; grid-template-columns: 1fr auto; column-gap: 22px; align-items: end; }
  .is-motion-ready .factory-copy h2 { grid-column: 1 / -1; }
  .is-motion-ready .factory-copy p { font-size: 14px; margin: 0; }
  .is-motion-ready .factory-diagram { width: min(70vw, 46svh); }
}
@media (max-width: 600px) {
  .factory-layout { width: 90vw; padding: 80px 0 60px; }
  .factory-copy h2 { font-size: clamp(32px, 8vw, 48px); }
  .factory-copy p { font-size: 15px; }
  .factory-circle-label { font-size: clamp(20px, 5.3vw, 30px); }
  .is-motion-ready .factory-layout { width: 90vw; padding: 65px 0 22px; }
  .is-motion-ready .factory-copy { display: block; }
  .is-motion-ready .factory-copy h2 { margin-bottom: 14px; }
  .is-motion-ready .factory-copy p { max-width: 330px; margin-bottom: 18px; }
  .is-motion-ready .factory-cta { min-height: 43px; padding: 10px 17px; }
  .is-motion-ready .factory-diagram { width: min(83vw, 44svh); }
}
@media (prefers-reduced-motion: reduce) {
  .factory-section.is-motion-ready { height: auto; }
  .factory-section .factory-stage { position: relative; height: auto; min-height: 100svh; }
  .factory-section .factory-expansion { display: none; }
  .factory-reveal-track.is-active { display: contents; }
  .factory-reveal-track.is-active::after { display: none; }
  .factory-reveal-target { position: relative; margin-top: 0; clip-path: none; transform: none; visibility: visible; }
}
