/* Cohesion pass — shared geometry, rhythm, depth, and motion language. */
:root {
  --jw-ink: #171715;
  --jw-ink-soft: #22221f;
  --jw-paper: #f1ede4;
  --jw-paper-deep: #e8e2d7;
  --jw-paper-bright: #f8f5ee;
  --jw-red: #f04432;
  --jw-red-dark: #c93224;
  --jw-line: rgba(23, 23, 21, .16);
  --jw-line-dark: rgba(255, 255, 255, .15);
  --radius-panel: 8px;
  --radius-browser: 10px;
  --radius-pill: 999px;
  --shadow-panel: 0 28px 70px rgba(28, 25, 20, .11), 0 3px 12px rgba(28, 25, 20, .06);
  --shadow-dark: 0 30px 80px rgba(0, 0, 0, .28), 0 4px 14px rgba(0, 0, 0, .18);
  --shadow-hover: 0 34px 84px rgba(28, 25, 20, .16), 0 8px 20px rgba(28, 25, 20, .08);
  --content-max: 1320px;
  --section-space: clamp(88px, 9vw, 144px);
  --section-space-compact: clamp(64px, 6.6vw, 104px);
  --ease-studio: cubic-bezier(.2, .74, .22, 1);
}

html {
  overflow-x: clip;
}

body {
  background: var(--jw-ink);
}

/* One consistent content measure across every chapter. */
.industries > *,
.services > *,
.work > *,
.process > *,
.packages > * {
  width: min(100%, var(--content-max));
  margin-left: auto;
  margin-right: auto;
}

.industries,
.services,
.work,
.process,
.packages,
.about,
.studio-faq,
.contact {
  scroll-margin-top: 72px;
}

.services,
.work,
.process,
.packages,
.about,
.studio-faq {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.industries {
  padding-top: var(--section-space-compact);
  padding-bottom: var(--section-space-compact);
}

/* Controls stay pill-shaped; editorial panels do not. */
.button,
.nav-cta,
.concierge-launcher,
.concierge-option,
.concierge-fallbacks a,
.project-visit,
.service-stage,
.service-outcome,
.project-label,
.project-status,
.recommended-badge,
.form-status {
  border-radius: var(--radius-pill) !important;
}

.button,
.nav-cta,
.concierge-launcher {
  transition: transform .28s var(--ease-studio), box-shadow .28s var(--ease-studio), background-color .28s ease, color .28s ease;
}

.button:hover,
.nav-cta:hover,
.concierge-launcher:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.nav-cta:focus-visible,
.text-link:focus-visible,
.industry-tile:focus-visible,
.project-visit:focus-visible,
.concierge-launcher:focus-visible,
.concierge-option:focus-visible {
  outline: 2px solid var(--jw-red);
  outline-offset: 4px;
}

/* The red pathway becomes a restrained chapter marker. */
.industries-heading,
.services > .section-heading,
.work > .section-heading,
.process > .section-heading,
.packages > .section-heading,
.studio-faq > div:first-child,
.contact-intro {
  position: relative;
}

.industries-heading::before,
.services > .section-heading::before,
.work > .section-heading::before,
.process > .section-heading::before,
.packages > .section-heading::before,
.studio-faq > div:first-child::before,
.contact-intro::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 0;
  width: 78px;
  height: 1px;
  background: linear-gradient(90deg, var(--jw-red) 0 88%, transparent 88%);
  transform-origin: left center;
  animation: jw-path-reveal .9s var(--ease-studio) both;
}

.industries-heading::after,
.work > .section-heading::after,
.process > .section-heading::after,
.packages > .section-heading::after,
.studio-faq > div:first-child::after,
.contact-intro::after {
  content: "";
  position: absolute;
  top: -31px;
  left: 68px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--jw-red);
  border-radius: 50%;
  background: currentColor;
}

.services > .section-heading::after {
  top: auto;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, var(--jw-red) 0 16%, var(--jw-line) 16% 100%);
}

