:root {
  --night: #07111d;
  --night-soft: #0c1724;
  --graphite: #111820;
  --ink: #0a111b;
  --muted: #667482;
  --steel: #7b9bb5;
  --steel-light: #c4d3df;
  --line: #d8e0e6;
  --paper: #ffffff;
  --orange: #e96a2c;
  --shell: min(92vw, 1720px);
  --display: "Bodoni MT", Didot, "Iowan Old Style", Georgia, serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--night); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.skip-link { position: fixed; z-index: 200; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-180%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.page-shell { width: var(--shell); margin-inline: auto; }
.section-light { background: var(--paper); }
.section-dark { background: var(--night); color: var(--paper); }

.site-header { position: absolute; z-index: 80; top: 0; left: 50%; width: var(--shell); height: 7.5rem; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; color: white; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 740; letter-spacing: -.02em; }
.brand img { border-radius: 50%; filter: grayscale(1) brightness(0) invert(1); opacity: .95; }
.menu-toggle { width: 4.5rem; height: 4.5rem; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; background: rgba(7,17,29,.22); display: grid; place-content: center; gap: .35rem; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.menu-toggle:hover { background: var(--paper); color: var(--night); transform: rotate(8deg); }
.menu-toggle span { display: block; width: 1.25rem; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu-overlay { position: fixed; z-index: 70; inset: 0; color: var(--paper); }
.menu-overlay[hidden] { display: none; }
.menu-backdrop { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(5,12,20,.97) 0 58%, rgba(8,18,29,.9)), url("assets/cta-craft.png") center / cover no-repeat; }
.menu-inner { position: relative; width: var(--shell); height: 100%; margin: auto; padding: 10rem 0 4rem; display: grid; grid-template-columns: 1fr 1.35fr; grid-template-rows: 1fr auto; gap: 3rem 8vw; align-items: start; }
.menu-note { max-width: 25rem; margin: 0; color: var(--steel-light); font-family: var(--display); font-size: clamp(1.6rem, 2.2vw, 2.8rem); line-height: 1.1; }
.menu-inner nav { display: flex; flex-direction: column; }
.menu-inner nav a { display: flex; align-items: baseline; gap: 1.25rem; padding: .35rem 0; font-family: var(--display); font-size: clamp(3rem, 6vw, 7rem); line-height: .98; transition: color .2s, transform .2s; }
.menu-inner nav a:hover, .menu-inner nav a:focus-visible { color: var(--steel-light); transform: translateX(.75rem); }
.menu-inner nav span { color: var(--steel); font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; }
.menu-contact { align-self: end; display: flex; gap: 1.5rem; align-items: center; color: var(--steel-light); }
.menu-contact a { text-decoration: underline; text-underline-offset: .3em; }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: var(--paper); background: var(--night); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { position: relative; z-index: 2; width: var(--shell); min-height: 100svh; margin: auto; padding: clamp(9rem, 15vh, 13rem) 0 5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero h1 { max-width: min(56rem, 58vw); margin: 0; font-family: var(--display); font-size: clamp(4.2rem, 7.2vw, 9rem); font-weight: 400; line-height: .88; letter-spacing: -.055em; text-wrap: balance; }
.hero h1 span { display: block; }
.hero-copy > p { max-width: 39rem; margin: 2rem 0 0; color: #d1d8df; font-size: clamp(1rem, 1.15vw, 1.25rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.15rem; }
.button { min-height: 3.75rem; padding: 0 1.8rem; display: inline-flex; align-items: center; justify-content: center; gap: 2.2rem; border: 1px solid rgba(255,255,255,.58); font-weight: 690; transition: background .25s, color .25s, transform .25s; }
.button:hover { transform: translateY(-3px); }
.button-light { background: var(--paper); color: var(--night); border-color: var(--paper); }
.button-light:hover { background: var(--steel-light); border-color: var(--steel-light); }
.button-ghost { color: var(--paper); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.scroll-cue { position: absolute; z-index: 2; right: 4vw; bottom: 3rem; display: flex; align-items: center; gap: .75rem; color: #bdc8d1; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 3.5rem; background: currentColor; animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(.45); transform-origin: top; } 50% { transform: scaleY(1); } }

.section-index { margin: 0 0 3rem; color: var(--steel); font-size: .72rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.manifesto { padding: clamp(7rem, 11vw, 12rem) 0; }
.manifesto-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 7vw; align-items: end; }
.manifesto h2 { margin: 0; max-width: 65rem; font-family: var(--display); font-size: clamp(4rem, 7.8vw, 9rem); font-weight: 400; line-height: .91; letter-spacing: -.05em; }
.manifesto-copy { padding-bottom: .7rem; color: var(--muted); font-size: 1.03rem; line-height: 1.65; }
.manifesto-copy .statement { color: var(--ink); font-family: var(--display); font-size: clamp(1.8rem, 2.5vw, 3.25rem); line-height: 1.12; }
.system-line { margin-top: clamp(5rem, 9vw, 9rem); padding-top: 2.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto auto; gap: 3rem; align-items: center; }
.tool-list { display: flex; flex-wrap: wrap; gap: .65rem; }
.tool-list span { padding: .65rem .9rem; border: 1px solid var(--line); font-size: .78rem; }
.system-arrow { color: var(--steel); font-family: var(--display); font-size: 4rem; }
.system-core { min-width: 18rem; display: grid; grid-template-columns: auto 1fr; gap: .15rem .8rem; align-items: center; }
.system-core img { grid-row: 1 / 3; border-radius: 50%; }
.system-core strong { font-family: var(--display); font-size: 1.5rem; font-weight: 400; }
.system-core small { color: var(--muted); }

.projects { position: relative; overflow: hidden; padding: clamp(6rem, 9vw, 10rem) 0 clamp(8rem, 13vw, 14rem); }
.projects-word { position: absolute; top: -2vw; left: 8vw; color: #e7edf2; font-family: var(--display); font-size: clamp(10rem, 22vw, 26rem); line-height: .9; letter-spacing: -.07em; pointer-events: none; }
.projects-intro { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.2vw; padding-top: clamp(10rem, 17vw, 20rem); }
.projects-heading { grid-column: 1 / span 4; align-self: start; max-width: 30rem; }
.projects-heading h2 { margin: 0 0 2rem; font-family: var(--display); font-size: clamp(2rem, 3.2vw, 4rem); font-weight: 400; line-height: 1.04; }
.text-link { display: inline-flex; gap: 1.25rem; align-items: center; color: #285777; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: .35rem; }
.project { min-width: 0; }
.project-bimadesk { grid-column: 6 / -1; }
.project-ava { grid-column: 1 / span 6; margin-top: 8rem; }
.project-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; color: var(--steel); font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.project-meta::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.project-media { display: block; overflow: hidden; border: 1px solid var(--steel-light); background: #eef3f6; }
.project-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.project-media:hover img { transform: scale(1.025); }
.project-caption { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: baseline; padding-top: 1.15rem; }
.project-caption h3 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3vw, 3.5rem); font-weight: 400; }
.project-caption p { margin: 0; color: var(--muted); }

.services { padding: clamp(7rem, 10vw, 11rem) 0; }
.services-layout { display: grid; grid-template-columns: 3.8fr 3fr 5.2fr; gap: 5vw; align-items: center; }
.services-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(6rem, 11vw, 13rem); font-weight: 400; line-height: .8; letter-spacing: -.06em; }
.services-heading > p:not(.section-index) { min-height: 5.5rem; max-width: 24rem; margin: 2rem 0; color: #9eabb7; font-size: 1rem; line-height: 1.6; }
.text-link-light { color: var(--paper); }
.service-visual { margin: 0; }
.service-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: #edf2f5; border: 1px solid #253443; transition: opacity .25s, transform .5s var(--ease); }
.service-visual img.is-changing { opacity: .18; transform: scale(.985); }
.service-visual figcaption { margin-top: .75rem; color: var(--steel-light); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.service-list { border-top: 1px solid #344250; }
.service-list button { width: 100%; min-height: 5.2rem; padding: 0; border: 0; border-bottom: 1px solid #344250; background: transparent; display: grid; grid-template-columns: 4rem 1fr auto; gap: 1rem; align-items: center; text-align: left; cursor: pointer; color: #7d8894; transition: color .2s, padding .2s; }
.service-list button:hover, .service-list button:focus-visible, .service-list button[aria-selected="true"] { color: var(--paper); padding-left: .5rem; }
.service-list button > span { color: var(--steel); font-family: var(--display); font-size: 2rem; }
.service-list strong { font-size: clamp(1rem, 1.25vw, 1.3rem); font-weight: 500; }
.service-list i { font-style: normal; font-size: 1.4rem; }

.method { padding: clamp(8rem, 12vw, 13rem) 0; }
.method-head { display: grid; grid-template-columns: 1.15fr .45fr; gap: 8vw; align-items: end; }
.method-head h2 { margin: 0; font-family: var(--display); font-size: clamp(4rem, 7.3vw, 8.5rem); font-weight: 400; line-height: .9; letter-spacing: -.05em; }
.method-head > p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.method-rail { position: relative; margin-top: 7rem; padding-top: 5rem; display: grid; grid-template-columns: repeat(4, 1fr); }
.method-arc { position: absolute; top: 0; left: 0; width: 100%; height: 8.5rem; overflow: visible; }
.method-arc path { fill: none; stroke: #aabfce; stroke-width: 1.1; stroke-dasharray: .012 .012; }
.method-rail article { position: relative; padding: 2.5rem 2rem 0; border-left: 1px solid var(--line); }
.method-rail article:first-of-type { border-left: 0; }
.method-rail article > span { color: var(--steel); font-family: var(--display); font-size: 3.5rem; }
.method-dot { position: absolute; top: -1.05rem; left: 50%; width: .7rem; height: .7rem; transform: translateX(-50%); background: var(--steel); border-radius: 50%; box-shadow: 0 0 0 .45rem white, 0 0 0 .5rem var(--steel-light); }
.method-rail h3 { margin: 1.25rem 0 .75rem; font-family: var(--display); font-size: 2rem; font-weight: 400; }
.method-rail p { margin: 0; color: var(--muted); line-height: 1.55; }

.closing { position: relative; min-height: 90svh; overflow: hidden; color: var(--paper); background: var(--night); }
.closing-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.closing-copy { position: relative; z-index: 1; width: var(--shell); min-height: 90svh; margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.closing h2 { max-width: min(56rem, 56vw); margin: 0 0 2.5rem; font-family: var(--display); font-size: clamp(4.2rem, 7.5vw, 9rem); font-weight: 400; line-height: .9; letter-spacing: -.055em; }
.closing-email { margin-top: 1.7rem; color: #b7c4cf; text-decoration: underline; text-underline-offset: .4em; }

.site-footer { background: #050a0f; color: var(--paper); padding: 5rem 0 1.5rem; border-top: 1px solid #31404c; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.2fr .9fr .65fr; gap: 5vw; align-items: start; }
.footer-brand img { filter: grayscale(1) brightness(0) invert(1); }
.footer-grid > p { margin: 0; max-width: 20rem; color: #8d9aa5; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: .75rem; }
.footer-contact a { text-decoration: underline; text-underline-offset: .35em; }
.footer-contact small { color: #8d9aa5; }
.footer-grid nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-grid nav a { display: flex; justify-content: space-between; gap: 2rem; }
.footer-grid nav a:hover { color: var(--steel-light); }
.footer-bottom { margin-top: 4rem; padding-top: 1.25rem; border-top: 1px solid #25313c; display: flex; justify-content: space-between; color: #71808c; font-size: .75rem; }

.reveal { opacity: 0; transform: translateY(2rem); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 2px solid var(--steel-light); outline-offset: 4px; }

@media (max-width: 1100px) {
  .manifesto-grid, .method-head { grid-template-columns: 1fr; }
  .manifesto-copy { max-width: 44rem; }
  .services-layout { grid-template-columns: 1fr 1fr; }
  .services-heading { grid-column: 1 / -1; }
  .service-visual img { aspect-ratio: 5 / 4; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --shell: min(90vw, 42rem); }
  .site-header { height: 5.7rem; }
  .brand span { font-size: .92rem; }
  .brand img { width: 34px; height: 34px; }
  .menu-toggle { width: 3.5rem; height: 3.5rem; }
  .menu-inner { padding-top: 8rem; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 2rem; }
  .menu-note { font-size: 1.35rem; }
  .menu-inner nav a { font-size: clamp(2.7rem, 14vw, 4.6rem); }
  .menu-contact { align-self: end; flex-direction: column; align-items: flex-start; gap: .6rem; }
  .hero { min-height: 50rem; }
  .hero-media { object-position: 69% center; opacity: .52; }
  .hero-copy { min-height: 50rem; padding-top: 8rem; justify-content: flex-end; padding-bottom: 5.5rem; }
  .hero h1 { max-width: 100%; font-size: clamp(3.5rem, 16vw, 5.4rem); }
  .hero-copy > p { font-size: .98rem; }
  .hero-actions { width: 100%; flex-direction: column; }
  .button { width: 100%; }
  .scroll-cue { display: none; }
  .manifesto-grid { gap: 2rem; }
  .manifesto h2, .method-head h2 { font-size: clamp(3.5rem, 15vw, 5.6rem); }
  .system-line { grid-template-columns: 1fr; gap: 1.5rem; }
  .system-arrow { transform: rotate(90deg); justify-self: start; }
  .projects-word { top: 1rem; left: 2vw; font-size: 35vw; }
  .projects-intro { grid-template-columns: 1fr; padding-top: 9rem; gap: 5rem; }
  .projects-heading, .project-bimadesk, .project-ava { grid-column: 1; margin-top: 0; }
  .project-caption { grid-template-columns: 1fr; gap: .35rem; }
  .services-layout { grid-template-columns: 1fr; }
  .services-heading { grid-column: 1; }
  .services-heading h2 { font-size: 28vw; }
  .service-visual img { aspect-ratio: 16 / 10; }
  .service-list button { grid-template-columns: 3rem 1fr auto; }
  .method-rail { padding-top: 0; grid-template-columns: 1fr; gap: 0; }
  .method-arc, .method-dot { display: none; }
  .method-rail article, .method-rail article:first-of-type { border-left: 0; border-top: 1px solid var(--line); padding: 2rem 0; }
  .closing, .closing-copy { min-height: 47rem; }
  .closing-media { object-position: 67% center; opacity: .48; }
  .closing-copy { justify-content: flex-end; padding-bottom: 4rem; }
  .closing h2 { max-width: 100%; font-size: clamp(3.5rem, 15vw, 5.4rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid nav { max-width: 15rem; }
  .footer-bottom { flex-direction: column; gap: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Complete-site editorial system — 2026-08-03
   The accepted white editorial grid is dominant on internal pages. Night blue
   is reserved for navigation, photographic transitions and the footer.
   -------------------------------------------------------------------------- */

:root {
  --header-height: 5.75rem;
  --editorial-white: #fff;
  --editorial-ink: #07111d;
  --editorial-night: #071421;
  --editorial-steel: #5f88aa;
  --editorial-steel-light: #b8cad7;
  --editorial-rule: #ced9e2;
  --editorial-muted: #61717f;
}

body.menu-open { overflow: hidden; }

.studio-header {
  position: absolute;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  color: var(--editorial-white);
}

body:not([data-page-family="home"]) .studio-header {
  position: sticky;
  top: 0;
  background: var(--editorial-night);
  border-bottom: 1px solid rgba(184, 202, 215, .2);
}

.studio-header-shell {
  width: var(--shell);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 3.25rem);
}

.studio-brand {
  display: inline-flex;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
}

.studio-brand img,
.site-footer img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  filter: none !important;
  opacity: 1 !important;
}

.studio-direct-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.2vw, 2.75rem);
  font-size: .86rem;
  font-weight: 620;
}

.studio-direct-nav a {
  position: relative;
  padding: .55rem 0;
  color: rgba(255, 255, 255, .78);
  transition: color .2s;
}

.studio-direct-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .15rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}

.studio-direct-nav a:hover,
.studio-direct-nav a:focus-visible,
.studio-direct-nav a[aria-current="page"] { color: var(--editorial-white); }
.studio-direct-nav a:hover::after,
.studio-direct-nav a:focus-visible::after,
.studio-direct-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.studio-header-cta,
.studio-index-toggle {
  min-height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  color: var(--editorial-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 0 1rem;
  font: 650 .78rem/1 var(--sans);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.studio-header-cta:hover,
.studio-header-cta:focus-visible,
.studio-index-toggle:hover,
.studio-index-toggle:focus-visible,
.studio-index-toggle[aria-expanded="true"] {
  background: var(--editorial-white);
  border-color: var(--editorial-white);
  color: var(--editorial-night);
}

.studio-index-toggle svg,
.studio-menu-close svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
}

.studio-menu {
  position: fixed;
  z-index: 90;
  inset: 0;
}

.studio-menu[hidden] { display: none; }
.studio-menu-scrim { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(4, 11, 18, .72); cursor: default; }

.studio-menu-panel {
  position: absolute;
  top: var(--header-height);
  right: 0;
  left: 0;
  max-height: calc(100svh - var(--header-height));
  overflow: auto;
  background: var(--editorial-white);
  color: var(--editorial-ink);
  border-top: 1px solid var(--editorial-rule);
  border-bottom: 1px solid var(--editorial-rule);
  animation: menuPanelIn .34s var(--ease) both;
}

@keyframes menuPanelIn {
  from { opacity: 0; transform: translateY(-.7rem); }
  to { opacity: 1; transform: translateY(0); }
}

.studio-menu-close {
  position: absolute;
  z-index: 2;
  top: 1.3rem;
  right: max(3vw, calc((100vw - min(88vw, 110rem)) / 2));
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--editorial-rule);
  background: var(--editorial-white);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.studio-menu-close:hover,
.studio-menu-close:focus-visible { background: var(--editorial-night); color: var(--editorial-white); }

.studio-menu-grid {
  width: var(--shell);
  min-height: 30rem;
  margin-inline: auto;
  padding: 4.6rem 0 3rem;
  display: grid;
  grid-template-columns: .82fr 1.3fr .9fr 1fr;
  align-items: start;
}

.studio-menu-grid > * {
  min-width: 0;
  padding: 0 clamp(1.25rem, 2.4vw, 3rem);
  border-left: 1px solid var(--editorial-rule);
}
.studio-menu-grid > *:first-child { padding-left: 0; border-left: 0; }
.studio-menu-grid > *:last-child { padding-right: 0; }

.studio-menu-label,
.footer-title {
  margin: 0 0 1.7rem;
  color: var(--editorial-steel);
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.studio-menu-primary,
.studio-menu-services { display: flex; flex-direction: column; }
.studio-menu-primary a,
.studio-menu-projects > a,
.studio-menu-contact a {
  min-height: 3.25rem;
  border-top: 1px solid var(--editorial-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 580;
}

.studio-menu-primary a:first-of-type,
.studio-menu-projects > a:first-of-type,
.studio-menu-contact a:first-of-type { border-top: 0; }

.studio-menu-primary a:hover,
.studio-menu-primary a:focus-visible,
.studio-menu-projects > a:hover,
.studio-menu-projects > a:focus-visible,
.studio-menu-contact a:hover,
.studio-menu-contact a:focus-visible { color: #245d83; }

.studio-menu-services a {
  min-height: 3.7rem;
  border-top: 1px solid var(--editorial-rule);
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: .65rem;
  align-items: center;
}
.studio-menu-services a:first-of-type { border-top: 0; }
.studio-menu-services span { color: var(--editorial-steel); font-family: var(--display); font-size: 1.35rem; }
.studio-menu-services strong { font-size: .94rem; font-weight: 620; }
.studio-menu-services i,
.studio-menu-projects i { font-style: normal; }
.studio-menu-services a:hover,
.studio-menu-services a:focus-visible { color: #245d83; padding-left: .35rem; }

.studio-menu-contact a { overflow-wrap: anywhere; font-size: .91rem; }

/* Home refinements requested after visual review. */
body[data-page-family="home"] .services-layout {
  grid-template-columns: minmax(15rem, 3.1fr) minmax(19rem, 3.5fr) minmax(27rem, 5.4fr);
  gap: 3vw;
}
body[data-page-family="home"] .services-heading h2 { font-size: clamp(4.5rem, 7.2vw, 8.4rem); }
body[data-page-family="home"] .service-visual img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #0b1723;
  border-color: #2d3f50;
}

/* White editorial openings across all current internal routes. */
body:not([data-page-family="home"]) {
  background: var(--editorial-white);
  color: var(--editorial-ink);
}

body:not([data-page-family="home"]) main {
  overflow: hidden;
  background: var(--editorial-white);
  color: var(--editorial-ink);
}

body:not([data-page-family="home"]) :where(.wrap, .section-head, .feature-grid, .blog-grid) {
  max-width: none;
}

body:not([data-page-family="home"]) .page-hero {
  width: var(--shell) !important;
  min-height: min(49rem, calc(100svh - var(--header-height)));
  margin-inline: auto !important;
  padding: clamp(6rem, 9vw, 9rem) 0 clamp(5rem, 8vw, 8rem) !important;
  border-bottom: 1px solid var(--editorial-rule);
  background: var(--editorial-white) !important;
  color: var(--editorial-ink) !important;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(17rem, .62fr);
  column-gap: clamp(3rem, 8vw, 9rem);
  align-content: center;
  align-items: center;
}

body:not([data-page-family="home"]) .page-hero > .eyebrow {
  grid-column: 1 / -1;
  align-self: end;
  margin-bottom: 3rem;
}

body:not([data-page-family="home"]) .page-hero > h1 {
  grid-column: 1;
  grid-row: 2 / span 3;
  max-width: none;
  margin: 0;
  color: var(--editorial-ink) !important;
  font-family: var(--display);
  font-size: clamp(4.65rem, 7.9vw, 9.5rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.055em;
  text-wrap: balance;
}

body:not([data-page-family="home"]) .page-hero > p:not(.eyebrow) {
  grid-column: 2;
  margin: 0;
  color: var(--editorial-muted) !important;
  font-size: clamp(.98rem, 1.1vw, 1.14rem);
  line-height: 1.7;
}

body:not([data-page-family="home"]) .page-hero > .cta-row { grid-column: 2; margin-top: 1.7rem; }

body:not([data-page-family="home"]) .eyebrow {
  color: var(--editorial-steel) !important;
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body:not([data-page-family="home"]) .button,
body:not([data-page-family="home"]) .card-link {
  border-radius: 0 !important;
}
body:not([data-page-family="home"]) .button-primary {
  background: var(--editorial-night) !important;
  border-color: var(--editorial-night) !important;
  color: var(--editorial-white) !important;
}
body:not([data-page-family="home"]) .button-secondary {
  background: transparent !important;
  border-color: var(--editorial-rule) !important;
  color: var(--editorial-ink) !important;
}

.editorial-route-media {
  width: var(--shell);
  margin: 0 auto;
  padding: 0 0 clamp(6rem, 10vw, 11rem);
}
.editorial-route-media img {
  width: 100%;
  aspect-ratio: 16 / 8.3;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--editorial-rule);
}
.editorial-route-media figcaption {
  margin-top: .8rem;
  color: var(--editorial-steel);
  font-size: .67rem;
  font-weight: 720;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body:not([data-page-family="home"]) :where(.section, .section-block) {
  margin: 0 !important;
  padding: clamp(6rem, 9vw, 10rem) 0 !important;
  background: var(--editorial-white) !important;
  color: var(--editorial-ink) !important;
  border-bottom: 1px solid var(--editorial-rule);
}

body:not([data-page-family="home"]) :where(.section, .section-block) > .wrap,
body:not([data-page-family="home"]) .case-main .wrap {
  width: var(--shell);
  margin-inline: auto;
}

body:not([data-page-family="home"]) :where(.section h2, .section-block h2) {
  color: var(--editorial-ink);
  font-family: var(--display);
  font-size: clamp(3.4rem, 6.2vw, 7.4rem);
  font-weight: 400;
  line-height: .94;
  letter-spacing: -.045em;
  text-wrap: balance;
}

body:not([data-page-family="home"]) .section-head {
  margin-bottom: clamp(3.5rem, 6vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(17rem, .55fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
}
body:not([data-page-family="home"]) .section-head > p,
body:not([data-page-family="home"]) .section-intro,
body:not([data-page-family="home"]) .lead { color: var(--editorial-muted); line-height: 1.7; }

body:not([data-page-family="home"]) :where(.split-grid, .contact-grid, .content-grid-2) {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .7fr);
  gap: clamp(3.5rem, 8vw, 9rem);
  align-items: start;
}

body:not([data-page-family="home"]) :where(.services-grid, .feature-grid, .content-grid-3, .project-grid, .blog-grid) {
  gap: 0 clamp(2rem, 4vw, 5rem) !important;
}

body:not([data-page-family="home"]) .services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not([data-page-family="home"]) .service-card {
  min-width: 0;
  padding: 2.2rem 0 3rem !important;
  border: 0 !important;
  border-top: 1px solid var(--editorial-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not([data-page-family="home"]) .service-card::before {
  content: "";
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.8rem;
  display: block;
  opacity: 1;
  transform: none;
  background-position: center;
  background-size: cover;
  border: 1px solid var(--editorial-rule);
  pointer-events: none;
}
body:not([data-page-family="home"]) .service-card:nth-child(1)::before { background-image: url("/assets/editorial/service-software.webp"); }
body:not([data-page-family="home"]) .service-card:nth-child(2)::before { background-image: url("/assets/editorial/service-crm.webp"); }
body:not([data-page-family="home"]) .service-card:nth-child(3)::before { background-image: url("/assets/editorial/service-webapp.webp"); }
body:not([data-page-family="home"]) .service-card:nth-child(4)::before { background-image: url("/assets/editorial/service-ai.webp"); }
body:not([data-page-family="home"]) .service-card:nth-child(5)::before { background-image: url("/assets/editorial/service-websites.webp"); }
body:not([data-page-family="home"]) .service-card:nth-child(6)::before { background-image: url("/assets/editorial/service-seo.webp"); }

body:not([data-page-family="home"]) :where(.feature-card, .info-card) {
  padding: 2rem 0 2.5rem !important;
  border: 0 !important;
  border-top: 1px solid var(--editorial-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not([data-page-family="home"]) :where(.feature-card, .info-card, .service-card) h3 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
}

body:not([data-page-family="home"]) :where(.detail-panel, .panel, .contact-panel, .summary-box, .cta-panel, .case-cta) {
  border: 1px solid var(--editorial-rule) !important;
  border-radius: 0 !important;
  background: #f0f4f7 !important;
  color: var(--editorial-ink) !important;
  box-shadow: none !important;
}

/* Portfolio and case-study openings keep real screenshots visible and intact. */
body[data-page-family="projects"] :where(.portfolio-hero, .case-hero) {
  padding: 0 !important;
  background: var(--editorial-white) !important;
  color: var(--editorial-ink) !important;
  border-bottom: 1px solid var(--editorial-rule);
}
body[data-page-family="projects"] :where(.portfolio-hero, .case-hero) > .wrap {
  width: var(--shell);
  min-height: min(48rem, calc(100svh - var(--header-height)));
  margin-inline: auto;
  padding: clamp(5rem, 8vw, 8rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body[data-page-family="projects"] :where(.portfolio-hero, .case-hero) h1 {
  max-width: 72rem;
  margin: 1.7rem 0;
  color: var(--editorial-ink) !important;
  font-family: var(--display);
  font-size: clamp(4.4rem, 7.4vw, 8.8rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.05em;
  text-wrap: balance;
}
body[data-page-family="projects"] .case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, .75fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
body[data-page-family="projects"] .case-hero-grid h1 { font-size: clamp(3.6rem, 5.2vw, 6.4rem); }
body[data-page-family="projects"] .case-visual { border: 1px solid var(--editorial-rule); overflow: hidden; }
body[data-page-family="projects"] .case-visual img,
body[data-page-family="projects"] .project-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
body[data-page-family="projects"] .project-card {
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--editorial-rule) !important;
  background: transparent !important;
  box-shadow: none !important;
}
body[data-page-family="projects"] .project-card-body { padding: 1.6rem 0 3rem !important; }
body[data-page-family="projects"] :where(.tag, .status) { border-radius: 0 !important; }

/* Blog index, categories and articles. */
body[data-page-family="blog"] .article-hero {
  width: var(--shell);
  min-height: min(45rem, calc(100svh - var(--header-height)));
  margin-inline: auto;
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--editorial-white) !important;
  color: var(--editorial-ink) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--editorial-rule);
}
body[data-page-family="blog"] .article-hero h1 {
  max-width: 82rem;
  margin: 1.5rem 0 2rem;
  color: var(--editorial-ink) !important;
  font-family: var(--display);
  font-size: clamp(4.2rem, 7.2vw, 8.6rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.05em;
  text-wrap: balance;
}
body[data-page-family="blog"] .hero-image-wrap {
  width: var(--shell);
  margin: 0 auto;
  padding: 0 0 clamp(5rem, 8vw, 8rem);
}
body[data-page-family="blog"] .hero-image {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  border: 1px solid var(--editorial-rule);
}
body[data-page-family="blog"] .article-shell {
  width: min(88vw, 54rem);
  margin-inline: auto;
  padding-bottom: 8rem;
  color: #25313b;
  font-size: 1.08rem;
  line-height: 1.78;
}
body[data-page-family="blog"] .article-shell > h2 {
  margin: 5rem 0 1.5rem;
  color: var(--editorial-ink);
  font-family: var(--display);
  font-size: clamp(2.7rem, 4.4vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}
body[data-page-family="blog"] .blog-card,
body[data-page-family="blog"] .blog-card-link {
  border: 0 !important;
  border-top: 1px solid var(--editorial-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body[data-page-family="blog"] .blog-card-image { aspect-ratio: 16 / 9; object-fit: cover; }
body[data-page-family="blog"] .badge {
  border-color: rgba(59, 111, 140, .25) !important;
  border-radius: 0 !important;
  background: rgba(59, 111, 140, .08) !important;
  color: #3b6f8c !important;
}
body[data-page-family="blog"] .button-primary {
  box-shadow: 0 14px 30px rgba(59, 111, 140, .28) !important;
}
body[data-page-family="blog"] .review-note {
  border-color: var(--editorial-rule) !important;
  background: #f0f4f7 !important;
}

body[data-editorial-route="/blog/archivio/"] main > .section,
body[data-editorial-route="/blog/"] main > .section,
body[data-editorial-route="/blog.html"] main > .section {
  width: var(--shell);
  margin-inline: auto !important;
}

body[data-page-family="faq"] details {
  border: 0 !important;
  border-top: 1px solid var(--editorial-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body[data-page-family="privacy"] main {
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(5rem, 8vw, 9rem) 0;
}
body[data-page-family="privacy"] h1 {
  max-width: 70rem;
  font-family: var(--display);
  font-size: clamp(4.5rem, 8vw, 9rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.05em;
}

.privacy-original-layout :focus-visible,
.bs-cookie-btn:focus-visible,
.bs-cookie-close:focus-visible,
.bs-cookie-toggle input:focus-visible + span,
.bs-cookie-preferences-trigger:focus-visible {
  outline-color: #3b6f8c;
}

/* Real current-site footer content, restyled in the accepted palette. */
.site-footer {
  padding: clamp(5rem, 8vw, 8rem) 0 0 !important;
  border-top: 1px solid #31404c;
  background: #050a0f !important;
  color: var(--editorial-white) !important;
}
.footer-shell {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  gap: clamp(3rem, 6vw, 7rem);
}
.footer-identity img { width: 6rem; height: 6rem; }
.footer-identity p { max-width: 28rem; margin: 1.7rem 0 0; color: #9aa8b4; line-height: 1.65; }
.footer-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
}
.footer-services .footer-title { grid-column: 1 / -1; }
.footer-services a {
  min-height: 3.2rem;
  border-top: 1px solid #263646;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .88rem;
}
.footer-services i { font-style: normal; color: #70889b; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-contact a { text-decoration: underline; text-decoration-color: #4d6578; text-underline-offset: .35em; overflow-wrap: anywhere; }
.footer-contact button { padding: 0 0 .25rem; border: 0; border-bottom: 1px solid #4d6578; background: transparent; color: #a9b6c0; cursor: pointer; font-size: .82rem; }
.footer-legal {
  width: var(--shell);
  margin: clamp(4rem, 7vw, 7rem) auto 0;
  padding: 1.4rem 0;
  border-top: 1px solid #263646;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: #738493;
  font-size: .75rem;
}
.review-status {
  padding: .65rem 6vw;
  background: #02060a;
  color: #657786;
  text-align: right;
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .studio-direct-nav { gap: 1.25rem; }
  .studio-header-cta { display: none; }
  .studio-header-shell { grid-template-columns: auto 1fr auto; }
  .studio-menu-grid { grid-template-columns: 1fr 1.4fr 1fr; }
  .studio-menu-contact { grid-column: 1 / -1; margin-top: 2rem; padding: 2rem 0 0 !important; border: 0 !important; border-top: 1px solid var(--editorial-rule) !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; }
  .studio-menu-contact .studio-menu-label { grid-column: 1 / -1; }
  body[data-page-family="home"] .services-layout { grid-template-columns: 1fr 1fr; }
  body[data-page-family="home"] .services-heading { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-height: 5.2rem; }
  .studio-direct-nav { display: none; }
  .studio-header-shell { grid-template-columns: auto 1fr auto; }
  .studio-index-toggle { grid-column: 3; }
  .studio-menu-panel {
    top: var(--header-height);
    right: 0;
    left: auto;
    width: min(92vw, 30rem);
    height: calc(100svh - var(--header-height));
    border-left: 1px solid var(--editorial-rule);
  }
  .studio-menu-close { top: 1rem; right: 1rem; }
  .studio-menu-grid { width: auto; min-height: 100%; padding: 4.8rem 1.5rem 2rem; display: block; }
  .studio-menu-grid > * { padding: 1.7rem 0 !important; border: 0 !important; border-top: 1px solid var(--editorial-rule) !important; }
  .studio-menu-grid > *:first-child { border-top: 0 !important; }
  .studio-menu-contact { display: flex; flex-direction: column; margin: 0; }
  .studio-menu-contact .studio-menu-label { align-self: stretch; }

  body:not([data-page-family="home"]) .page-hero {
    min-height: 0;
    padding: 5.5rem 0 5rem !important;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  body:not([data-page-family="home"]) .page-hero > .eyebrow,
  body:not([data-page-family="home"]) .page-hero > h1,
  body:not([data-page-family="home"]) .page-hero > p:not(.eyebrow),
  body:not([data-page-family="home"]) .page-hero > .cta-row { grid-column: 1; grid-row: auto; }
  body:not([data-page-family="home"]) .page-hero > .eyebrow { margin-bottom: .5rem; }
  body:not([data-page-family="home"]) .page-hero > h1 { font-size: clamp(4rem, 12.5vw, 7rem); }

  body:not([data-page-family="home"]) :where(.section-head, .split-grid, .contact-grid, .content-grid-2),
  body[data-page-family="projects"] .case-hero-grid { grid-template-columns: 1fr; }
  body:not([data-page-family="home"]) .services-grid { grid-template-columns: 1fr; }
  body[data-page-family="projects"] :where(.portfolio-hero, .case-hero) > .wrap { min-height: 0; padding: 5.5rem 0; }
  body[data-page-family="projects"] :where(.portfolio-hero, .case-hero) h1,
  body[data-page-family="blog"] .article-hero h1 { font-size: clamp(3.8rem, 12vw, 7rem); }

  .footer-shell { grid-template-columns: 1fr 1fr; }
  .footer-identity { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Review refinements — 2026-08-04
   Upright software modules and an original interactive CRM constellation.
   -------------------------------------------------------------------------- */

body[data-editorial-route="/servizi/software-su-misura/"] .module-stack {
  counter-reset: software-module;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  align-content: center;
  border-top: 1px solid var(--editorial-rule);
  border-left: 1px solid var(--editorial-rule);
  background: var(--editorial-rule);
  perspective: none;
}

body[data-editorial-route="/servizi/software-su-misura/"] .module-stack span {
  counter-increment: software-module;
  min-width: 0;
  min-height: 7rem;
  padding: 1rem;
  border: 0;
  border-right: 1px solid var(--editorial-rule);
  border-bottom: 1px solid var(--editorial-rule);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, .9);
  box-shadow: none;
  color: var(--editorial-ink);
  font-size: .88rem;
  font-weight: 680;
  text-align: left;
  transform: none !important;
  animation: none !important;
}

body[data-editorial-route="/servizi/software-su-misura/"] .module-stack span::before {
  content: "0" counter(software-module);
  color: var(--editorial-steel);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.crm-panel {
  min-height: 35rem;
}

.crm-constellation {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 30rem;
}

.crm-constellation::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 7% 4%;
  background: radial-gradient(circle at center, rgba(95, 136, 170, .13), transparent 58%);
  pointer-events: none;
}

.crm-constellation-ring {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(95, 136, 170, .27);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.crm-constellation-ring-outer { width: min(72%, 23rem); }
.crm-constellation-ring-inner { width: min(48%, 15rem); border-style: dashed; }

.crm-constellation-detail {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(50%, 16.25rem);
  min-height: 13.75rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--editorial-night);
  color: var(--editorial-white);
  box-shadow: 0 1.4rem 2.8rem rgba(7, 17, 29, .2);
  transform: translate(-50%, -50%);
}

.crm-detail-kicker {
  display: block;
  margin-bottom: .7rem;
  color: #9db8cb;
  font-size: .63rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.crm-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: start;
}

.crm-constellation-detail h3 {
  margin: 0;
  color: var(--editorial-white);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
}

.crm-constellation-detail p {
  margin: .8rem 0 0;
  color: #c6d1d9;
  font-size: .72rem;
  line-height: 1.5;
}

.crm-detail-close {
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--editorial-white);
  cursor: pointer;
}

.crm-detail-close[hidden] { display: none; }
.crm-detail-close svg { width: .8rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.crm-detail-close:hover { background: rgba(255, 255, 255, .1); }

.crm-detail-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.crm-detail-tags span {
  padding: .28rem .48rem;
  border: 1px solid rgba(255, 255, 255, .22);
  color: #d5dfe6;
  font-size: .6rem;
  font-weight: 650;
}

.crm-node {
  position: absolute;
  z-index: 4;
  left: var(--crm-x);
  top: var(--crm-y);
  width: 6.7rem;
  padding: .2rem;
  border: 0;
  display: grid;
  justify-items: center;
  gap: .4rem;
  background: transparent;
  color: var(--editorial-ink);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.crm-node-icon {
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--editorial-rule);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .96);
  color: var(--editorial-night);
  box-shadow: 0 .65rem 1.25rem rgba(7, 17, 29, .1);
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}

.crm-node-icon svg {
  width: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.crm-node-label {
  padding: .15rem .32rem;
  background: rgba(240, 244, 247, .9);
  font-size: .7rem;
  font-weight: 740;
  line-height: 1.2;
  text-align: center;
}

.crm-node:hover .crm-node-icon { transform: translateY(-.2rem); }
.crm-node:focus-visible { outline: none; }
.crm-node:focus-visible .crm-node-icon { outline: 2px solid var(--editorial-steel); outline-offset: .25rem; }
.crm-node[aria-pressed="true"] .crm-node-icon {
  border-color: #477797;
  background: #477797;
  color: var(--editorial-white);
  box-shadow: 0 0 0 .25rem rgba(95, 136, 170, .18), 0 .8rem 1.5rem rgba(7, 17, 29, .15);
}
.crm-node[aria-pressed="true"] .crm-node-label { color: #245d83; }

@media (max-width: 700px) {
  body[data-editorial-route="/servizi/software-su-misura/"] .module-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-editorial-route="/servizi/software-su-misura/"] .module-stack span {
    min-height: 6.5rem;
  }

  .crm-panel { min-height: 0; padding: 1rem; }
  .crm-panel .panel-topbar { align-items: flex-start; }
  .crm-panel .panel-topbar span:last-child { max-width: 7rem; text-align: right; }

  .crm-constellation {
    min-height: 0;
    padding-top: .5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
  }

  .crm-constellation::before,
  .crm-constellation-ring { display: none; }

  .crm-constellation-detail {
    position: static;
    grid-column: 1 / -1;
    grid-row: 1;
    width: auto;
    min-height: 13rem;
    transform: none;
  }

  .crm-node {
    position: static;
    width: 100%;
    min-width: 0;
    min-height: 4.4rem;
    padding: .45rem;
    border: 1px solid var(--editorial-rule);
    display: flex;
    justify-content: flex-start;
    gap: .45rem;
    background: rgba(255, 255, 255, .72);
    transform: none;
  }

  .crm-node:hover .crm-node-icon { transform: none; }
  .crm-node-icon { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; }
  .crm-node-icon svg { width: 1.15rem; }
  .crm-node-label { min-width: 0; padding: 0; background: transparent; font-size: .65rem; text-align: left; overflow-wrap: normal; white-space: nowrap; }
}

@media (max-width: 620px) {
  .studio-brand { width: 3rem; height: 3rem; }
  .studio-index-toggle { min-height: 2.65rem; padding: 0 .85rem; }
  body[data-page-family="home"] .services-layout { grid-template-columns: 1fr; }
  body[data-page-family="home"] .services-heading { grid-column: 1; }
  body[data-page-family="home"] .services-heading h2 { font-size: clamp(4.5rem, 24vw, 7rem); }
  body[data-page-family="home"] .service-visual img { aspect-ratio: 4 / 3; }

  body:not([data-page-family="home"]) .page-hero > h1 { font-size: clamp(3.75rem, 17vw, 5.7rem); overflow-wrap: normal; }
  body:not([data-page-family="home"]) :where(.section h2, .section-block h2) { font-size: clamp(3.2rem, 14vw, 5rem); }
  .editorial-route-media img { aspect-ratio: 4 / 3; }
  body[data-page-family="projects"] :where(.portfolio-hero, .case-hero) h1,
  body[data-page-family="projects"] .case-hero-grid h1,
  body[data-page-family="blog"] .article-hero h1 { font-size: clamp(3.5rem, 15vw, 5.4rem); }
  body[data-page-family="blog"] .article-shell { width: 90vw; }

  .footer-shell { grid-template-columns: 1fr; }
  .footer-identity { grid-column: 1; }
  .footer-services { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; gap: .65rem; }
  .review-status { text-align: left; }
}
