:root {
  --dm-blue-950: #07192f;
  --dm-blue-900: #0d2544;
  --dm-blue-800: #12345f;
  --dm-blue-650: #1b5792;
  --dm-blue-500: #2f7ab7;
  --dm-blue-200: #b8d2e8;
  --dm-ice: #eef6fb;
  --dm-warm: #f7f4ef;
  --dm-paper: #fbfaf7;
  --dm-graphite: #242a30;
  --dm-silver: #a9b7c3;
  --dm-line: rgba(18, 52, 95, 0.18);
  --dm-radius-action: 10px;
  --dm-project-gutter: 5px;
  --dm-logo-mark: var(--dm-blue-900);
  --dm-logo-blue-full: url("/__published/406d11fad8a118603920c1db40a162d4/logo-demartini-web-400x400-crisp.png");
  --dm-logo-full: url("/__published/406d11fad8a118603920c1db40a162d4/logo-demartini-bianco-200x200.png");
  --dm-logo-symbol: url("/__published/406d11fad8a118603920c1db40a162d4/logo-demartini-symbol-crop.png");
  --font-modern: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-editorial: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --dm-heading-line-height: 1.12;
  --space-page: clamp(1rem, 4vw, 4.5rem);
  --header-height: 178px;
  --header-scrolled-height: 150px;
  --hero-wide-min-height: 1354px;
  --hero-wide-bottom-extra: 20px;
  color: var(--dm-graphite);
  background: var(--dm-paper);
  font-family: var(--font-modern);
  font-size: 16px;
  line-height: 1.45;
}

@media (min-width: 1600px) {
  :root {
    --header-height: 211px;
    --header-scrolled-height: 150px;
    --hero-wide-min-height: 1429px;
    --hero-wide-bottom-extra: 204px;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-scrolled-height) + 8px); }
#posizionamento { scroll-margin-top: 8px; }
body {
  margin: 0;
  background: var(--dm-paper);
  color: var(--dm-graphite);
  overflow-x: hidden;
}
[hidden] { display: none !important; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--dm-blue-500); outline-offset: 4px; }
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-150%);
  padding: .75rem 1rem;
  background: var(--dm-paper);
  color: var(--dm-blue-900);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0 var(--space-page);
  color: var(--dm-blue-950);
  transition: background .35s ease, color .35s ease, height .35s ease, border-color .35s ease;
}
.site-header.on-dark { color: var(--dm-paper); }
.site-header.is-scrolled {
  height: var(--header-scrolled-height);
  background: rgba(251, 250, 247, .88);
  color: var(--dm-blue-950);
  border-bottom: 1px solid var(--dm-line);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; font-weight: 650; letter-spacing: .08em; }
.brand-logo {
  display: block;
  width: clamp(7.8rem, 10.5vw, 9.9rem);
  height: clamp(7.8rem, 10.5vw, 9.9rem);
  overflow: visible;
  position: relative;
  transition: width .25s ease, height .25s ease;
}
.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  filter: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.brand-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 1;
  background: var(--dm-logo-blue-full) center / contain no-repeat;
  transition: opacity .25s ease;
}
.site-header.on-dark:not(.is-scrolled) .brand-logo img,
.mobile-menu .brand-logo img,
.brand-logo.footer img { opacity: 1; }
.site-header.on-dark:not(.is-scrolled) .brand-logo::after,
.mobile-menu .brand-logo::after,
.brand-logo.footer::after { opacity: 0; }
.site-header.is-scrolled .brand-logo img { opacity: 0; }
.site-header.is-scrolled .brand-logo::after {
  inset: 0;
  opacity: 1;
  background: var(--dm-logo-blue-full) center / contain no-repeat;
}
.brand-logo.mobile {
  width: 11.25rem;
  height: 11.25rem;
}
.brand-logo.footer {
  width: 13.5rem;
  height: 13.5rem;
}
.desktop-nav { justify-self: end; display: flex; align-items: center; gap: clamp(.8rem, 1.4vw, 1.45rem); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.desktop-nav a { opacity: .78; }
.desktop-nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.language-switch { display: inline-flex; gap: .45rem; align-items: center; font-size: .72rem; letter-spacing: .08em; }
.language-switch span { opacity: .38; }
.language-switch a[aria-current="true"] { border-bottom: 1px solid currentColor; }
.primary-link, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .78rem 1.05rem;
  border: 1px solid var(--dm-blue-800);
  border-radius: var(--dm-radius-action);
  background: var(--dm-blue-900);
  color: var(--dm-paper);
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .08em;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.button:hover, .primary-link:hover { transform: translateY(-2px); background: var(--dm-blue-650); }
.button.ghost { background: transparent; color: var(--dm-blue-900); }
.button.light { border-color: rgba(255,255,255,.58); background: var(--dm-paper); color: var(--dm-blue-950); }
.button.ghost.light { background: transparent; color: var(--dm-paper); }
.site-header.on-dark .primary-link { border-color: #fcfcfc; }
.reserved-link, .menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}
.reserved-link svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.menu-toggle { display: none; align-content: center; gap: 5px; border-radius: 10px; }
.menu-toggle span { width: 18px; height: 1px; background: currentColor; display: block; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 1.25rem var(--space-page) 2rem;
  background: var(--dm-blue-950);
  color: var(--dm-paper);
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.76,0,.24,1), opacity .25s ease, visibility .25s ease;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu[aria-hidden="false"] {
  transition-property: transform, opacity;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu__top button { background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; color: inherit; min-height: 44px; padding: 0 1rem; }
.mobile-menu nav { display: grid; gap: .25rem; margin: 11vh 0 2rem; }
.mobile-menu nav a { font-size: 2.55rem; line-height: .98; font-family: var(--font-editorial); font-style: italic; }
.mobile-menu__home-link { color: #eac75d; }

section { padding: clamp(4rem, 9vw, 10rem) var(--space-page); }
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--dm-paper);
  background: var(--dm-blue-950);
  padding-top: calc(var(--header-height) + 2rem);
}
@media (min-width: 1200px) and (min-height: 900px) {
  .hero { min-height: 1447px; }
}
@media (min-width: 1600px) and (min-height: 900px) {
  .hero {
    min-height: var(--hero-wide-min-height);
    padding-bottom: calc(clamp(4rem, 9vw, 10rem) + var(--hero-wide-bottom-extra));
  }
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 20%, rgba(47,122,183,.3), transparent 38%),
    radial-gradient(circle at 18% 72%, rgba(27,87,146,.24), transparent 35%),
    linear-gradient(115deg, rgba(7,25,47,.98), rgba(18,52,95,.86) 48%, rgba(9,32,56,.98));
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 45% 45%, rgba(184,210,232,.08), transparent 30%),
    linear-gradient(90deg, rgba(255,255,255,.025), transparent 40%, rgba(255,255,255,.018));
  opacity: .72;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-inner { position: relative; max-width: 1180px; padding-bottom: clamp(5rem, 9vh, 8rem); }