@keyframes jw-path-reveal {
  from { opacity: 0; transform: scaleX(.18); }
  to { opacity: 1; transform: scaleX(1); }
}

/* Industry work reads as one art-directed editorial panel. */
.industry-grid {
  overflow: hidden;
  border: 1px solid var(--jw-line);
  border-radius: var(--radius-panel);
  background: var(--jw-paper-bright);
  box-shadow: var(--shadow-panel);
}

.industry-tile {
  border-radius: 0 !important;
  transition: background-color .35s ease, transform .35s var(--ease-studio);
}

.industry-tile:hover {
  transform: translateY(-3px);
}

.industry-tile:not(:last-child) {
  border-right-color: var(--jw-line);
}

.industry-art {
  filter: saturate(.9) contrast(1.02);
  transition: transform .65s var(--ease-studio), filter .35s ease;
}

.industry-tile:hover .industry-art {
  transform: translate3d(0, -5px, 0) scale(1.015);
  filter: saturate(1) contrast(1.04);
}

/* Clarity / Trust / Action is a compact credo, not another card grid. */
.service-principles {
  min-height: 82px;
  margin-top: 24px;
  margin-bottom: clamp(38px, 5vw, 70px);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--jw-line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, .25);
}

.service-principles p,
.service-principles p + p {
  min-height: 82px;
  padding: 18px clamp(18px, 2vw, 30px);
  border: 0;
  border-right: 1px solid var(--jw-line);
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
}

.service-principles p:last-child {
  border-right: 0;
}

.service-principles p > span {
  color: var(--jw-red-dark);
}

.service-principles p > strong {
  margin: 0;
}

.service-card,
.service-showcase,
.service-workflow,
.website-showcase,
.automation-workflow {
  border-radius: var(--radius-panel) !important;
}

.service-card {
  box-shadow: var(--shadow-panel);
  transition: transform .4s var(--ease-studio), box-shadow .4s var(--ease-studio);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.showcase-screen,
.showcase-browser,
.workflow-window,
.workflow-browser {
  border-radius: var(--radius-browser) !important;
}

/* Portfolio is the visual anchor: actual interfaces dominate the frame. */
.work {
  background:
    radial-gradient(circle at 87% 12%, rgba(240, 68, 50, .085), transparent 25%),
    linear-gradient(180deg, #181816 0%, #121210 100%);
}

.work > .section-heading {
  margin-bottom: clamp(70px, 8vw, 118px);
}

.project-grid {
  gap: clamp(104px, 11vw, 164px);
}

.project-card {
  align-items: center;
  gap: clamp(42px, 6vw, 92px);
}

.project-card + .project-card {
  position: relative;
}

.project-card + .project-card::before {
  content: "";
  position: absolute;
  top: clamp(-82px, -5.6vw, -54px);
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(240, 68, 50, .68), rgba(255, 255, 255, .11) 24%, rgba(255, 255, 255, .04));
}

.project-visual {
  min-height: clamp(560px, 49vw, 690px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-panel) !important;
  box-shadow: var(--shadow-dark);
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, .16), inset 0 -40px 90px rgba(0, 0, 0, .08);
}

.project-card .browser-mockup,
.project-browser {
  width: min(91%, 780px) !important;
  height: clamp(410px, 38vw, 520px) !important;
  overflow: hidden;
  border-radius: var(--radius-browser) !important;
  box-shadow: 0 34px 70px rgba(0, 0, 0, .36), 0 5px 18px rgba(0, 0, 0, .2) !important;
  transition: transform .65s var(--ease-studio), box-shadow .65s var(--ease-studio);
}

.project-card:hover .browser-mockup,
.project-card:hover .project-browser {
  transform: translate3d(0, -6px, 0) rotateX(.7deg);
  box-shadow: 0 42px 86px rgba(0, 0, 0, .42), 0 8px 22px rgba(0, 0, 0, .24) !important;
}

.project-card iframe,
.project-card .project-screen,
.project-card .browser-screen,
.project-card picture,
.project-card img {
  border-radius: 0 !important;
}

