/* Build 1.084: a warm, commercial front door around the original workshop. */
.foundry-hero {
  --foundry-ink: #202a24; --foundry-paper: #faf6ec;
  --foundry-mint: #78e8a7; --foundry-amber: #ffc65a;
  --foundry-cyan: #57dfff; --foundry-coral: #ff766d;
  display: block; min-height: 0; padding: 118px 0 52px;
  background: var(--foundry-paper); color: var(--foundry-ink); overflow: hidden;
}
.foundry-layout { width: min(1280px, calc(100% - 80px)); margin: auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 44px; align-items: center; }
.foundry-intro { padding-bottom: 30px; }
.foundry-hero h1 { color: #202a24; font: 700 clamp(42px, 4.4vw, 64px)/1.02 "Outfit", sans-serif; letter-spacing: -.045em; text-align: left; margin: 0; max-width: 510px; }
.foundry-hero h1 em { color: #174f3b; font-style: normal; }
.foundry-lead { max-width: 440px; margin: 25px 0 28px; font-size: 18px; line-height: 1.6; color: #586259; }
.foundry-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.foundry-primary { min-height: 52px; display: inline-flex; gap: 20px; align-items: center; justify-content: center; background: #174f3b; color: #fff; padding: 14px 20px; border-radius: 4px; font-size: 15px; font-weight: 600; }
.foundry-primary:hover { background: #246b50; }
.foundry-secondary { color: #174f3b; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
.foundry-signoff { margin-top: 28px; color: #586259; font-size: 13px; }
.foundry-scene-window { position: relative; aspect-ratio: 1162 / 836; overflow: hidden; border: 1px solid #202a24; border-radius: 4px; background: #079ee6; }
.foundry-artboard { position: absolute; width: 143.889845%; height: 112.559809%; left: -43.889845%; top: -12.559809%; background: center / 100% 100% no-repeat url("/assets/foundry/playable-foundry-day-1.056.jpg"); }
html[data-foundry-scene="night"] .foundry-artboard { background-image: url("/assets/foundry/playable-foundry-night-1.056.jpg"); }
.foundry-scene-caption { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-top: 14px; color: #586259; font-size: 12px; line-height: 1.5; }
.foundry-scene-status { white-space: nowrap; font: 600 11px/1.6 ui-monospace, monospace; text-transform: uppercase; }
.foundry-scene-status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #d99b3b; margin-right: 7px; }
.scene-night, html[data-foundry-scene="night"] .scene-day { display: none; }
html[data-foundry-scene="night"] .scene-night { display: inline; }
.foundry-room-directory { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 10px; }
.foundry-room-directory a { color: #174f3b; padding: 10px 0; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.has-foundry-hero .navbar, .has-foundry-hero .navbar.scrolled { padding: 17px 0; background: #faf6ec; border-bottom: 1px solid #d9d1c0; backdrop-filter: none; }
.has-foundry-hero .navbar-inner { max-width: 1328px; padding: 0 40px; }
.has-foundry-hero .navbar-brand { color: #202a24; font-size: 21px; }
.has-foundry-hero .navbar-brand span { color: #174f3b; }
.has-foundry-hero .navbar-links { gap: 24px; }
.has-foundry-hero .navbar-links a { color: #586259; font-size: 14px; }
.has-foundry-hero .navbar-links a:hover { color: #174f3b; }
.has-foundry-hero .navbar-links .navbar-websites-link { color: #174f3b; font-weight: 700; }
.has-foundry-hero .mobile-toggle { color: #202a24; }
.foundry-primary:focus-visible, .foundry-secondary:focus-visible, .foundry-room-directory a:focus-visible, .navbar a:focus-visible { outline: 3px solid #b97722; outline-offset: 4px; }
@supports (background-image: image-set(url("test.avif") type("image/avif"))) {
  .foundry-artboard {
    background-image: image-set(
      url("/assets/foundry/playable-foundry-day-1.056.avif") type("image/avif"),
      url("/assets/foundry/playable-foundry-day-1.056.jpg") type("image/jpeg")
    );
  }

  html[data-foundry-scene="night"] .foundry-artboard {
    background-image: image-set(
      url("/assets/foundry/playable-foundry-night-1.056.avif") type("image/avif"),
      url("/assets/foundry/playable-foundry-night-1.056.jpg") type("image/jpeg")
    );
  }
}

.foundry-room,
.foundry-artboard-cta {
  position: absolute;
  z-index: 3;
  display: block;
  color: inherit;
  border: 0;
  border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
}

.foundry-room {
  z-index: 6;
  top: 49.4%;
  height: 21.9%;
  overflow: hidden;
  outline: 0;
  transition: box-shadow 140ms ease, background-color 140ms ease, transform 90ms ease;
}

.foundry-room--apps { left: 31.8%; width: 13.2%; --room-accent: var(--foundry-mint); }
.foundry-room--stories { left: 45%; width: 13.8%; --room-accent: var(--foundry-amber); }
.foundry-room--websites { left: 58.8%; width: 14.5%; --room-accent: var(--foundry-cyan); }
.foundry-room--entertainment { left: 73.3%; width: 17.5%; --room-accent: var(--foundry-coral); }

.foundry-room:hover,
.foundry-room:focus-visible,
.foundry-room.is-activating {
  background: color-mix(in srgb, var(--room-accent) 11%, transparent);
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--room-accent) 80%, white),
    inset 0 0 32px color-mix(in srgb, var(--room-accent) 30%, transparent),
    0 0 24px color-mix(in srgb, var(--room-accent) 42%, transparent);
}

.foundry-room:focus-visible {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px #07111a,
    inset 0 0 32px color-mix(in srgb, var(--room-accent) 34%, transparent);
}

.foundry-room:active,
.foundry-room.is-activating {
  transform: translateY(2px);
}

.foundry-room__effect {
  position: absolute;
  left: 41%;
  top: 34%;
  width: 24%;
  height: 49%;
  pointer-events: none;
}

.foundry-room--apps .foundry-room__effect::before {
  content: "";
  position: absolute;
  left: 15%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: #dcffe9;
  box-shadow: 11px 0 #9effbd, 22px 0 #4cff8c;
  opacity: 0;
}

.foundry-room--apps:hover .foundry-room__effect::before,
.foundry-room--apps:focus-visible .foundry-room__effect::before,
.foundry-room--apps.is-activating .foundry-room__effect::before {
  animation: foundry-compile 900ms steps(6, end) 1;
}

.foundry-room--stories .foundry-room__effect::before {
  content: "";
  position: absolute;
  left: 30%;
  top: 24%;
  width: 34%;
  height: 42%;
  border: 1px solid #fff4c7;
  background: #fff0bd;
  opacity: 0;
  transform-origin: left center;
}

.foundry-room--stories:hover .foundry-room__effect::before,
.foundry-room--stories:focus-visible .foundry-room__effect::before,
.foundry-room--stories.is-activating .foundry-room__effect::before {
  animation: foundry-page 1050ms steps(6, end) 1;
}

.foundry-room--websites .foundry-room__effect::before {
  content: "";
  position: absolute;
  inset: 20% 16% 22%;
  border: 2px solid #b9f4ff;
  background:
    linear-gradient(90deg, transparent 46%, #b9f4ff 47% 53%, transparent 54%),
    linear-gradient(transparent 46%, #b9f4ff 47% 53%, transparent 54%);
  opacity: 0;
  transform: scale(.55);
}

.foundry-room--websites:hover .foundry-room__effect::before,
.foundry-room--websites:focus-visible .foundry-room__effect::before,
.foundry-room--websites.is-activating .foundry-room__effect::before {
  animation: foundry-publish 900ms steps(5, end) 1;
}

.foundry-room--entertainment .foundry-room__effect::before,
.foundry-room--entertainment .foundry-room__effect::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48%;
  background: linear-gradient(90deg, #701f28cc, #ff766d99);
  opacity: 0;
}

.foundry-room--entertainment .foundry-room__effect::before { left: 0; transform-origin: left; }
.foundry-room--entertainment .foundry-room__effect::after { right: 0; transform-origin: right; }

.foundry-room--entertainment:hover .foundry-room__effect::before,
.foundry-room--entertainment:hover .foundry-room__effect::after,
.foundry-room--entertainment:focus-visible .foundry-room__effect::before,
.foundry-room--entertainment:focus-visible .foundry-room__effect::after,
.foundry-room--entertainment.is-activating .foundry-room__effect::before,
.foundry-room--entertainment.is-activating .foundry-room__effect::after {
  animation: foundry-curtain 960ms steps(6, end) 1;
}

.foundry-artboard-cta {
  display: none;
  left: 2.45%;
  top: 45.1%;
  width: 16.2%;
  height: 6.6%;
  outline: 0;
}

.foundry-artboard-cta:hover,
.foundry-artboard-cta:focus-visible {
  background: #8dffc72b;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #07111a, 0 0 28px #63f4acaa;
}

.foundry-mobile-interface { display: none; }

.foundry-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html[data-foundry-hitboxes="true"] .foundry-room,
html[data-foundry-hitboxes="true"] .foundry-artboard-cta {
  background: #ff2b5550;
  box-shadow: inset 0 0 0 3px #ffdf2b;
}

html[data-foundry-hitboxes="true"] .foundry-room::after,
html[data-foundry-hitboxes="true"] .foundry-artboard-cta::after {
  content: attr(data-debug-label);
  position: absolute;
  inset: 4px auto auto 4px;
  padding: 3px 5px;
  color: #07111a;
  background: #ffdf2b;
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.foundry-transition-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-position: center;
  background-size: 100% 100%;
  opacity: 0;
  transition: opacity 760ms ease;
}

.foundry-transition-layer.is-visible { opacity: 1; }

@keyframes foundry-compile {
  0% { opacity: 0; transform: translateX(-12px); }
  20%, 75% { opacity: 1; }
  100% { opacity: 0; transform: translateX(24px); }
}

@keyframes foundry-page {
  0%, 100% { opacity: 0; transform: perspective(70px) rotateY(0); }
  18% { opacity: .9; }
  70% { opacity: .9; transform: perspective(70px) rotateY(-150deg); }
}

@keyframes foundry-publish {
  0% { opacity: 0; transform: scale(.55) translateY(8px); }
  25%, 70% { opacity: .95; }
  100% { opacity: 0; transform: scale(1) translateY(-14px); }
}

@keyframes foundry-curtain {
  0% { opacity: 0; transform: scaleX(1); }
  18%, 70% { opacity: .72; }
  100% { opacity: 0; transform: scaleX(.18); }
}

@media (max-width: 1000px) {
  .foundry-layout { width: calc(100% - 48px); gap: 28px; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
  .has-foundry-hero .navbar-inner { padding-inline: 24px; }
  .has-foundry-hero .navbar-links { gap: 16px; }
  .foundry-hero h1 { font-size: 46px; }
}
@media (max-width: 850px) {
  .foundry-hero { padding: 108px 0 34px; }
  .foundry-layout { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 30px; max-width: 620px; }
  .foundry-intro { padding: 0; }
  .foundry-hero h1 { max-width: 560px; font-size: clamp(38px, 7.5vw, 56px); }
  .foundry-lead { max-width: 520px; font-size: 16px; line-height: 1.55; margin: 20px 0 24px; }
  .foundry-signoff { margin-top: 20px; }
  .has-foundry-hero .navbar-inner { padding-inline: 20px; }
  .has-foundry-hero .navbar-brand { font-size: 19px; }
  .has-foundry-hero .navbar-links.open { background: #faf6ec; border-bottom: 1px solid #d9d1c0; }
}
.website-builds { background: #fffdf7; color: #202a24; border-top: 1px solid #d9d1c0; padding-block: 76px; }
.website-builds .section-label { color: #6f766c; letter-spacing: .14em; }
.website-builds .section-title { color: #174f3b; font-size: clamp(34px, 3.5vw, 48px); line-height: 1.06; max-width: 660px; }
.website-builds-intro { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 72px; align-items: center; }
.website-copy { color: #586259; font-size: 18px; line-height: 1.65; max-width: 630px; }
.website-builds .btn-primary { background: #174f3b; color: #fff; border: 0; border-radius: 4px; min-height: 52px; padding: 15px 22px; font: 600 15px/1.4 "Outfit", sans-serif; }
.website-builds .btn-secondary { color: #174f3b; padding: 15px 0; border: 0; text-decoration: underline; text-underline-offset: 5px; font-size: 15px; background: transparent; }
.website-pain-points { border-left: 2px solid #d99b3b; padding: 12px 0 12px 30px; margin: 0; }
.website-pain-points h3 { color: #202a24; font-size: 25px; }
.website-pain-points p { color: #586259; margin-top: 14px; line-height: 1.55; }
.website-pain-points .website-pain-close { color: #202a24; font-size: 15px; font-weight: 500; }
.website-pain-points a { display: inline-block; margin-top: 18px; color: #174f3b; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.website-gallery { margin-top: 64px; padding-top: 42px; border-top: 1px solid #d9d1c0; scroll-margin-top: 82px; }
.website-gallery .section-title { font-size: 30px; color: #202a24; }
.website-gallery-copy { color: #586259; }
.website-gallery-card { background: transparent; border-color: #d9d1c0; border-radius: 5px; }
.website-gallery-meta h3 { color: #202a24; }
.website-gallery-meta a { color: #174f3b; }
.website-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; gap: 28px; }
.website-step { min-height: 0; padding: 24px 0 0; border: 0; border-top: 1px solid #d9d1c0; border-radius: 0; background: transparent; }
.website-step::before { display: none; }
.website-step-number { display: block; width: auto; height: auto; margin-bottom: 18px; border: 0; background: none; color: #9a732e; font: 500 12px/1.5 ui-monospace, monospace; }
.website-step h3 { color: #202a24; font-size: 21px; line-height: 1.2; }
.website-step p { color: #586259; }
.website-partner { max-width: 900px; margin-top: 64px; }
.website-partner h3 { color: #174f3b; }
.website-partner p { color: #586259; }
.website-monthly a { color: #174f3b; text-decoration: underline; text-underline-offset: 3px; }
.website-support-grid { margin-top: 38px; border-top: 1px solid #d9d1c0; gap: 44px; }
.website-ownership, .website-included { padding: 30px 0 0; border: 0; border-radius: 0; background: transparent; }
.website-ownership h3, .website-included h3 { color: #202a24; font-size: 22px; }
.website-ownership p, .website-included li { color: #586259; }
.website-included li::before { background: #9a732e; box-shadow: none; width: 4px; height: 4px; }
@media (max-width: 850px) {
  .website-builds { padding-block: 48px; }
  .website-builds-intro { grid-template-columns: 1fr; gap: 32px; }
  .website-copy { font-size: 16px; }
  .website-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .website-support-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .website-steps { grid-template-columns: 1fr; }
  .foundry-scene-caption { font-size: 11px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .foundry-room, .foundry-transition-layer { transition-duration: 0ms !important; }
  .foundry-room__effect, .foundry-room__effect::before, .foundry-room__effect::after { animation: none !important; }
}