.hero-kicker, .section-label {
  margin: 0 0 1.3rem;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .78;
}
.section-label span { display: inline-block; min-width: 3.5rem; font-family: var(--font-editorial); font-size: 1.05rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-weight: 430;
  letter-spacing: 0;
  line-height: var(--dm-heading-line-height);
}
h1 { font-size: clamp(4rem, 11vw, 10.8rem); max-width: 12ch; margin-bottom: 1.6rem; }
h1 span { display: block; }
.type-title {
  min-height: 2.82em;
  position: relative;
}
.type-title i {
  display: inline-block;
  width: .04em;
  height: .78em;
  margin-left: .06em;
  background: currentColor;
  transform: translateY(.1em);
  animation: caretBlink .78s steps(1) infinite;
}
.type-title.is-complete i { opacity: 0; animation: none; }
h1 em, h2 em { font-family: var(--font-editorial); font-style: italic; font-weight: 400; }
h2 { font-size: clamp(2.7rem, 7vw, 7.8rem); max-width: 13ch; }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.06; font-weight: 450; }
.hero-copy { max-width: 39.875rem; min-height: 7.1425rem; font-size: clamp(1.05rem, 1.8vw, 1.45rem); color: rgba(251,250,247,.82); }
.hero-actions, .inline-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2rem; }
.scroll-indicator { position: absolute; left: var(--space-page); bottom: 1.8rem; display: inline-flex; gap: .6rem; align-items: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.scroll-indicator span { width: 1px; height: 48px; background: currentColor; transform-origin: top; animation: scrollPulse 1.8s ease-in-out infinite; }

.editorial-section h2 { max-width: 15ch; }
.editorial-section p, .collaboration-preview p, .your-home-preview p, .investors-preview p {
  max-width: 48rem;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  color: rgba(36,42,48,.75);
}
.band-light { background: var(--dm-warm); }
.band-ink, .theme-deeper, .band-blue { background: var(--dm-blue-950); color: var(--dm-paper); }
.band-blue { background: linear-gradient(135deg, var(--dm-blue-900), var(--dm-blue-650)); }
.project-card__body p, .project-card__body span, .project-meta span, .detail-columns span, .thin-grid span {
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .73rem;
  color: rgba(36,42,48,.58);
}
.split-heading, .section-heading-row, .before-after-section, .about-preview { display: grid; grid-template-columns: .9fr 1.2fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.method-section .split-heading h2 { grid-column: 2; }
.method-list { border-top: 1px solid var(--dm-line); }
.method-step { display: grid; grid-template-columns: 5rem 1fr 1.2fr; gap: 1.5rem; padding: 1.35rem 0; border-bottom: 1px solid var(--dm-line); }
.method-step > span, .timeline-item > span, .process-grid article span { font-family: var(--font-editorial); font-style: italic; color: var(--dm-blue-650); font-size: 1.25rem; }
.method-step p { max-width: 34rem; margin-left: -3.75rem; color: rgba(36,42,48,.7); }
.text-link { display: inline-flex; margin-top: 2rem; border-bottom: 1px solid currentColor; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.text-link.light { color: var(--dm-paper); }
.possibilities-section > div > .text-link, .method-phases > div > .text-link { font-size: 1.03rem; }
.method-section > .text-link { font-size: 1.03rem; }
.about-preview p, .investors-preview p, .your-home-preview p, .contacts-section p { color: rgba(251,250,247,.74); }
.positioning-section {
  margin-top: 2.625rem;
  padding-top: clamp(3rem, 4.6vw, 5rem);
  padding-bottom: clamp(3rem, 4.6vw, 5rem);
}
.positioning-section h2 { font-size: clamp(2.5rem, 5.2vw, 5.8rem); }
.positioning-section p { font-size: clamp(1.05rem, 1.55vw, 1.32rem); }
.positioning-section p { max-width: 54rem; }
.possibilities-section { display: grid; gap: clamp(3rem, 7vw, 7rem); }
.possibilities-section .section-heading-row { align-items: end; }
.possibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-radius: var(--dm-radius-action);
  background: transparent;
}
.possibility-card {
  min-height: clamp(18rem, 28vw, 31rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.1rem, 2.4vw, 2.4rem);
  border-radius: var(--dm-radius-action);
  background: rgba(7,25,47,.32);
  text-align: center;
}
.possibility-card:first-child { margin-right: 10px; }
.possibility-card:last-child { margin-left: 10px; }
.possibility-card span {
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 1.01rem;
  color: rgba(251,250,247,.7);
}
.possibility-card h3 {
  max-width: 100%;
  margin-bottom: 0;
  color: var(--dm-paper);
  font-size: 2.67rem;
  font-weight: 430;
  white-space: normal;
}
.media-placeholder {
  position: relative;
  min-height: 26rem;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(18,52,95,.16), rgba(47,122,183,.12)), var(--dm-ice);
  border: 1px solid rgba(255,255,255,.18);
}
.media-placeholder.tall { min-height: 42rem; }
.media-placeholder.wide { min-height: 38rem; }
.media-placeholder__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(18,52,95,.14) 1px, transparent 1px),
    linear-gradient(rgba(18,52,95,.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(120deg, rgba(0,0,0,.2), rgba(0,0,0,.95));
}
.media-placeholder figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .55rem .7rem;
  background: rgba(251,250,247,.82);
  color: var(--dm-blue-950);
  font-size: .75rem;
}
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--dm-line); }
.project-grid--featured { grid-template-columns: repeat(2, 1fr); }
.project-card { background: var(--dm-paper); }
.project-card a { display: grid; min-height: 100%; }
.project-card .media-placeholder { min-height: clamp(18rem, 32vw, 32rem); border: 0; }
.project-card__body { padding: 1.1rem; min-height: 16rem; display: flex; flex-direction: column; gap: .8rem; }
.project-card__body small { margin-top: auto; color: rgba(36,42,48,.68); font-size: .95rem; }
.project-card--editorial .project-card__body {
  min-height: clamp(18rem, 26vw, 28rem);
  padding: clamp(1.2rem, 2.4vw, 2.2rem);
}
.project-card--editorial h3 {
  margin-bottom: auto;
  max-width: 12ch;
  font-size: clamp(2rem, 4.4vw, 5.2rem);
  line-height: .95;
}
.projects-hero {
  min-height: clamp(28rem, 50svh, 34rem);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header-height) + .5rem) var(--space-page) clamp(2rem, 4vw, 3.5rem);
  color: var(--dm-paper);
  background: var(--dm-blue-950);
}
.projects-photo-showcase {
  min-height: clamp(44rem, 82svh, 68rem);
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--dm-blue-950);
}
.projects-photo-showcase__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--dm-blue-950);
}
.projects-photo-showcase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(7,25,47,.2), transparent 40%),
    linear-gradient(90deg, rgba(7,25,47,.18), transparent 52%, rgba(7,25,47,.18));
}
.project-photo-frame {
  position: relative;
  min-height: 32rem;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(18,52,95,.18), rgba(47,122,183,.12)), var(--dm-ice);
}
.project-photo-frame img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: var(--media-position, center);
}
.project-photo-frame--empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(18,52,95,.16) 1px, transparent 1px),
    linear-gradient(rgba(18,52,95,.12) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255,255,255,.28), transparent 42%, rgba(18,52,95,.08));
  background-size: 56px 56px, 56px 56px, auto;
}
.project-photo-frame--empty span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: .55rem .7rem;
  background: rgba(251,250,247,.86);
  color: var(--dm-blue-950);
  font-size: .75rem;
}
.photo-carousel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--dm-blue-950);
  touch-action: pan-y pinch-zoom;
}
.photo-carousel.projects-photo-showcase__media { position: absolute; inset: 0; }
.photo-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease-in-out;
}
.photo-carousel__slide.is-active { opacity: 1; z-index: 1; }
.photo-carousel__frame { height: 100%; min-height: 0; }
.photo-carousel__slide img {
  animation: projectHeroDrift 18s ease-in-out infinite alternate;
}
.photo-carousel__slide:not(.is-active) img { animation-play-state: paused; }
.photo-carousel[data-playing="false"] img { animation-play-state: paused; }
.photo-carousel__control {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(7,25,47,.52);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.photo-carousel__control:hover { background: rgba(7,25,47,.82); }
.photo-carousel__control:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.photo-carousel__control svg { width: 20px; height: 20px; }
.photo-carousel__control[hidden], .photo-carousel__control svg[hidden] { display: none; }
.photo-carousel__control--prev { left: .75rem; }
.photo-carousel__control--next { right: .75rem; }
.photo-carousel__control--toggle { top: auto; bottom: .75rem; right: .75rem; transform: none; }
.photo-carousel__counter {
  position: absolute;
  z-index: 3;
  left: .75rem;
  bottom: .75rem;
  padding: .3rem .6rem;
  border-radius: 4px;
  background: rgba(7,25,47,.65);
  color: #fff;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}
.projects-hero__content {
  position: relative;
  z-index: 5;
  max-width: 980px;
}
.projects-hero h1 {
  max-width: 13ch;
  font-size: clamp(4.4rem, 7.4vw, 7.8rem);
}
.projects-hero p {
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: rgba(251,250,247,.82);
}
.projects-hero .section-label {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-style: normal;
}
.projects-intro p { max-width: 48rem; }
.selected-projects { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.selected-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 3rem);
}
.selected-project { min-width: 0; }
.selected-project a {
  display: block;
  color: inherit;
}
.selected-project__media { width: 100%; aspect-ratio: 4 / 3; }
.selected-project__body {
  display: grid;
  align-content: start;
  gap: .9rem;
  padding: 1.2rem 0 0;
}
.selected-project__body p,
.selected-project__body span,
.project-story-card span {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .73rem;
  color: rgba(36,42,48,.58);
}
.selected-project__body h2 {
  max-width: 100%;
  min-height: 2.1em;
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}
.selected-project__body small {
  max-width: 34rem;
  color: rgba(36,42,48,.68);
  font-size: 1rem;
}
.project-reading-structure {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}
.reading-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dm-line);
}
.reading-card {
  min-height: 18rem;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--dm-warm);
}
.reading-card > span {
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--dm-blue-650);
  font-size: 1.25rem;
}
.reading-card p { color: rgba(36,42,48,.68); }
.project-detail--editorial { gap: clamp(2rem, 5vw, 5rem); }
.project-detail__cover { min-height: clamp(28rem, 52vw, 54rem); }
.project-story-grid {
  display: grid;
  gap: clamp(1rem, 3vw, 3rem);
}
.project-story-card {
  display: grid;
  grid-template-columns: minmax(11rem, .28fr) 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding-top: clamp(1rem, 2vw, 2rem);
  border-top: 1px solid var(--dm-line);
}
.project-story-card__text {
  position: sticky;
  top: calc(var(--header-scrolled-height) + 1.5rem);
}
.project-story-card__text > span {
  display: block;
  margin-bottom: .8rem;
  font-family: var(--font-editorial);
  font-style: italic;
  color: var(--dm-blue-650);
  font-size: 1.35rem;
}
.project-story-card__text h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: .96;
}
.project-story-card__gallery {
  display: grid;
  gap: clamp(.8rem, 2vw, 1.4rem);
}
.project-story-card__media { min-height: clamp(24rem, 42vw, 48rem); }
.project-story-card--result .project-story-card__gallery {
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, .65fr);
  align-items: stretch;
}
.project-story-card--result .project-story-card__media--primary {
  min-height: clamp(34rem, 58vw, 64rem);
}
.project-story-card p {
  max-width: 36rem;
  color: rgba(36,42,48,.74);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}
.projects-final-cta {
  min-height: 64vh;
  display: grid;
  align-content: center;
}
.projects-final-cta > .section-label { font-size: 1rem; }
.projects-final-cta .button { justify-self: start; margin-top: 2rem; }
@media (min-width: 821px) {
  .project-card:first-child .media-placeholder,
  .project-card:first-child .project-card__body {
    margin-right: var(--dm-project-gutter);
  }
  .project-card:nth-child(2) .media-placeholder,
  .project-card:nth-child(2) .project-card__body {
    margin-left: var(--dm-project-gutter);
    margin-right: var(--dm-project-gutter);
  }
  .project-card:nth-child(3) .media-placeholder,
  .project-card:nth-child(3) .project-card__body {
    margin-left: var(--dm-project-gutter);
  }
}
.before-after { --split: 52%; position: relative; min-height: clamp(21rem, 50vw, 40rem); overflow: hidden; background: var(--dm-blue-950); }
.ba-pane { position: absolute; inset: 0; background: linear-gradient(135deg, #d7e4ee, #eef6fb); }
.ba-pane.before { filter: saturate(.25); }
.ba-pane.after { clip-path: inset(0 0 0 var(--split)); background: linear-gradient(135deg, #12345f, #2f7ab7); }
.ba-pane::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(255,255,255,.48);
  background-image: linear-gradient(90deg, transparent 48%, rgba(255,255,255,.16) 49% 51%, transparent 52%);
}
.ba-pane span { position: absolute; top: 1rem; padding: .45rem .65rem; background: rgba(251,250,247,.85); color: var(--dm-blue-950); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.ba-pane.before span { left: 1rem; }
.ba-pane.after span { right: 1rem; }
.before-after input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: ew-resize; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: var(--dm-paper); transform: translateX(-1px); }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border: 1px solid var(--dm-paper); background: rgba(7,25,47,.46); transform: translate(-50%, -50%); }
.investors-preview, .collaboration-preview, .your-home-preview { min-height: 76vh; display: grid; align-content: center; }
.collaboration-preview--compact {
  min-height: auto;
  padding-top: clamp(4rem, 7vw, 8rem);
  padding-bottom: clamp(4rem, 7vw, 8rem);
}
.collaboration-preview--compact .inline-actions { margin-top: .8rem; }
.collaboration-preview--compact .text-link { margin-top: 0; }
.collaboration-preview .soft-list { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dm-blue-650); }
.form-section { text-align: center; }
.form-section h2 { margin-bottom: .85rem; }
.form-section > h2,
.form-section > .form-intro { margin-inline: auto; }
.form-intro {
  max-width: 46rem;
  margin-bottom: 2rem;
  color: rgba(36,42,48,.72);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}
.method-contact > .form-intro { margin-top: 51px; }
.sentence-form, .structured-form {
  display: grid;
  gap: 1.2rem;
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
}
.reserved-page {
  min-height: 80svh;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
}
.reserved-login { max-width: 28rem; }
.reserved-login h1 {
  max-width: none;
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}
.reserved-login .form-status { min-height: 1.5em; margin: 0; text-align: center; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--font-editorial); font-size: clamp(2rem, 5vw, 5rem); font-style: italic; line-height: 1; margin-bottom: 1.2rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice-row label, .check, .two-choice label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--dm-line);
  padding: .65rem .8rem;
  background: rgba(255,255,255,.36);
}
.sentence-line, .dynamic-fields, .structured-form, .contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 1rem; }
.dynamic-fields:empty { display: none; }
.form-field--lead, .form-subsection, .contact-fields h3, .message-label, .check, .form-status, .structured-form .button, .sentence-form .button { grid-column: 1 / -1; }
.form-subsection {
  padding-top: .35rem;
  border-top: 1px solid var(--dm-line);
}
.form-subsection h3,
.contact-fields h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
}
.contact-fields {
  padding-top: 1.25rem;
  border: 0;
}
.request-form .dynamic-fields { grid-column: 1 / -1; }
.form-label-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-section :is(label, input, select, textarea) { min-width: 0; text-align: center; }
.form-section select { text-align-last: center; padding-inline: 2.4rem; }
.native-select { display: grid; min-width: 0; }
.native-select > select, .native-select__value { grid-area: 1 / 1; min-width: 0; }
.native-select__value { display: none; pointer-events: none; color: var(--dm-blue-950); overflow-wrap: anywhere; align-self: center; }
.native-select--wrapped > select { color: transparent; height: 100%; }
.native-select--wrapped > select option { color: var(--dm-blue-950); }
.native-select--wrapped > .native-select__value { display: block; }
.contact-fields h3 { min-height: 4.375rem; }
.form-section .check { justify-content: center; align-items: center; }
.form-section input:is([type="radio"], [type="checkbox"]) {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: 0;
  padding: 0;
}
label { display: grid; gap: .45rem; color: rgba(36,42,48,.76); }
input, textarea, select {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--dm-blue-800);
  background: rgba(255,255,255,.42);
  border-radius: 0;
  color: var(--dm-blue-950);
  padding: .65rem .55rem;
}
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--dm-blue-900) 50%),
    linear-gradient(135deg, var(--dm-blue-900) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}