.project-action-panel {
  border-radius: var(--radius-panel) !important;
  color: #1f2527;
  border-color: rgba(255, 255, 255, .72) !important;
  background: rgba(248, 245, 238, .985) !important;
  box-shadow: 0 28px 58px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px) saturate(.88);
  -webkit-backdrop-filter: blur(18px) saturate(.88);
}

.project-restaurant .project-action-panel {
  color: #40221d;
  background: rgba(250, 239, 220, .985) !important;
}

.demo-note {
  margin-top: clamp(68px, 8vw, 112px);
  padding-top: 22px;
  border-top: 1px solid var(--jw-line-dark);
}

/* Optional automation becomes a quieter split chapter. */
.automation {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .34), transparent 48%),
    var(--jw-paper-deep);
}

.automation::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(24px, 6vw, 96px);
  width: min(180px, 22vw);
  height: 2px;
  background: var(--jw-red);
}

.automation-options {
  border-top-color: var(--jw-line);
}

.automation-options li {
  transition: padding-left .3s var(--ease-studio), background-color .3s ease;
}

.automation-options li:hover {
  padding-left: 10px;
  background: rgba(255, 255, 255, .18);
}

/* Process is a connected pathway, replacing another boxed four-up grid. */
.process-grid {
  position: relative;
  gap: clamp(20px, 3vw, 48px);
  border: 0 !important;
  padding-top: 34px;
}

.process-grid::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 55px;
  left: 21px;
  right: 21px;
  height: 1px;
  background: linear-gradient(90deg, var(--jw-red), rgba(240, 68, 50, .72) 18%, rgba(255, 255, 255, .2) 62%, rgba(255, 255, 255, .08));
}

.process-grid li,
.process-grid li:nth-child(n) {
  position: relative;
  z-index: 1;
  min-height: 220px;
  padding: 72px 14px 18px 0;
  border: 0 !important;
  background: transparent;
}

.process-grid li > span {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--jw-red);
  border-radius: 50%;
  background: var(--jw-ink);
  color: #fff;
  box-shadow: 0 0 0 8px var(--jw-ink);
}

.process-grid li:first-child > span {
  background: var(--jw-red);
}

/* Pricing keeps its information while sharing one restrained panel system. */
.package-grid,
.care-plan-grid {
  gap: 16px;
  border: 0 !important;
  background: transparent;
}

.package-card,
.care-plan-card {
  overflow: hidden;
  border: 1px solid var(--jw-line) !important;
  border-radius: var(--radius-panel) !important;
  background: rgba(255, 255, 255, .31);
  box-shadow: 0 18px 50px rgba(28, 25, 20, .075);
  transition: transform .35s var(--ease-studio), box-shadow .35s var(--ease-studio);
}

.package-card:hover,
.care-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-panel);
}

.package-card.featured,
.care-plan-card.featured,
.care-plan-card.recommended {
  border-color: rgba(240, 68, 50, .58) !important;
  box-shadow: inset 0 2px var(--jw-red), 0 22px 60px rgba(28, 25, 20, .1);
}

.small-update-definition,
.support-strip {
  overflow: hidden;
  border: 1px solid var(--jw-line);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, .2);
}

.small-update-definition p,
.support-strip p {
  border-color: var(--jw-line) !important;
}

/* Supporting sections are calmer so the hero and portfolio carry the drama. */
.portrait,
.contact-form,
.concierge-panel {
  overflow: hidden;
  border-radius: var(--radius-panel) !important;
  box-shadow: var(--shadow-panel);
}

.about {
  gap: clamp(48px, 8vw, 118px);
}

.portrait img {
  transition: transform 1.1s var(--ease-studio), filter .5s ease;
}

.portrait:hover img {
  transform: scale(1.018);
}

.faq-list details {
  border-color: var(--jw-line);
}

.faq-list summary {
  transition: color .25s ease, padding-left .3s var(--ease-studio);
}

.faq-list summary:hover {
  padding-left: 8px;
  color: var(--jw-red-dark);
}

.contact-form {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .045);
  box-shadow: var(--shadow-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border-radius: 0;
}