textarea { resize: vertical; min-height: 8rem; }
.field-error { color: #8b1e2d; font-size: .86rem; }
[aria-invalid="true"] { border-color: #8b1e2d; }
.honeypot { position: absolute; left: -9999px; }
.project-meta, .detail-columns, .thin-grid, .process-grid, .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.18);
}
.project-meta p, .detail-columns article, .thin-grid p, .process-grid article {
  background: var(--dm-blue-950);
  padding: 1.2rem;
  min-height: 10rem;
  min-width: 0;
}
.project-meta, .detail-columns, .thin-grid, .process-grid { background: var(--dm-line); }
.project-meta p, .detail-columns article, .thin-grid p, .process-grid article { background: var(--dm-paper); }
.process-grid h2 { font-size: 3.54375rem; overflow-wrap: anywhere; }
.process-grid article:first-child h2 { max-width: min(13ch, 23.444375rem); }
.inner-hero { padding-top: calc(var(--header-height) + clamp(4rem, 8vw, 8rem)); min-height: 72vh; display: grid; align-content: end; }
.inner-hero.theme-deep { background: var(--dm-blue-950); color: var(--dm-paper); }
.inner-hero p { max-width: 44rem; font-size: clamp(1.05rem, 1.8vw, 1.35rem); }
/* Below this threshold the existing heading scale is already below 150.8px. */
@media (min-width: 1371px) {
  .inner-hero--compact h1 { font-size: 9.425rem; }
  .hero .type-title { font-size: 9.425rem; }
}
@media (max-width: 1599px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.timeline-page { display: grid; gap: 1px; background: var(--dm-line); padding-top: 1px; padding-bottom: 1px; }
.timeline-item { display: grid; grid-template-columns: 5rem .8fr 1.2fr; gap: 1.5rem; align-items: start; background: var(--dm-paper); padding: 1.4rem var(--space-page); }

.method-phases { display: grid; gap: 7rem; padding-block: 5rem 7rem; }
.method-phase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "copy media";
  align-items: center;
  gap: 5rem;
  min-width: 0;
}
.method-phase:nth-child(even) { grid-template-areas: "media copy"; }
.method-phase__copy { grid-area: copy; width: 100%; max-width: 29rem; min-width: 0; justify-self: center; }
.method-phase__number { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.5rem; color: var(--dm-blue-650); font: italic 1.375rem var(--font-editorial); letter-spacing: 0; }
.method-phase__number::after { content: ""; width: 3rem; height: 1px; background: var(--dm-line); }
.method-phase h2 { max-width: none; margin: 0 0 1.25rem; font-size: 3.5rem; line-height: 1.06; letter-spacing: 0; }
.method-phase__description { margin: 0; font-size: 1.25rem; line-height: 1.5; color: rgba(36,42,48,.8); }
.method-phase__media { grid-area: media; display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.method-phase__media--projected { background: #eef4f2; border-radius: 10px; }
.method-phase__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.method-phase[data-method-phase="analyze"] .method-phase__media img,
.method-phase[data-method-phase="design"] .method-phase__media img,
.method-phase[data-method-phase="build"] .method-phase__media img,
.method-phase[data-method-phase="value"] .method-phase__media img { border-radius: 10px; }
.method-phase:last-of-type .method-phase__copy { text-align: center; }
.method-phase:last-of-type .method-phase__number { justify-content: center; }
@media (max-width: 1180px) {
  .possibility-card h3 { font-size: 2rem; }
  .method-phases { gap: 5.5rem; }
  .method-phase, .method-phase:nth-child(even) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "media"; gap: 2rem; }
  .method-phase__copy { max-width: 32rem; text-align: center; }
  .method-phase__number { justify-content: center; }
  .method-phase h2 { font-size: 3rem; }
}
@media (max-width: 820px) {
  .method-phases { padding-block: 4.5rem; }
}
@media (max-width: 520px) {
  .process-grid h2 { font-size: 2.5rem; }
  .method-phase h2 { font-size: 2.25rem; }
  .method-phase__description { font-size: 1.125rem; }
}
.archive-tools { padding-top: 2rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-row button { min-height: 42px; border: 1px solid var(--dm-line); background: transparent; padding: .5rem .8rem; }
.filter-row button.active { background: var(--dm-blue-900); color: var(--dm-paper); }
.project-detail { display: grid; gap: 2rem; }
.project-nav { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem var(--space-page); border-top: 1px solid var(--dm-line); }
.project-nav button { border: 1px solid var(--dm-line); background: transparent; min-height: 44px; padding: 0 1rem; }
.about-page { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); }
.about-photo-column { display: grid; align-items: center; min-width: 0; min-height: 42rem; }
.about-page .about-photo {
  width: min(100%, 721.66px);
  min-height: 0;
  aspect-ratio: 721.66 / 525.86;
  border: 0;
  border-radius: var(--dm-radius-action);
  background: var(--dm-ice);
}
.about-photo > picture { display: block; width: 100%; height: 100%; }
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--about-photo-position, 50% 50%);
  transform: scale(var(--about-photo-zoom, 1));
  transform-origin: var(--about-photo-position, 50% 50%);
}
.editorial-copy h2 { max-width: 16ch; font-size: clamp(2.5rem, 6vw, 6rem); }
.collab-page { padding-bottom: 0; }
.two-choice { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; border-bottom: 1px solid var(--dm-line); padding-bottom: .5rem; }
.two-choice span { min-width: 12rem; }
.landing-form .two-choice { justify-content: center; align-content: center; }
.landing-form .two-choice span { flex-basis: 100%; min-width: 0; }
.landing-form .two-choice label {
  min-width: 4.5rem;
  min-height: 4.5rem;
  justify-content: center;
  border-radius: 44px;
  border-color: rgba(255,255,255,.36);
}
.notice-card { max-width: 46rem; border: 1px solid var(--dm-line); padding: 2rem; }
.legal-content { max-width: 820px; }
.legal-content--privacy { font-size: .75rem; }
.legal-content a, .check a { text-decoration: underline; text-underline-offset: .15em; }
.legal-content a { overflow-wrap: anywhere; }
.site-footer { padding: 3rem var(--space-page); background: var(--dm-blue-950); color: var(--dm-paper); overflow: hidden; }
.footer-grid { background: rgba(255,255,255,.12); grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-grid > * { background: var(--dm-blue-950); padding: 1rem; }
.footer-grid nav { display: grid; gap: .55rem; align-content: start; }
.footer-grid p { color: #FBFAF7; }
.footer-brand { margin-bottom: 0; }
.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--dm-paper);
  border: 0;
  border-radius: var(--dm-radius-action);
  box-shadow: none;
}
.whatsapp-float img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 430px) {
  /* This non-interactive anchor keeps focus without drawing section-wide lines. */
  #posizionamento:focus-visible { outline: none; }
  /* Leave narrow-screen controls readable; the shortcut remains keyboard reachable. */
  .whatsapp-float.is-obstructing:not(:focus-visible) { opacity: 0; pointer-events: none; }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes caretBlink { 50% { opacity: 0; } }
@keyframes drift { to { transform: translate3d(-24px, 18px, 0) scale(1.03); } }
@keyframes projectHeroDrift {
  to { transform: scale(1.025) translate3d(-.75%, .5%, 0); }
}
@keyframes scrollPulse { 50% { transform: scaleY(.35); opacity: .5; } }

@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-menu { display: flex; }
  .site-header { grid-template-columns: auto 1fr; }
  .header-actions { justify-self: end; }
  .selected-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root {
    --header-height: 92px;
    --header-scrolled-height: 92px;
  }
  section { padding: 4.5rem 1rem; }
  .site-header { padding: 0 1rem; }
  .brand-logo { width: 6.9rem; height: 6.9rem; }
  .primary-link, .language-switch:not(.mobile) { display: none; }
  h1 { font-size: clamp(2.85rem, 14.5vw, 5.2rem); max-width: 100%; }
  h2 { font-size: clamp(2.5rem, 13vw, 4.8rem); }
  .inner-hero > * { max-width: calc(100vw - 2rem); }
  .inner-hero h1, .section-label { overflow-wrap: anywhere; }
  .hero { min-height: 100svh; padding-left: 1rem; padding-right: 1rem; }
  .hero-copy { min-height: 0; }
  .hero-actions, .inline-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .split-heading, .section-heading-row, .before-after-section, .about-preview, .about-page {
    grid-template-columns: 1fr;
  }
  .project-grid, .possibility-grid, .selected-projects__grid, .reading-grid, .project-story-card, .project-meta, .detail-columns, .thin-grid, .process-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand { display: flex; width: fit-content; margin-inline: auto; }
  .project-story-card__text { position: static; }
  .project-story-card--result .project-story-card__gallery { grid-template-columns: 1fr; }
  .projects-hero { min-height: 100svh; padding-left: 1rem; padding-right: 1rem; }
  .projects-hero h1 { max-width: 100%; font-size: 3rem; }
  .method-step, .timeline-item { grid-template-columns: 1fr; gap: .5rem; }
  .method-section .split-heading h2 { grid-column: auto; }
  .method-step p { margin-left: 0; }
  .sentence-line, .dynamic-fields, .contact-fields, .structured-form { grid-template-columns: 1fr; }
  .media-placeholder, .media-placeholder.tall, .media-placeholder.wide { min-height: 22rem; }
  .about-photo-column { min-height: 0; }
  .about-page .about-photo { width: 100%; aspect-ratio: 2 / 3; }
  .project-nav { flex-direction: column; padding: 1rem; }
  .possibility-grid { gap: 11px; }
  .possibility-card:first-child { margin-right: 0; }
  .possibility-card:last-child { margin-left: 0; }
  .possibility-card h3 { white-space: normal; }
}

@media (max-width: 380px) {
  .reserved-link { display: none; }
  .hero-copy { font-size: 1rem; }
  .choice-row label { width: 100%; }
  .request-form .form-field--lead select {
    padding-inline: 1rem;
    background-position: calc(100% - 12px) 52%, calc(100% - 6px) 52%;
  }
}

/* Case history portfolio: scoped to the archive and its five-point reading grid. */
.case-history-archive { display: grid; gap: 5rem; }
.case-history-status { min-height: 12rem; display: grid; place-content: center; text-align: center; }
.case-history-status .text-link { background: none; border: 0; justify-self: center; }
.case-study {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "gallery heading" "gallery information";
  column-gap: 3rem;
  row-gap: 1.5rem;
  min-width: 0;
}
.case-study + .case-study { border-top: 1px solid var(--dm-line); padding-top: 5rem; }
.case-study__heading { grid-area: heading; min-width: 0; }
.case-study__heading h2 { font-size: 2.5rem; line-height: 1.12; max-width: none; margin: 0; overflow-wrap: anywhere; }
.case-study__locality { color: var(--dm-blue-650); font-size: 1rem; text-transform: uppercase; margin: 0 0 1rem; }
.case-study__information { grid-area: information; min-width: 0; }
.case-study__description { display: grid; gap: 1rem; color: rgba(36,42,48,.8); }
.case-study__description p { margin: 0; font-size: 1rem; line-height: 1.6; }
.case-study__steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.case-study__steps li { position: relative; display: grid; gap: .65rem; text-align: center; }
.case-study__steps li::before { content: ""; position: absolute; top: .95rem; left: 0; width: 100%; height: 1px; background: var(--dm-line); }
.case-study__steps li:first-child::before { left: 50%; width: 50%; }
.case-study__steps li:last-child::before { width: 50%; }
.case-study__steps span { position: relative; justify-self: center; width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--dm-line); border-radius: 50%; background: var(--dm-paper); color: var(--dm-blue-650); font: italic 1rem var(--font-editorial); }
.case-study__steps strong { font-size: .75rem; font-weight: 500; }
.case-study__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 0; }
.case-study__facts > div { position: relative; padding: 1rem 0 1rem 2rem; border-top: 1px solid var(--dm-line); min-width: 0; }
.case-study__facts svg { position: absolute; left: 0; top: 1.1rem; width: 20px; height: 20px; color: var(--dm-blue-650); }
.case-study__facts dt { font-size: .75rem; color: rgba(36,42,48,.7); margin-bottom: .25rem; }
.case-study__facts dd { margin: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.case-gallery { --case-media-radius: 10px; --case-thumbnail-radius: 5px; grid-area: gallery; min-width: 0; }
.case-gallery__stage { position: relative; aspect-ratio: 4 / 3; background: #e9edf0; border-radius: var(--case-media-radius); }
.case-gallery [data-case-swipe], .case-lightbox [data-case-swipe] { touch-action: pan-y pinch-zoom; }
.case-gallery__image-button { position: relative; overflow: hidden; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: none; cursor: zoom-in; }
.case-gallery__image { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.case-photo-previous { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; pointer-events: none; }
.case-gallery__expand { position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center; width: 36px; height: 36px; color: white; background: rgba(7,25,47,.75); border-radius: 50%; }
.case-gallery__expand svg { width: 18px; height: 18px; }
.case-gallery__control { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: white; background: rgba(7,25,47,.75); transition: background .2s; }
.case-gallery__control:hover { background: var(--dm-blue-900); }
.case-gallery__control:disabled { opacity: .35; cursor: default; }
.case-gallery__control--previous, .case-gallery__control--next { position: absolute; top: 50%; transform: translateY(-50%); }
.case-gallery__control--previous { left: .75rem; }
.case-gallery__control--next { right: .75rem; }
.case-gallery__caption, .case-lightbox__caption { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-block: .75rem; min-height: 3.5rem; font-size: .8125rem; }
.case-gallery__caption p, .case-lightbox__caption p { margin: 0; }
.case-gallery__caption output, .case-lightbox__caption output { white-space: nowrap; font-variant-numeric: tabular-nums; }
.case-gallery__thumbnails { display: flex; gap: .5rem; overflow-x: auto; padding: 5px; margin-inline: -5px; scrollbar-width: thin; border-radius: var(--case-media-radius); }
.case-gallery__thumbnail { display: grid; grid-template-rows: auto 44px; gap: .35rem; flex: 0 0 88px; width: 88px; padding: 0; border: 0; border-radius: var(--case-thumbnail-radius); background: none; color: var(--dm-graphite); }
.case-gallery__thumbnail-image { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 2px; border: 1px solid transparent; border-radius: calc(var(--case-thumbnail-radius) + 3px); }
.case-gallery__thumbnail-label { display: grid; place-items: center; min-height: 44px; border-bottom: 1px solid transparent; text-align: center; font-size: .8125rem; line-height: 1.3; transition: color .2s, border-color .2s; }
.case-gallery__thumbnail[aria-pressed="true"] .case-gallery__thumbnail-image { border-color: var(--dm-blue-650); }
.case-gallery__thumbnail[aria-pressed="true"] .case-gallery__thumbnail-label { color: var(--dm-blue-650); border-bottom-color: currentColor; }
.case-gallery__thumbnail[data-case-filter="after"] .case-gallery__thumbnail-image { border-width: 0; padding: 3px; }
.case-gallery__thumbnail[data-case-filter="after"] .case-gallery__thumbnail-label { border-bottom: 0; padding-bottom: 1px; }
.case-gallery__thumbnail:hover .case-gallery__thumbnail-label { color: var(--dm-blue-650); }
.case-gallery__thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--case-thumbnail-radius); }
.case-gallery__error { position: absolute; inset: 50% 4rem auto; margin: 0; text-align: center; color: var(--dm-graphite); background: var(--dm-paper); padding: .5rem; pointer-events: none; }
.case-lightbox { width: min(1400px, 96vw); max-width: none; height: 92dvh; max-height: none; margin: auto; padding: 1.5rem; border: 0; border-radius: 10px; background: var(--dm-blue-950); color: var(--dm-paper); }
.case-lightbox[open] { animation: case-lightbox-enter 220ms ease-out both; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; }
.case-lightbox::backdrop { background: rgba(0,0,0,.8); animation: case-lightbox-backdrop-enter 220ms ease-out both; }
@keyframes case-lightbox-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes case-lightbox-backdrop-enter { from { background: rgba(0,0,0,0); } to { background: rgba(0,0,0,.8); } }
.case-lightbox .case-gallery__control--previous { margin-left: 20px; }
.case-lightbox .case-gallery__control--next { margin-right: 20px; }
.case-lightbox__heading, .case-lightbox__caption { margin-inline: 20px; }
.case-lightbox__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.case-lightbox__heading h2 { font-size: 1.25rem; line-height: 1.3; margin: 0; max-width: none; overflow-wrap: anywhere; }
.case-lightbox__stage { min-height: 0; position: relative; }
.case-lightbox__stage > img { position: absolute; inset: 0; display: block; height: auto; width: auto; max-height: 100%; max-width: 100%; margin: auto; object-fit: contain; border-radius: 10px; }
.case-lightbox__stage > .case-photo-previous { width: 100%; height: 100%; }
.case-lightbox__caption { padding-bottom: 0; }
.case-history-archive :focus-visible { outline: 2px solid var(--dm-blue-650); outline-offset: 3px; }
.case-gallery__stage :focus-visible, .case-lightbox :focus-visible { outline-color: white; outline-offset: -4px; }
.reading-grid--case-history { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.reading-grid--case-history h3 { font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
.reading-grid--case-history p { overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .case-study { column-gap: 1.75rem; }
  .case-study__heading h2 { font-size: 2rem; }
  .reading-grid--case-history { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .case-study { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "heading" "gallery" "information"; row-gap: 2rem; }
}
@media (max-width: 820px) {
  .reading-grid--case-history { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .case-history-archive { gap: 3rem; }
  .case-study + .case-study { padding-top: 3rem; }
  .case-study__heading h2 { font-size: 1.875rem; }
  .case-study__steps { grid-template-columns: 1fr; margin-block: 2rem; }
  .case-study__steps li { grid-template-columns: 2rem 1fr; gap: 1rem; align-items: center; text-align: left; padding-bottom: 1rem; }
  .case-study__steps li::before, .case-study__steps li:first-child::before { left: 1rem; top: 1rem; width: 1px; height: 100%; }
  .case-study__steps li:last-child { padding-bottom: 0; }
  .case-study__steps li:last-child::before { display: none; }
  .case-study__steps strong { font-size: .875rem; }
  .case-study__facts { gap: 1rem; }
  .case-gallery__control--previous { left: .5rem; }
  .case-gallery__control--next { right: .5rem; }
  .case-lightbox { width: 100%; height: 100dvh; padding: 1rem; }
  .reading-grid--case-history { grid-template-columns: 1fr; }
}

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

/* Recapiti condivisi: stessa griglia e scala cromatica del sito. */
.contact-page-details__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: 0;
}
.contact-page-details__grid > div { min-width: 0; }
.contact-page-details__grid dt { margin-bottom: .5rem; }
.contact-page-details__grid dd { margin: 0; }
.contact-page-details__grid a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  overflow-wrap: anywhere;
  text-decoration: none;
  text-underline-offset: .2em;
}
@media (hover: hover) and (pointer: fine) {
  .contact-page-details__grid a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
  }
}
.contact-page-details__grid a:focus-visible { text-decoration: underline; }

@media (max-width: 820px) {
  .contact-page-details__grid { grid-template-columns: 1fr; }
}
/* Local Case History — approved Option 1 */
.case-mobile-title { display:none; }
.case-lightbox[open] { grid-template-rows:auto minmax(0,1fr) auto auto; gap:.5rem; }
.case-lightbox__tools { min-width:0; }
[data-gallery-filters] { display:flex; gap:.5rem; overflow:auto; padding:4px; }
[data-gallery-filters] button { min-height:44px; padding:.4rem .9rem; background:transparent; color:inherit; border:1px solid #8196a8; border-radius:24px; }
[data-gallery-filters] [aria-pressed=true] { background:white; color:#173a54; }
.case-detail__thumbs { display:flex; gap:10px; overflow:auto; padding:5px 2px; margin-bottom:20px; }
.case-detail__thumbs button { flex:0 0 65px; height:52px; border:1px solid transparent; padding:2px; border-radius:6px; background:transparent; }
.case-detail__thumbs button[aria-pressed=true] { border-color:#214b69; }
.case-detail__thumbs img { width:100%; height:100%; object-fit:contain; border-radius:4px; }
.case-lightbox .case-detail__thumbs { margin:4px 0; }
.case-lightbox .case-detail__thumbs button[aria-pressed=true] { border-color:white; }
.case-detail { padding:0; border:0; margin:0; width:100%; max-width:none; height:100dvh; max-height:none; background:#fff; color:var(--dm-blue-900); overflow:hidden; }
.case-detail[open] { display:block; }
.case-detail::backdrop { background:#07192f; }
.case-detail__header { height:86px; padding:calc(5px + env(safe-area-inset-top)) 20px 5px; display:flex; align-items:center; justify-content:space-between; background:#fff; }
.case-detail__header img { width:92px; height:76px; object-fit:contain; }
.case-detail__photo { position:absolute; inset:86px 0 0; background:#122e43; border-radius:16px 16px 0 0; overflow:hidden; }
.case-detail__photo > img { position:absolute; top:0; width:100%; height:52%; object-fit:contain; }
.case-detail__photo .case-photo-previous { height:52%; }
.case-detail__photo .case-gallery__control { top:22%; }
.case-detail__title { position:absolute; top:32%; left:0; right:0; padding:30px 22px 24px; background:linear-gradient(transparent,rgba(7,25,47,.94)); color:white; }
.case-detail__title h2 { margin:0; max-width:85%; font-size:1.7rem; line-height:1.15; }
.case-detail__title p { font-size:.85rem; margin:.4rem 0 0; letter-spacing:.05em; }
.case-detail__title output { position:absolute; right:22px; bottom:25px; font-size:.85rem; }
.case-detail__sheet { position:absolute; bottom:0; left:0; right:0; height:51%; border-radius:24px 24px 0 0; background:#fff; transition:height .25s ease; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom); box-shadow:0 -2px 12px #07192f12; }
.case-detail[data-sheet="0"] .case-detail__sheet { height:78px; }
.case-detail[data-sheet="0"] .case-detail__photo > img { height:calc(100% - 78px); }
.case-detail[data-sheet="0"] .case-detail__title { top:auto; bottom:78px; }
.case-detail[data-sheet="2"] .case-detail__sheet { height:calc(100% - 100px - env(safe-area-inset-top)); }
.case-detail__handle { touch-action:none; flex-shrink:0; padding:10px 18px 4px; }
.case-detail__handle > span { display:block; height:3px; width:40px; background:#7a8790; margin:0 auto 6px; border-radius:3px; }
.case-detail__handle > div { display:flex; justify-content:space-between; gap:4px; }
.case-detail__handle button { font:inherit; font-size:.7rem; border:0; min-height:32px; padding:4px; color:#38576d; background:transparent; }
.case-detail__handle button[aria-pressed=true] { text-decoration:underline; text-underline-offset:4px; }
.case-detail__content { padding:4px 22px 24px; overflow:hidden; overscroll-behavior:contain; }
.case-detail[data-sheet="2"] .case-detail__content { overflow-y:auto; }
.case-detail .case-study__facts { gap:0 18px; }
.case-detail .case-study__facts > div { padding:.65rem 0 .65rem 30px; }
.case-detail .case-study__facts svg { top:.85rem; }
.case-detail .case-study__facts dt { font-size:.75rem; }
.case-detail .case-study__facts dd { font-size:.85rem; }
[data-detail-description] { font-size:.9rem; line-height:1.6; }
.case-detail__enlarge { width:100%; border:0; border-radius:28px; padding:12px; color:white; background:#1b3b54; font:inherit; display:flex; align-items:center; justify-content:center; gap:12px; min-height:44px; }
@media(max-width:600px) {
 .case-study { display:block; }
 .case-study__heading,.case-study__information,.case-study > .case-gallery > .case-gallery__caption,.case-study > .case-gallery .case-gallery__control,.case-study .case-gallery__expand { display:none; }
 .case-study .case-gallery__stage { aspect-ratio:4/3; }
 .case-study .case-gallery__image { object-fit:contain; }
 .case-mobile-title { display:block; position:absolute; inset:auto 0 0; padding:35px 20px 20px; color:white; background:linear-gradient(transparent,rgba(7,25,47,.9)); font:1.65rem var(--font-editorial); text-align:left; }
 .case-study + .case-study { border:0; padding-top:0; }
 .case-lightbox { padding:max(.5rem,env(safe-area-inset-top)) .5rem max(.5rem,env(safe-area-inset-bottom)); }
 .case-lightbox__heading,.case-lightbox__caption { margin-inline:4px; }
}
@media(max-height:500px) and (orientation:landscape) {
 .case-detail__header { height:60px; }
 .case-detail__header img { height:54px; }
 .case-detail__photo { inset:60px 50% 0 0; }
 .case-detail__photo > img { height:100%; }
 .case-detail__title { top:auto; bottom:0; }
 .case-detail__sheet { left:50%; height:calc(100% - 60px)!important; }
 .case-detail__content { overflow-y:auto; }
}
@media(prefers-reduced-motion:reduce) { .case-detail__sheet { transition:none; } }
.case-detail__sheet { padding:0 0 env(safe-area-inset-bottom); }
.case-detail__title h2 { font-family:var(--font-editorial); font-weight:400; }
.case-detail:not([data-sheet="2"]) [data-detail-description] { display:none; }
@media(orientation:portrait) {
 .case-detail__photo > img { height:calc(49dvh - 86px); }
 .case-detail__photo .case-gallery__control { top:calc((49dvh - 86px)/2); }
 .case-detail__title { top:auto; bottom:51dvh; }
 .case-detail[data-sheet="0"] .case-detail__photo > img { height:calc(100% - 78px); }
}
.case-detail[data-sheet="0"] .case-detail__content { display:none; }

/* Requested desktop revision: remove caption and counter below the photo. */
@media (min-width: 601px) {
  .case-study > .case-gallery > .case-gallery__caption { display: none; }
}

/* Case History revision — 4 November: align the complete right column with the photograph. */
@media (min-width: 1001px) {
  .case-study { grid-template-areas:"gallery details"; grid-template-rows:auto; align-items:stretch; }
  .case-study > .case-gallery { display:flex; }
  .case-study > .case-gallery > .case-gallery__stage { flex:1; width:100%; min-height:100%; }
  .case-study__details { grid-area:details; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:clamp(1rem,1.6vw,1.5rem); }
  .case-study__details .case-study__information { display:flex; flex-direction:column; gap:clamp(1rem,1.6vw,1.5rem); }
  .case-study__details .case-study__heading h2 { font-size:clamp(1.75rem,2.7vw,2.5rem); }
  .case-study__details .case-study__locality { margin-bottom:.65rem; }
  .case-study__details .case-study__steps { margin:0; }
  .case-study__details .case-study__facts { gap:clamp(.25rem,.6vw,.75rem) 1.25rem; }
  .case-study__details .case-study__facts > div { padding:.7rem 0 .7rem 2rem; }
  .case-study__details .case-study__facts svg { top:.85rem; }
}
@media (max-width:1000px) { .case-study__details { display:contents; } }
.case-lightbox__filmstrip { display:flex; align-items:center; gap:.5rem; min-width:0; }
.case-lightbox__filmstrip > .case-detail__thumbs { flex:1; min-width:0; overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:#a9b7c3 transparent; overscroll-behavior-x:contain; }
.case-lightbox__filmstrip .case-detail__thumbs button { flex-basis:88px; height:66px; }
.case-lightbox__filmstrip > .case-gallery__control { width:36px; height:36px; flex-basis:36px; }
@media(max-width:600px) {
 .case-lightbox__filmstrip { gap:.25rem; }
 .case-lightbox__filmstrip .case-detail__thumbs button { flex-basis:68px; height:52px; }
}

/* Pin the right column to the photo edges; reserve the flexible middle for copy. */
.case-study__details .case-study__steps { display:none; }
@media (min-width:1001px) {
 .case-study__details { justify-content:flex-start; }
 .case-study__details .case-study__information { flex:1; }
 .case-study__details .case-study__description { flex:1; align-content:start; min-height:4.8em; }
 .case-study__details .case-study__facts > div:last-child { padding-bottom:0; }
}
/* Timeline is secondary: below 1280px the description keeps the available space. */
@media (min-width:1280px) {
 .case-study__details .case-study__steps { display:grid; }
}

/* Photo thumbnails live inside the main photograph, with independent horizontal scrolling. */
.case-gallery__filmstrip { position:absolute; z-index:2; left:10px; right:10px; bottom:10px; display:flex; align-items:center; gap:6px; padding:6px; border-radius:8px; background:rgba(7,25,47,.72); }
.case-gallery__filmstrip > .case-detail__thumbs { flex:1; min-width:0; margin:0; padding:2px; overflow-x:auto; overflow-y:hidden; scrollbar-width:thin; scrollbar-color:#a9b7c3 transparent; overscroll-behavior-x:contain; }
.case-gallery__filmstrip .case-detail__thumbs button { flex-basis:62px; height:48px; }
.case-gallery__filmstrip .case-detail__thumbs button[aria-pressed="true"] { border-color:white; }
.case-gallery__filmstrip > .case-gallery__control { width:32px; height:32px; flex-basis:32px; display:grid; }
.case-study .case-gallery__expand { bottom:90px; }
@media(max-width:600px) {
 .case-gallery__filmstrip { left:6px; right:6px; bottom:6px; gap:4px; padding:4px; }
 .case-gallery__filmstrip > .case-gallery__control { display:grid; }
 .case-gallery__filmstrip .case-detail__thumbs button { flex-basis:52px; height:44px; }
 .case-study .case-mobile-title { bottom:70px; }
}
@media(max-width:600px) {
 .case-study > .case-gallery .case-gallery__filmstrip > .case-gallery__control { display:grid; }
}

/* Direct scrolling: transparent thumbnails, no scrollbar or strip arrows. */
.case-gallery__filmstrip { background:transparent; padding:0; }
.case-gallery__filmstrip > [data-card-thumbs] { scrollbar-width:none; -ms-overflow-style:none; touch-action:pan-x pan-y pinch-zoom; cursor:grab; user-select:none; -webkit-user-select:none; -webkit-overflow-scrolling:touch; }
[data-card-thumbs]::-webkit-scrollbar { display:none; width:0; height:0; }
[data-card-thumbs].is-dragging, [data-card-thumbs].is-dragging button { cursor:grabbing; }
[data-card-thumbs] img { pointer-events:none; -webkit-user-drag:none; }

/* Thin white thumbnail outlines; gold on mouse hover and keyboard focus. */
.case-detail__thumbs button,
.case-detail__thumbs button[aria-pressed="true"],
.case-lightbox .case-detail__thumbs button[aria-pressed="true"],
.case-gallery__filmstrip .case-detail__thumbs button[aria-pressed="true"] {
 border:1px solid white;
 transition:border-color .15s ease;
}
@media (hover:hover) {
 .case-detail__thumbs button:hover,
 .case-detail__thumbs button[aria-pressed="true"]:hover,
 .case-lightbox .case-detail__thumbs button[aria-pressed="true"]:hover,
 .case-gallery__filmstrip .case-detail__thumbs button[aria-pressed="true"]:hover { border-color:rgb(234, 199, 93); }
}
.case-detail__thumbs button:focus-visible,
.case-lightbox .case-detail__thumbs button:focus-visible,
.case-gallery__filmstrip .case-detail__thumbs button:focus-visible { border-color:rgb(234, 199, 93); }

/* Keep the current photograph's thumbnail gold during arrow navigation. */
.case-detail__thumbs button[aria-pressed="true"],
.case-lightbox .case-detail__thumbs button[aria-pressed="true"],
.case-gallery__filmstrip .case-detail__thumbs button[aria-pressed="true"] { border-color:rgb(234, 199, 93); }

/* Highlight only the project card under the pointer, without shifting the layout. */
.case-study > .case-gallery > .case-gallery__stage::after {
 content:"";
 position:absolute;
 inset:0;
 border:1px solid transparent;
 border-radius:inherit;
 pointer-events:none;
 z-index:3;
 transition:border-color .15s ease;
}
@media (hover:hover) {
 .case-study:hover > .case-gallery > .case-gallery__stage::after { border-color:rgb(234, 199, 93); }
}
.case-study:has(:focus-visible) > .case-gallery > .case-gallery__stage::after { border-color:rgb(234, 199, 93); }

/* Ordered enlarged gallery: shared photo edges and more vertical photo space. */
.case-lightbox { width:min(1440px,96vw); height:96dvh; padding:clamp(10px,1.25vw,20px); }
.case-lightbox[open] { grid-template-rows:auto minmax(0,1fr) auto; gap:8px; }
.case-lightbox__heading,.case-lightbox__tools { width:min(100%,var(--lightbox-media-width,100%)); min-width:0; margin-inline:auto; }
.case-lightbox__heading { min-height:44px; }
.case-lightbox__heading h2 { font-size:clamp(1rem,1.3vw,1.25rem); }
.case-lightbox__stage { display:grid; place-items:center; min-width:0; }
.case-lightbox__photo-frame { position:relative; max-width:100%; max-height:100%; border-radius:10px; }
.case-lightbox__photo-frame > img { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; border-radius:inherit; }
.case-lightbox .case-gallery__control--previous { left:12px; margin:0; }
.case-lightbox .case-gallery__control--next { right:12px; margin:0; }
.case-lightbox__counter { position:absolute; bottom:12px; right:12px; z-index:1; padding:5px 10px; border-radius:20px; background:rgba(7,25,47,.72); color:white; font-size:.85rem; font-variant-numeric:tabular-nums; pointer-events:none; }
.case-lightbox [data-gallery-filters] { padding:2px 0 6px; }
.case-lightbox .case-lightbox__filmstrip { gap:0; }
.case-lightbox .case-lightbox__filmstrip > [data-gallery-thumbs] { padding:2px 0; margin:0; scrollbar-width:none; touch-action:pan-x pan-y pinch-zoom; cursor:grab; user-select:none; -webkit-user-select:none; -webkit-overflow-scrolling:touch; }
[data-gallery-thumbs]::-webkit-scrollbar { display:none; width:0; height:0; }
[data-gallery-thumbs].is-dragging,[data-gallery-thumbs].is-dragging button { cursor:grabbing; }
[data-gallery-thumbs] img { pointer-events:none; -webkit-user-drag:none; }
@media(max-width:600px) {
 .case-lightbox { width:100%; height:100dvh; padding:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom)); }
 .case-lightbox .case-gallery__control--previous { left:8px; }
 .case-lightbox .case-gallery__control--next { right:8px; }
 .case-lightbox__counter { right:8px; bottom:8px; }
}
.case-lightbox__heading h2 { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.case-lightbox[open] { grid-template-rows:auto minmax(0,var(--lightbox-media-height,1fr)) auto; align-content:center; }

/* Give the project highlight a small external gap without affecting layout. */
.case-study > .case-gallery > .case-gallery__stage::after {
 inset:-4px;
 border-radius:calc(var(--case-media-radius) + 4px);
}

/* iPhone: the user's hand-drawn blue card. Desktop remains unchanged. */
.case-mobile-card-title { display:none; }
@media (max-width:600px), (max-width:1000px) and (max-height:500px) and (pointer:coarse) {
 .case-study { max-width:600px; width:100%; margin-inline:auto; padding:0; border:0; border-radius:16px; min-width:0; }
 .case-study > .case-gallery { position:relative; display:grid; grid-template-columns:minmax(0,1fr); gap:10px; padding:14px 12px 12px; border-radius:16px; background:var(--dm-blue-950); }
 .case-study > .case-gallery::after { content:""; position:absolute; inset:-4px; border:1px solid transparent; border-radius:20px; pointer-events:none; }
 .case-study[data-case-active="true"] > .case-gallery::after,
 .case-study:has(:focus-visible) > .case-gallery::after { border-color:rgb(234,199,93); }
 .case-mobile-card-title { display:block; margin:0; max-width:none; text-align:center; color:var(--dm-paper); font:500 clamp(1rem,4.5vw,1.25rem)/1.3 var(--font-modern); overflow-wrap:anywhere; }
 .case-study > .case-gallery > .case-gallery__stage { display:contents; }
 .case-study > .case-gallery > .case-gallery__stage::after { display:none; }
 .case-study .case-gallery__image-button { height:auto; aspect-ratio:4/3; border-radius:10px; background:#102b43; cursor:zoom-in; touch-action:pan-y pinch-zoom; }
 .case-study .case-gallery__image { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
 .case-study .case-gallery__filmstrip { position:static; display:flex; width:100%; min-width:0; margin:0; padding:0; gap:0; border-radius:0; background:transparent; }
 .case-study .case-gallery__filmstrip > [data-card-thumbs] { width:100%; flex:1; gap:8px; padding:2px; margin:0; }
 .case-study .case-gallery__filmstrip .case-detail__thumbs button { flex-basis:clamp(44px,calc((100% - 32px)/5),72px); height:clamp(44px,13vw,58px); }
 .case-study .case-gallery__control,.case-study .case-gallery__caption,.case-study .case-study__details { display:none; }
 .case-lightbox .case-gallery__control--previous,.case-lightbox .case-gallery__control--next { display:none; }
 .case-lightbox__heading h2 { flex:1; text-align:center; }
 .case-lightbox__heading { position:relative; padding-inline:44px; }
 .case-lightbox__heading [data-case-action="close"] { position:absolute; right:0; }
}

/* On iPhone each photograph sets its own frame proportions; no enlarged dialog. */
@media (max-width:600px), (max-width:1000px) and (max-height:500px) and (pointer:coarse) {
 .case-study .case-gallery__image-button { aspect-ratio:var(--case-phone-photo-ratio,4/3); cursor:default; transition:aspect-ratio .22s ease; }
}

/* Timeline: align its outside endpoints with the data grid and add breathing room. */
@media (min-width:1280px) {
 .case-study__details .case-study__steps { position:relative; padding-block:8px 12px; margin-bottom:clamp(.5rem,1vw,1rem); }
 .case-study__details .case-study__steps::before { content:""; position:absolute; left:1rem; right:1rem; top:calc(8px + .95rem); height:1px; background:var(--dm-line); }
 .case-study__details .case-study__steps li { justify-items:center; gap:.95rem; }
 .case-study__details .case-study__steps li::before { display:none; }
 .case-study__details .case-study__steps li:first-child { justify-items:start; text-align:left; }
 .case-study__details .case-study__steps li:last-child { justify-items:end; text-align:right; }
}

@media(min-width:1280px) {
 .case-study__details .case-study__steps li:first-child span { justify-self:start; }
 .case-study__details .case-study__steps li:last-child span { justify-self:end; }
}

@media(min-width:1280px) {
 .case-study__details .case-study__steps { display:flex; justify-content:space-between; }
 .case-study__details .case-study__steps li { flex:0 0 2rem; width:2rem; min-width:0; grid-template-columns:minmax(0,1fr); }
 .case-study__details .case-study__steps strong { width:max-content; justify-self:center; }
 .case-study__details .case-study__steps li:first-child strong { justify-self:start; }
 .case-study__details .case-study__steps li:last-child strong { justify-self:end; }
}

/* Approved mobile project sheet — 4 November 2026. */
/* Scoped sheet styles: the archive and desktop layout retain their existing rules. */
.project-panel { --paper:#fbfaf7; --ink:#222b33; --blue:#071d35; --gold:#eac75d; inset:0; margin:0; padding:0; width:100%; max-width:none; height:100vh; height:100dvh; max-height:none; border:0; background:var(--paper); color:var(--ink); overflow:hidden; }
.project-panel[open] { display:flex; flex-direction:column; }
.project-panel::backdrop { background:#071d35; }
.project-panel *, .project-panel *::before, .project-panel *::after { box-sizing:border-box; }
.project-panel button { font:inherit; letter-spacing:0; text-transform:none; box-shadow:none; }
.project-panel__nav { min-height:76px; padding:8px 16px; padding-top:max(8px,env(safe-area-inset-top)); display:grid; grid-template-columns:1fr 74px 1fr; align-items:center; gap:8px; background:var(--paper); border-bottom:1px solid #d6dde2; flex-shrink:0; }
.project-panel__brand { grid-column:2; width:68px; height:58px; object-fit:contain; justify-self:center; }
.project-panel__close { grid-column:3; width:42px; height:42px; min-height:42px; padding:9px; display:grid; place-items:center; justify-self:end; border:1px solid #18334d; border-radius:12px; background:transparent; color:var(--blue); }
.project-panel svg { width:22px; height:22px; display:block; flex-shrink:0; }
.project-panel__scroll { flex:1; min-height:0; overflow:auto; overflow-x:hidden; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding-bottom:env(safe-area-inset-bottom); scroll-behavior:smooth; }
.project-panel__hero { position:relative; margin:0; background:var(--blue); aspect-ratio:4/3; touch-action:pan-y pinch-zoom; }
.project-panel__hero > button[data-zoom] { display:block; padding:0; border:0; width:100%; height:100%; border-radius:0; background:transparent; cursor:zoom-in; }
.project-panel__hero img { display:block; width:100%; height:100%; object-fit:contain; }
.project-panel__photo-nav { position:absolute; top:50%; transform:translateY(-50%); width:38px; height:38px; min-height:38px; padding:8px; display:grid; place-items:center; border:1px solid #ffffffb3; border-radius:50%; color:white; background:#071d3580; }
.project-panel__photo-nav[data-direction="-1"] { left:12px; }
.project-panel__photo-nav[data-direction="1"] { right:12px; }
.project-panel__counter { position:absolute; right:14px; bottom:12px; padding:5px 10px; background:#071d35d9; color:white; font-size:12px; border-radius:18px; font-variant-numeric:tabular-nums; pointer-events:none; }
.project-panel__thumbs { display:flex; gap:8px; overflow-x:auto; padding:12px 18px 9px; scrollbar-width:none; }
.project-panel__thumbs::-webkit-scrollbar { display:none; width:0; height:0; }
.project-panel__thumbs button { flex:0 0 58px; width:58px; height:48px; min-height:48px; padding:0; border:2px solid transparent; border-radius:6px; overflow:hidden; background:#e9edef; }
.project-panel__thumbs button[aria-pressed="true"] { border-color:var(--gold); }
.project-panel__thumbs img { display:block; width:100%; height:100%; object-fit:cover; }
.project-panel__body { padding:22px 24px 30px; }
.project-panel__eyebrow { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; color:#064b86; font-size:11px; letter-spacing:.13em; text-transform:uppercase; }
.project-panel__status { border:1px solid #c6d1d7; border-radius:20px; padding:5px 10px; color:#304855; font-size:10px; letter-spacing:.08em; }
.project-panel h1 { font:500 32px/1.15 var(--font-modern,Arial,sans-serif); max-width:none; letter-spacing:-.045em; margin:0; }
.project-panel__section { margin:28px 0 0; padding:24px 0 0; border-top:1px solid #d6dde2; }
.project-panel h2 { font:500 22px/1.25 var(--font-modern,Arial,sans-serif); letter-spacing:-.035em; margin:0 0 16px; max-width:none; }
.project-panel__description p { font-size:16px; line-height:1.65; color:#4e555b; margin:0 0 14px; }
.project-panel__facts { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:21px 20px; padding:0; margin:0; }
.project-panel__facts > div { min-width:0; }
.project-panel__facts dt { font-size:11px; color:#68727b; letter-spacing:.01em; margin:0 0 5px; }
.project-panel__facts dd { font-size:15px; color:var(--ink); font-weight:500; margin:0; line-height:1.4; overflow-wrap:anywhere; }
.project-panel__facts dd[data-key="surface"] { font-size:24px; line-height:1.15; letter-spacing:-.04em; }
.project-panel__steps { list-style:none; margin:0; padding:0; }
.project-panel__steps li { position:relative; display:grid; grid-template-columns:30px minmax(0,1fr); gap:14px; padding:0 0 24px; }
.project-panel__steps li:not(:last-child)::after { content:""; position:absolute; left:13px; top:29px; bottom:3px; width:1px; background:#ccd5dc; }
.project-panel__steps li:last-child { padding-bottom:0; }
.project-panel__step-number { display:block; padding-top:2px; color:#064b86; font:italic 18px/1.2 Georgia,serif; }
.project-panel__steps h3 { margin:0 0 5px; font-size:16px; font-weight:500; letter-spacing:-.02em; }
.project-panel__steps p { margin:0; font-size:14px; line-height:1.55; color:#626b73; }
.project-panel__return { margin-top:30px; width:100%; min-height:48px; border:1px solid #17334e; border-radius:5px; background:transparent; color:#17334e; font-size:13px; display:flex; gap:8px; align-items:center; justify-content:center; }
.project-panel button:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
.project-zoom { padding:0; margin:0; inset:0; width:100%; height:100vh; height:100dvh; max-width:none; max-height:none; border:0; background:#071d35; color:white; }
.project-zoom[open] { display:grid; grid-template-rows:64px minmax(0,1fr) 60px; }
.project-zoom::backdrop { background:#071d35; }
.project-zoom header { padding:10px 16px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.project-zoom header span { font-size:13px; }
.project-zoom header button { border:1px solid #ffffff80; background:transparent; color:white; width:40px; height:40px; min-height:40px; padding:9px; border-radius:12px; }
.project-zoom img { width:100%; height:100%; min-height:0; object-fit:contain; }
.project-zoom footer { display:flex; gap:20px; align-items:center; justify-content:center; font-size:13px; }
.project-zoom footer button { border:1px solid #ffffff80; background:transparent; color:white; width:40px; height:40px; min-height:40px; border-radius:50%; padding:8px; }
@media(min-width:700px) { .project-panel { max-width:600px; margin-inline:auto; } }
@media(prefers-reduced-motion:reduce) { .project-panel__scroll { scroll-behavior:auto; } }

/* Same decoded-image transition as the other project galleries. */
.project-panel__hero > button[data-zoom] { position:relative; overflow:hidden; }
.project-zoom > img { grid-area:2 / 1; }
.project-zoom > .case-photo-previous { position:relative; inset:auto; }

/* Approved iPhone and iPad cover cards, 4 November 2026. */
html[data-apple-case-cards] .case-cover-status { display:none; }
@media (max-width:1366px) {
 html[data-apple-case-cards] .case-study { display:block; width:100%; max-width:600px; min-width:0; margin-inline:auto; padding:0; border:0; border-radius:16px; background:transparent; }
 html[data-apple-case-cards] .case-study > .case-gallery { position:relative; top:auto; display:grid; grid-template-columns:minmax(0,1fr); gap:16px; padding:14px 12px 12px; border:0; border-radius:16px; background:var(--dm-blue-950); box-shadow:none; }
 html[data-apple-case-cards] .case-study > .case-gallery::after { display:block; content:""; position:absolute; inset:-4px; border:1px solid transparent; border-radius:20px; pointer-events:none; }
 html[data-apple-case-cards] .case-study[data-case-active="true"] > .case-gallery::after,
 html[data-apple-case-cards] .case-study:has(:focus-visible) > .case-gallery::after { border-color:#eac75d; }
 html[data-apple-case-cards] .case-mobile-card-title { display:block; max-width:none; margin:0; padding:0; text-align:center; color:var(--dm-paper); font:500 clamp(1rem,4.5vw,1.25rem)/1.3 var(--font-modern); overflow-wrap:anywhere; }
 html[data-apple-case-cards] .case-study .case-gallery__stage { display:contents; }
 html[data-apple-case-cards] .case-study .case-gallery__stage::after { display:none; }
 html[data-apple-case-cards] .case-study .case-gallery__image-button { position:relative; display:block; width:100%; height:auto; aspect-ratio:var(--case-cover-ratio,4/3); padding:0; border:0; border-radius:10px; transition:none; transform:none; overflow:hidden; background:var(--dm-blue-950); cursor:pointer; touch-action:pan-y pinch-zoom; }
 html[data-apple-case-cards] .case-study .case-gallery__image { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; border-radius:inherit; }
 html[data-apple-case-cards] .case-study .case-cover-status { position:absolute; z-index:2; left:12px; bottom:12px; display:inline-flex; align-items:center; max-width:calc(100% - 24px); padding:7px 11px; border:1px solid rgba(198,209,215,.85); border-radius:20px; background:rgba(251,250,247,.8); color:var(--dm-blue-900); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); font:500 11px/1.2 var(--font-modern); letter-spacing:.1em; text-transform:uppercase; overflow-wrap:anywhere; pointer-events:none; }
 html[data-apple-case-cards] .case-study .case-gallery__filmstrip,
 html[data-apple-case-cards] .case-study .case-gallery__control,
 html[data-apple-case-cards] .case-study .case-gallery__caption,
 html[data-apple-case-cards] .case-study .case-study__details { display:none; }
 /* Keyboard focus is indicated by the gold outer card perimeter above. */
 html[data-apple-case-cards] .case-study .case-gallery__image-button:focus { outline:none; }
}

/* A visual hint inside the existing accessible enlargement button.
   It adds no second focus target and stays out of approved mobile cover cards. */
.case-gallery__expand-hint { display:none; }
@media (min-width:1001px) {
 html:not([data-apple-case-cards]) .case-study .case-gallery__expand-hint {
  position:absolute; z-index:3; top:14px; right:14px;
  display:grid; place-items:center; width:40px; height:40px;
  border:1px solid rgba(255,255,255,.55); border-radius:50%;
  color:white; background:rgba(7,29,53,.82);
  box-shadow:0 2px 8px rgba(0,0,0,.16); pointer-events:none;
 }
 html:not([data-apple-case-cards]) .case-study .case-gallery__expand-hint svg { width:20px; height:20px; }
 html:not([data-apple-case-cards]) .case-gallery__image-button:hover .case-gallery__expand-hint,
 html:not([data-apple-case-cards]) .case-gallery__image-button:focus-visible .case-gallery__expand-hint { background:var(--dm-blue-950); }
}

/* Case history: fixed 3:2 frame, responsive up to 960 × 640.
   Images span its full width at their natural ratio. The button clips only
   vertical overflow, so portrait photographs never resize the frame.
   Keep the existing filmstrip dimensions, offsets and scrolling untouched.
   The nested guard excludes the existing coarse-pointer landscape mobile UI;
   Apple cover cards and every enlarged view retain their approved rules. */
@media (min-width:601px) {
 @media not all and (max-width:1000px) and (max-height:500px) and (pointer:coarse) {
  html:not([data-apple-case-cards]) .case-study > .case-gallery {
   display:flex;
   justify-content:flex-end;
   align-self:start;
  }
  html:not([data-apple-case-cards]) .case-study > .case-gallery > .case-gallery__stage {
   display:block;
   flex:none;
   width:min(100%,var(--case-desktop-photo-width-cap,960px));
   min-height:0;
   max-height:640px;
   aspect-ratio:3/2;
   background:transparent;
  }
  html:not([data-apple-case-cards]) .case-study > .case-gallery > .case-gallery__stage > .case-gallery__image-button {
   position:absolute;
   inset:0;
   min-width:0;
   min-height:0;
   height:100%;
  }
  html:not([data-apple-case-cards]) .case-study > .case-gallery > .case-gallery__stage > .case-gallery__image-button > img {
   position:absolute;
   inset:auto;
   top:50%;
   left:0;
   width:100%;
   height:auto;
   transform:translateY(-50%);
   object-fit:cover;
  }
  html:not([data-apple-case-cards]) .case-study > .case-gallery > .case-gallery__stage > .case-gallery__control {
   top:50%;
  }
  @media (min-width:1001px) {
   html:not([data-apple-case-cards]) .case-study {
    width:100%;
    max-width:1719px;
    margin-inline:auto;
    align-items:start;
   }
   html:not([data-apple-case-cards]) .case-study__details,
   html:not([data-apple-case-cards]) .case-study__heading,
   html:not([data-apple-case-cards]) .case-study__heading h2,
   html:not([data-apple-case-cards]) .case-study__information,
   html:not([data-apple-case-cards]) .case-study__description,
   html:not([data-apple-case-cards]) .case-study__facts,
   html:not([data-apple-case-cards]) .case-study__facts > div {
    min-width:0;
    max-width:100%;
    overflow-wrap:anywhere;
   }
   html:not([data-apple-case-cards]) .case-study[data-case-layout="side"] > .case-study__details {
    height:var(--case-desktop-photo-height);
    min-height:0;
    align-self:start;
   }
   html:not([data-apple-case-cards]) .case-study[data-case-layout="measure"] > .case-study__details {
    height:auto!important;
    min-height:0;
    max-height:none;
   }
   html:not([data-apple-case-cards]) .case-study[data-case-layout="measure"] > .case-study__details > .case-study__information,
   html:not([data-apple-case-cards]) .case-study[data-case-layout="measure"] .case-study__description {
    flex:0 0 auto;
   }
   html:not([data-apple-case-cards]) .case-study[data-case-layout="stacked"] {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto;
    grid-template-areas:"gallery" "details";
    max-width:var(--case-desktop-photo-width-cap,960px);
    row-gap:1.5rem;
   }
   html:not([data-apple-case-cards]) .case-study[data-case-layout="stacked"] > .case-gallery {
    justify-content:center;
   }
   html:not([data-apple-case-cards]) .case-study[data-case-layout="stacked"] > .case-study__details {
    height:auto;
    min-height:0;
   }
   html:not([data-apple-case-cards]) .case-study[data-case-layout="stacked"] > .case-study__details > .case-study__information,
   html:not([data-apple-case-cards]) .case-study[data-case-layout="stacked"] .case-study__description {
    flex:0 0 auto;
   }
  }
 }
}

/* Local iPhone trial: equal blue bands above/below, status on the bottom right. */
.case-cover-footer { display:none; }
@media(max-width:1366px) {
 html[data-apple-case-cards] .case-study > .case-gallery { grid-template-rows:1fr auto 1fr; row-gap:0; padding:0 12px; }
 html[data-apple-case-cards] .case-mobile-card-title { padding:14px 0 16px; align-content:center; }
 html[data-apple-case-cards] .case-study .case-cover-footer { display:flex; justify-content:flex-end; align-items:center; min-width:0; padding:12px 0; }
 html[data-apple-case-cards] .case-study .case-cover-footer .case-cover-status { position:static; left:auto; bottom:auto; max-width:100%; margin:0; }
}

/* Local iPhone trial: desktop-style expand control in the lower left blue band. */
@media(max-width:1366px) {
 html[data-apple-case-cards] .case-study .case-cover-footer { justify-content:space-between; padding-block:6px; }
 html[data-apple-case-cards] .case-study .case-cover-footer .case-cover-open {
  display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px;
  border:1px solid rgba(255,255,255,.55); border-radius:50%;
  color:white; background:rgba(7,29,53,.82); box-shadow:0 2px 8px rgba(0,0,0,.16);
 }
 html[data-apple-case-cards] .case-study .case-cover-footer .case-cover-open svg { width:20px; height:20px; }
 html[data-apple-case-cards] .case-study .case-cover-footer .case-cover-open:hover { background:var(--dm-blue-950); }
 html[data-apple-case-cards] .case-study .case-cover-footer .case-cover-open:focus-visible { outline:2px solid #eac75d; outline-offset:3px; }
}

/* Local trial: circular down arrow matches the status badge height. */
@media(max-width:1366px) {
 html[data-apple-case-cards] .case-study .case-cover-footer .case-cover-status { min-height:30px; box-sizing:border-box; }
 html[data-apple-case-cards] .case-study .case-cover-footer .case-cover-open { flex-basis:30px; width:30px; height:30px; }
 html[data-apple-case-cards] .case-study .case-cover-footer .case-cover-open svg { width:16px; height:16px; }
}

/* Preserve the desktop title composition; existing tablet/phone rules take over below 1001px. */
@media (min-width:1001px) {
 .projects-hero h1 {
  white-space:nowrap;
  max-width:none;
  font-size:min(7.4vw,7.8rem);
 }
}

/* Measure the actual copy and let the flexible middle shrink to that copy.
   Keep the stacked fallback when content really cannot fit beside the photo. */
@media (min-width:1001px) {
 html:not([data-apple-case-cards]) .case-study[data-case-layout="measure"] .case-study__description,
 html:not([data-apple-case-cards]) .case-study[data-case-layout="side"] .case-study__description { min-height:0; }
}

/* LOCAL PROPOSAL R2 — common opening hierarchy from tablet to broad desktop.
   Adapt to both usable width and height, including 2560x1336.
   iPhone/iPod keep the approved device-scoped design, including landscape. */
@media (min-width:768px) {
 html:not([data-apple-case-cards]) {
  --dm-intro-title-size:clamp(3rem,min(7.4vw,9.8svh),7.8rem);
  --dm-intro-copy-size:clamp(1.05rem,1.7vw,1.35rem);
  --dm-intro-label-size:1rem;
  --dm-intro-gap:clamp(1rem,2svh,1.5rem);
  --dm-intro-top:clamp(1.5rem,3svh,2.5rem);
  --dm-intro-bottom:clamp(2rem,4svh,3.5rem);
 }
 html:not([data-apple-case-cards]) :is(main > .hero,main > .inner-hero,main > .projects-hero,.home-local > .home-local__hero) {
  min-height:min(100svh,42rem);
  height:auto;
  padding:calc(var(--header-height) + var(--dm-intro-top)) var(--space-page) var(--dm-intro-bottom);
  display:grid;
  align-items:start;
  align-content:start;
  justify-items:start;
  text-align:left;
  overflow:visible;
 }
 html:not([data-apple-case-cards]) :is(.hero > .hero-inner,.projects-hero > .projects-hero__content) {
  width:100%; max-width:1180px; margin:0; padding:0;
 }
 html:not([data-apple-case-cards]) :is(.hero .type-title,.inner-hero h1,.projects-hero h1,.home-local .home-local__hero h1) {
  width:100%; max-width:1180px; margin:0 0 var(--dm-intro-gap);
  font-size:var(--dm-intro-title-size);line-height:var(--dm-heading-line-height);
  font-weight:430;letter-spacing:0;white-space:normal;overflow-wrap:normal;text-wrap:pretty;
 }
 html:not([data-apple-case-cards]) :is(.inner-hero > .section-label,.projects-hero .section-label,.home-local .home-local__hero > .section-label) {
  width:auto;max-width:100%;margin:0 0 var(--dm-intro-gap);font-size:var(--dm-intro-label-size);line-height:1.45;letter-spacing:.1em;text-align:left;
 }
 html:not([data-apple-case-cards]) :is(.hero .hero-copy,.inner-hero > p:not(.section-label),.projects-hero__content > p:not(.section-label)) {
  max-width:48rem;min-height:0;margin:0;font-size:var(--dm-intro-copy-size);line-height:1.5;
 }
 html:not([data-apple-case-cards]) .hero .type-title { min-height:2.24em; }
 html:not([data-apple-case-cards]) .hero .type-title [data-type-line="1"] { display:inline; }
 html:not([data-apple-case-cards]) .hero .hero-actions { margin-top:var(--dm-intro-gap);flex-direction:row;align-items:center; }
 html:not([data-apple-case-cards]) .hero .hero-actions > .button { width:13.25rem;max-width:100%;min-width:0;height:2.8rem;min-height:2.8rem;flex:0 0 13.25rem;padding:.75rem 1rem;text-align:center; }
 html:not([data-apple-case-cards]) .hero .scroll-indicator { position:relative;left:auto;bottom:auto;z-index:1;margin-top:1.5rem; }
 html:not([data-apple-case-cards]) .home-local .home-local__hero > .button { width:auto;max-width:100%;justify-self:start;margin:var(--dm-intro-gap) 0 0; }
}

/* Local review R3: give each complete homepage phrase the available desktop
   width. Keep font sizes and natural wrapping for accessibility; no nowrap
   that could force enlarged text out of the page. Tablet/phone rules remain.
   1440 CSS px is a layout breakpoint, independent of the physical Mac model. */
@media (min-width:1440px) {
 html:not([data-apple-case-cards]) main > .hero > .hero-inner,
 html:not([data-apple-case-cards]) main > .hero .type-title {
  max-width:none;
 }
 html:not([data-apple-case-cards]) main > .hero .type-title {
  text-wrap:wrap;
 }
}