/* One reveal language across authored and generated sections. */
.reveal,
.service-card,
.project-card,
.package-card,
.care-plan-card {
  transition-timing-function: var(--ease-studio) !important;
}

@media (max-width: 980px) {
  :root {
    --section-space: clamp(74px, 10vw, 104px);
  }

  .project-visual {
    min-height: 560px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid::before {
    display: none;
  }

  .process-grid li,
  .process-grid li:nth-child(n) {
    min-height: 190px;
    padding-top: 66px;
    border-top: 1px solid var(--jw-line-dark) !important;
  }
}

@media (max-width: 720px) {
  :root {
    --radius-panel: 6px;
    --radius-browser: 8px;
    --section-space: 76px;
    --section-space-compact: 64px;
  }

  .industries-heading::before,
  .services > .section-heading::before,
  .work > .section-heading::before,
  .process > .section-heading::before,
  .packages > .section-heading::before,
  .studio-faq > div:first-child::before,
  .contact-intro::before {
    top: -21px;
    width: 58px;
  }

  .industries-heading::after,
  .work > .section-heading::after,
  .process > .section-heading::after,
  .packages > .section-heading::after,
  .studio-faq > div:first-child::after,
  .contact-intro::after {
    top: -24px;
    left: 49px;
  }

  .industry-grid {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .industry-tile {
    overflow: hidden;
    border: 1px solid var(--jw-line) !important;
    border-radius: var(--radius-panel) !important;
    box-shadow: 0 16px 38px rgba(28, 25, 20, .08);
  }

  .industry-tile:hover,
  .industry-tile:hover .industry-art {
    transform: none;
  }

  .service-principles {
    display: block;
    margin-top: 16px;
  }

  .service-principles p,
  .service-principles p + p {
    min-height: 0;
    padding: 15px 17px;
    border-right: 0;
    border-bottom: 1px solid var(--jw-line);
    grid-template-columns: auto auto 1fr;
  }

  .service-principles p:last-child {
    border-bottom: 0;
  }

  .service-principles p > strong {
    grid-column: auto;
  }

  .work > .section-heading {
    margin-bottom: 62px;
  }

  .project-grid {
    gap: 94px;
  }

  .project-card {
    gap: 32px;
  }

  .project-card + .project-card::before {
    top: -48px;
  }

  .project-visual {
    min-height: 430px;
  }

  .project-card .browser-mockup,
  .project-browser {
    width: 92% !important;
    height: 310px !important;
    transform: none !important;
  }

  .project-action-panel {
    padding: 14px !important;
  }

  .automation-options li:hover,
  .faq-list summary:hover {
    padding-left: 0;
  }

  .process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 18px;
  }

  .process-grid::before {
    display: block;
    top: 22px;
    bottom: 42px;
    left: 18px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--jw-red), rgba(240, 68, 50, .45) 55%, rgba(255, 255, 255, .08));
  }

  .process-grid li,
  .process-grid li:nth-child(n) {
    min-height: 0;
    padding: 0 0 36px 58px;
    border: 0 !important;
  }

  .process-grid li > span {
    top: 0;
    width: 36px;
    height: 36px;
    box-shadow: 0 0 0 6px var(--jw-ink);
  }

  .package-grid,
  .care-plan-grid {
    gap: 12px;
  }

  .small-update-definition,
  .support-strip {
    background: transparent;
  }

  .about {
    gap: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .industries-heading::before,
  .services > .section-heading::before,
  .work > .section-heading::before,
  .process > .section-heading::before,
  .packages > .section-heading::before,
  .studio-faq > div:first-child::before,
  .contact-intro::before {
    animation: none !important;
  }

  .industry-tile,
  .industry-art,
  .service-card,
  .project-card .browser-mockup,
  .project-card .project-browser,
  .package-card,
  .care-plan-card,
  .portrait img,
  .button,
  .nav-cta,
  .concierge-launcher,
  .automation-options li,
  .faq-list summary {
    transition: none !important;
    transform: none !important;
  }
}
