@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f4f2;
  --ink: #0d0d0d;
  --muted: #4c5552;
  --white: #ffffff;
  --teal: #2c5954;
  --teal-deep: #1e3f3b;
  --line: rgba(13, 13, 13, 0.1);
  --card: #f7f7f6;
  --shadow: 0 18px 50px rgba(20, 32, 30, 0.08);
  --nav: 16px;
  --hero: 26px;
  --card-radius: 20px;
  --pill: 999px;
  --gutter: clamp(16px, 3vw, 36px);
  --max: 1368px;
  --header: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 50;
}

.skip:focus { top: 16px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 8px 10px 0;
  margin-bottom: -58px;
  pointer-events: none;
}

.nav {
  width: 100%;
}

.nav {
  pointer-events: auto;
  max-width: none;
  margin: 0;
  min-height: var(--header);
  background: var(--white);
  border-radius: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 22px;
  box-shadow: 0 8px 30px rgba(13, 13, 13, 0.04);
  position: relative;
  animation: nav-in 0.75s cubic-bezier(0.12, 0.23, 0.5, 1) both;
  transition: box-shadow 0.35s ease, transform 0.45s cubic-bezier(0.12, 0.23, 0.5, 1);
}

.nav-links a,
.nav > .btn {
  animation: rise 0.7s cubic-bezier(0.12, 0.23, 0.5, 1) both;
}

.nav-links li:nth-child(1) a { animation-delay: 0.14s; }
.nav-links li:nth-child(2) a { animation-delay: 0.22s; }
.nav-links li:nth-child(3) a { animation-delay: 0.3s; }
.nav-links li:nth-child(4) a { animation-delay: 0.38s; }
.nav > .btn { animation-delay: 0.46s; }

.nav.settled,
.nav-links a.settled,
.nav > .btn.settled { animation: none; }

.topbar.is-scrolled .nav { box-shadow: 0 14px 36px rgba(13, 13, 13, 0.12); }

.topbar.is-away .nav {
  animation: none;
  transform: translateY(calc(-100% - 28px));
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.logo img {
  height: 56px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  text-decoration: none;
  padding: 0 16px;
  border-radius: var(--pill);
}

.nav-links a {
  transition: background-color 0.2s cubic-bezier(0.5, 0, 0.88, 0.77);
}

.nav-links a:hover { background: rgba(13, 13, 13, 0.04); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
  transition: transform 0.3s cubic-bezier(0.44, 0, 0.56, 1), top 0.3s cubic-bezier(0.44, 0, 0.56, 1), background-color 0.2s;
}

.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--pill);
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.btn {
  transition: transform 0.45s cubic-bezier(0.22, 1.15, 0.36, 1), background-color 0.2s cubic-bezier(0.5, 0, 0.88, 0.77);
}

.btn:hover {
  background: var(--teal-deep);
  transform: translateY(-4px);
}

.btn:active { transform: translateY(-1px) scale(0.98); }

.btn-light {
  background: #e7eeec;
  color: var(--teal-deep);
}

.btn-light:hover { background: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: rgba(13, 13, 13, 0.04); }

.btn svg { flex: none; }

.hero {
  min-height: 680px;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  border-radius: var(--hero);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(243, 244, 242, 0.05) 0%, rgba(32, 48, 45, 0.28) 38%, rgba(12, 22, 20, 0.82) 100%),
    url("../assets/studio-panorama.jpg") center 48% / cover no-repeat;
  color: var(--white);
}

.hero-inner {
  width: min(920px, 100%);
  padding: clamp(28px, 5vw, 56px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 14px 4px 4px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  text-decoration: none;
  margin-bottom: 22px;
}

.badge b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--pill);
  padding: 6px 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 500;
  max-width: 22ch;
  letter-spacing: -0.035em;
}

.hero p {
  max-width: 32ch;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--gutter);
}

.eyebrow {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 14px;
}

.eyebrow.light { color: rgba(255, 255, 255, 0.78); }

.about-grid,
.split,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 40px;
}

.about-grid { grid-template-columns: minmax(240px, 0.82fr) 1.2fr; align-items: center; }

.portrait {
  min-height: 460px;
  border-radius: var(--card-radius);
  background:
    linear-gradient(160deg, rgba(44, 89, 84, 0.2), rgba(13, 13, 13, 0.35)),
    url("../assets/studio-panorama.jpg") center 42% / cover no-repeat;
}

.about-copy h2,
.section h2,
.close h2,
.banner h2 {
  font-size: clamp(30px, 3vw, 44px);
  max-width: 18ch;
}

.role {
  margin: 14px 0 18px;
  color: var(--teal);
  font-weight: 500;
}

.about-copy p + p { margin-top: 14px; color: var(--muted); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stats span { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; }

.sheet {
  background: transparent;
  border-radius: 28px;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 88px clamp(20px, 3vw, 48px);
}

.sheet-head,
.section-head,
.banner-copy {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 40px;
}

.sheet-head p,
.section-head p { max-width: 42ch; color: var(--muted); }

.areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.area {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.area-index {
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 14px;
}

.area h3 { font-size: 28px; margin: 12px 0; }

.area p { color: var(--muted); }

.area ul {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
}

.area li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.area,
.note,
.office,
.feature {
  transition: transform 0.45s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.area:hover,
.note:hover,
.office:hover,
.feature:hover { transform: translateY(-4px); }

.area .btn { margin-top: auto; align-self: flex-start; }

.area:last-child:nth-child(odd) { grid-column: 1 / -1; }

.people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.people.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.more:hover { text-decoration: underline; }

.about-copy .more { margin-top: 22px; }

.banner .more {
  display: flex;
  width: fit-content;
  color: var(--white);
  margin-top: 16px;
}

.matters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.matters a {
  display: flex;
  align-items: flex-end;
  min-height: 148px;
  padding: 18px;
  background: var(--white);
  border-radius: var(--card-radius);
  text-decoration: none;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  transition: transform 0.45s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.matters a:hover { transform: translateY(-4px); }

.places {
  list-style: none;
  margin: 16px 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.places a {
  display: block;
  background: var(--white);
  border-radius: 16px;
  padding: 18px 20px;
  text-decoration: none;
}

.places strong {
  display: block;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.places span { color: var(--muted); font-size: 15px; }

.news.brief { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.person {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 12px 12px 22px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.person:hover { transform: translateY(-4px); }

.person-visual {
  aspect-ratio: 1;
  height: auto;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  font-size: 54px;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 18px;
}

.person-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.person:nth-child(3) .person-visual { background: linear-gradient(160deg, #8d8474, #3f4038); }

.news {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.news a,
.news li {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  text-decoration: none;
  color: inherit;
}

.news a {
  transition: transform 0.45s cubic-bezier(0.22, 1.15, 0.36, 1);
}

.news a:hover { transform: translateY(-4px); }

.news img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-body { padding: 18px 20px 22px; }

.news-meta {
  color: var(--muted);
  font-size: 13px;
}

.news h3 {
  margin: 8px 0 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.news p {
  color: var(--muted);
  font-size: 15px;
}

.news-more {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 600;
}

.page a {
  color: var(--teal);
  font-weight: 600;
}

.article-cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 22px;
}

.article .news-meta { margin-bottom: 12px; }
.article h1 { max-width: 18ch; }
.article .lead { font-size: 18px; margin-bottom: 18px; }

.person { color: inherit; text-decoration: none; }
.person h3 { font-size: 22px; padding: 0 10px; }
.person .role { padding: 0 10px; margin-bottom: 8px; color: var(--teal); }
.person p:last-child:not(.role) { color: var(--muted); padding: 0 10px; font-size: 15px; }

.banner {
  max-width: var(--max);
  margin: 0 auto;
  border-radius: var(--hero);
  min-height: 520px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(16, 32, 29, 0.88) 10%, rgba(44, 89, 84, 0.45) 70%),
    url("../assets/studio-panorama.jpg") center 30% / cover no-repeat;
}

.banner h2 { max-width: 14ch; }

.banner p { max-width: 46ch; margin: 16px 0 24px; color: rgba(255, 255, 255, 0.88); }

.phone {
  display: block;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 18px;
}

.note a { color: var(--teal); }

.track-wrap { position: relative; }

.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max(280px, calc((100% - 32px) / 2.4));
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: 8px;
  cursor: grab;
}

.track::-webkit-scrollbar { display: none; }

.track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.track.is-dragging .note { transform: none; }

.note {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  min-height: 230px;
  box-shadow: var(--shadow);
}

.note span { color: var(--teal); font-size: 14px; font-weight: 600; }
.note h3 { font-size: 22px; margin: 12px 0; }
.note p { color: var(--muted); }

.arrows {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.arrows button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: var(--white);
  cursor: pointer;
}

.arrows button {
  transition: transform 0.15s cubic-bezier(0.5, 0, 0.88, 0.77), background-color 0.2s;
}

.arrows button:hover { background: #e7eeec; }
.arrows button:active { transform: scale(0.9); }

.section,
.sheet,
.contact,
.features {
  scroll-margin-top: 108px;
}

.features {
  background: var(--teal);
  color: var(--white);
}

.features .section { padding-top: 88px; padding-bottom: 88px; }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) 1fr 1fr;
  gap: 18px;
}

.feature-intro { grid-row: 1 / span 2; }

.feature-intro h2 { max-width: 12ch; }
.feature-intro p { margin: 16px 0 22px; color: rgba(255, 255, 255, 0.82); }

.feature {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius);
  padding: 24px;
}

.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { color: rgba(255, 255, 255, 0.8); }

.faq-list { display: grid; gap: 10px; }

.faq-item {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.faq-item button span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.3s cubic-bezier(0.44, 0, 0.56, 1);
}

.faq-item.open button span { transform: rotate(45deg); }

.faq-item .answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s cubic-bezier(0.12, 0.23, 0.5, 1), opacity 0.3s cubic-bezier(0.5, 0, 0.88, 0.77);
}

.faq-item .answer > div {
  overflow: hidden;
  padding: 0 22px;
  color: var(--muted);
}

.faq-item.open .answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item.open .answer > div { padding-bottom: 20px; }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 22px 0;
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: drift 32s linear infinite;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.marquee span { color: var(--muted); }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.close {
  text-align: left;
  padding-bottom: 40px;
}

.close h2 { max-width: 16ch; margin-bottom: 22px; }

.contact {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  margin-top: 28px;
}

.offices, .panel {
  display: grid;
  gap: 14px;
}

.office, .panel {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 22px;
}

.office h3, .panel h3 { font-size: 20px; margin-bottom: 8px; }
.office h3 + p + h3 { margin-top: 18px; }
.office p, .panel p, .panel a { color: var(--muted); }
.office a { color: var(--teal); }

.lawyers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 10px;
  margin-top: 4px;
}

.lawyer {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.page .lawyer { background: var(--white); }

.lawyer img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 18%;
}

.lawyer h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lawyer .lawyer-role {
  margin: 3px 0 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.lawyer dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 8px 16px;
  margin: 10px 0 0;
}

.lawyer dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.lawyer dd {
  margin: 1px 0 0;
  font-size: 14px;
  line-height: 1.35;
}

.lawyer dd a { overflow-wrap: anywhere; }

.form {
  display: grid;
  gap: 12px;
}

label { font-size: 14px; font-weight: 500; display: grid; gap: 6px; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

textarea { min-height: 120px; resize: vertical; }

input:focus, select:focus, textarea:focus { border-color: var(--teal); }

.form .hint { color: var(--muted); font-size: 13px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--gutter) 28px;
  background: #d5e2dd;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

.footer h2 { font-size: 20px; margin-bottom: 10px; }
.footer p, .footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer li { margin: 6px 0; }

.dock {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: 12px;
  width: min(640px, calc(100% - 16px));
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(13, 13, 13, 0.16);
  transform: translate(-50%, calc(100% + 28px));
  transition: transform 0.45s cubic-bezier(0.12, 0.23, 0.5, 1);
  pointer-events: none;
}

.dock.is-on {
  transform: translate(-50%, 0);
  pointer-events: auto;
}

body:not(:has(.hero)):has(.dock.is-on) {
  padding-bottom: 132px;
}

.dock-person {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "photo name"
    "photo role"
    "cta cta";
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  text-decoration: none;
  border-radius: 16px;
}

.dock-person:hover { background: rgba(13, 13, 13, 0.04); }

.dock-person img {
  grid-area: photo;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 12%;
}

.dock-person strong {
  grid-area: name;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dock-person small {
  grid-area: role;
  justify-self: start;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  padding: 0;
  background: none;
  border-radius: 0;
}

.dock-cta {
  grid-area: cta;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  border-radius: var(--pill);
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

.dock-person:hover .dock-cta { background: var(--teal-deep); }
.footer ul { list-style: none; margin: 0; padding: 0; }

.legal {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.legal a { color: var(--muted); }

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px var(--gutter) 80px;
}

.page-wide { max-width: var(--max); }

.page h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 12px; }
.page h2 { font-size: 26px; margin: 28px 0 8px; scroll-margin-top: 120px; }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 18px; }
.page a.btn { color: var(--white); font-weight: 500; }
.page .news a { color: inherit; font-weight: 400; }
.page .news-more { color: var(--teal); font-weight: 600; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.crumbs a { font-weight: 600; text-decoration: none; }

.bio {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: start;
  margin: 22px 0 8px;
  scroll-margin-top: 120px;
}

.bio img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

main { overflow-x: clip; }

main > .section,
main > .sheet,
main > .contact,
main > .marquee {
  position: relative;
  isolation: isolate;
}

main > .section::before,
main > .sheet::before,
main > .contact::before,
main > .marquee::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--band);
}

#studio { --band: #ffffff; }
#aree { --band: #d3e4de; }
#professionisti { --band: #f4ecdf; }
#contatti { --band: #e3ebf1; }
#recensioni { --band: #fff6ea; }
#metodo { --band: #d7e6e1; }
#domande { --band: #f3eee4; }
.marquee { --band: #ffffff; }
#notizie { --band: #e5f0eb; }
.close { --band: #ffffff; }

@media (max-width: 980px) {
  .about-grid,
  .areas,
  .people,
  .feature-grid,
  .contact-grid,
  .footer-grid,
  .stats,
  .matters,
  .places {
    grid-template-columns: 1fr 1fr;
  }

  .news.brief { grid-template-columns: 1fr; }

  .feature-grid,
  .feature-intro { grid-template-columns: 1fr; grid-row: auto; }
  .portrait { min-height: 320px; }
  .logo img { height: 46px; }
}

@media (max-width: 760px) {
  .topbar { padding: 12px 0 0; }
  .nav {
    width: min(640px, calc(100% - 16px));
    margin-left: auto;
    margin-right: auto;
  }

  .menu-toggle { display: grid; place-items: center; }
  .nav .btn { margin-left: auto; }

  .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-radius: var(--nav);
    padding: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.02, 0.35, 0.42, 1.11), transform 0.3s cubic-bezier(0.02, 0.35, 0.42, 1.11), visibility 0.3s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-links .btn { width: 100%; }

  .about-grid,
  .areas,
  .people,
  .stats,
  .contact-grid,
  .footer-grid,
  .sheet-head,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero { min-height: 620px; border-radius: 20px; }
  .section, .sheet { padding: 64px var(--gutter); }
  .people {
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-behavior: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    cursor: grab;
  }
  .people::-webkit-scrollbar { display: none; }
  .people.is-dragging { cursor: grabbing; user-select: none; }
  .people.is-dragging .person { transform: none; }
  .people.pair {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .news,
  .matters,
  .places { grid-template-columns: 1fr; }

  .matters a { min-height: 0; font-size: 20px; }
  .bio { grid-template-columns: 1fr; }

  body:has(.hero) {
    font-size: 15px;
    line-height: 1.45;
  }

  body:has(.hero) .hero {
    min-height: 400px;
  }

  body:has(.hero) .hero-inner {
    padding: 18px 16px 18px;
  }

  body:has(.hero) .badge {
    min-height: 34px;
    margin-bottom: 10px;
    gap: 8px;
    font-size: 13px;
  }

  body:has(.hero) .hero h1 {
    font-size: 26px;
  }

  body:has(.hero) .hero p {
    margin: 8px 0 12px;
    font-size: 14px;
  }

  body:has(.hero) .hero .btn,
  body:has(.hero) .banner .btn,
  body:has(.hero) .close .btn {
    min-height: 40px;
  }

  body:has(.hero) .section,
  body:has(.hero) .sheet {
    padding: 22px var(--gutter);
  }

  body:has(.hero) .features .section {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  body:has(.hero) .sheet {
    border-radius: 18px;
  }

  body:has(.hero) .eyebrow {
    margin-bottom: 4px;
    font-size: 13px;
  }

  body:has(.hero) .about-copy h2,
  body:has(.hero) .section h2,
  body:has(.hero) .close h2,
  body:has(.hero) .banner h2 {
    font-size: 22px;
  }

  body:has(.hero) .sheet-head,
  body:has(.hero) .section-head {
    margin-bottom: 12px;
    gap: 6px;
  }

  body:has(.hero) .about-grid {
    gap: 12px;
  }

  body:has(.hero) .portrait {
    display: none;
  }

  body:has(.hero) .role {
    margin: 6px 0;
    font-size: 14px;
  }

  body:has(.hero) .about-copy p + p {
    margin-top: 6px;
  }

  body:has(.hero) .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
  }

  body:has(.hero) .stats strong {
    font-size: 15px;
    margin-bottom: 2px;
  }

  body:has(.hero) .stats span {
    font-size: 11px;
    line-height: 1.3;
  }

  body:has(.hero) .areas {
    gap: 8px;
  }

  body:has(.hero) .area {
    display: grid;
    grid-template-columns: 1.8rem minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 2px;
    padding: 10px 12px;
    min-height: 0;
  }

  body:has(.hero) .area-index {
    grid-row: 1 / span 2;
    padding-top: 2px;
  }

  body:has(.hero) .area h3 {
    font-size: 16px;
    margin: 0;
  }

  body:has(.hero) .area > p {
    font-size: 13px;
    line-height: 1.35;
  }

  body:has(.hero) .area ul {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    margin: 4px 0 0;
  }

  body:has(.hero) .area li {
    border: 0;
    padding: 0;
    font-size: 12px;
    color: var(--muted);
  }

  body:has(.hero) .area li:not(:last-child)::after {
    content: " · ";
    color: var(--teal);
  }

  body:has(.hero) .area .btn {
    grid-column: 1 / -1;
    margin-top: 6px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  body:has(.hero) .people {
    grid-auto-columns: 78%;
    gap: 10px;
  }

  body:has(.hero) .person {
    padding: 8px 8px 12px;
  }

  body:has(.hero) .person-visual {
    margin-bottom: 8px;
    font-size: 32px;
  }

  body:has(.hero) .person h3 {
    font-size: 16px;
  }

  body:has(.hero) .person p:last-child {
    font-size: 13px;
    line-height: 1.35;
  }

  body:has(.hero) .banner {
    min-height: 0;
    padding: 18px 16px;
    border-radius: 16px;
  }

  body:has(.hero) .banner p {
    margin: 6px 0 10px;
    font-size: 14px;
  }

  body:has(.hero) .phone {
    font-size: 26px;
    margin-bottom: 8px;
  }

  body:has(.hero) .contact {
    margin-bottom: 0;
  }

  body:has(.hero) .contact-grid {
    margin-top: 10px;
    gap: 8px;
  }

  body:has(.hero) .offices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body:has(.hero) .offices .office:last-child {
    grid-column: 1 / -1;
  }

  body:has(.hero) .office,
  body:has(.hero) .panel {
    padding: 12px;
  }

  body:has(.hero) .office h3,
  body:has(.hero) .panel h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  body:has(.hero) .lawyer {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  body:has(.hero) .lawyer img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  body:has(.hero) .lawyer h4 { font-size: 15px; }

  body:has(.hero) .lawyer dd { font-size: 13px; }

  body:has(.hero) .form {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }

  body:has(.hero) .form > :not(label:nth-of-type(5)):not(label:nth-of-type(6)) {
    grid-column: 1 / -1;
  }

  body:has(.hero) input,
  body:has(.hero) select,
  body:has(.hero) textarea {
    padding: 8px 12px;
  }

  body:has(.hero) textarea {
    min-height: 64px;
  }

  body:has(.hero) .track {
    grid-auto-columns: 86%;
    gap: 10px;
  }

  body:has(.hero) .note {
    min-height: 0;
    padding: 12px 14px;
  }

  body:has(.hero) .note h3 {
    font-size: 16px;
    margin: 4px 0;
  }

  body:has(.hero) .note p {
    font-size: 13px;
    line-height: 1.35;
  }

  body:has(.hero) .arrows {
    margin-top: 8px;
  }

  body:has(.hero) .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body:has(.hero) .feature-intro {
    grid-column: 1 / -1;
  }

  body:has(.hero) .feature-intro p {
    margin: 6px 0 10px;
    font-size: 14px;
  }

  body:has(.hero) .feature {
    padding: 12px;
  }

  body:has(.hero) .feature h3 {
    font-size: 15px;
    margin-bottom: 4px;
  }

  body:has(.hero) .feature p {
    font-size: 13px;
    line-height: 1.35;
  }

  body:has(.hero) .faq-list {
    gap: 6px;
  }

  body:has(.hero) .faq-item button {
    padding: 11px 12px;
    font-size: 14px;
    line-height: 1.3;
  }

  body:has(.hero) .marquee {
    padding: 8px 0;
  }

  body:has(.hero) .marquee-track {
    font-size: 14px;
    gap: 16px;
  }

  body:has(.hero) .news {
    gap: 8px;
  }

  body:has(.hero) .news a {
    flex-direction: row;
  }

  body:has(.hero) .news img {
    width: 84px;
    height: 100%;
    min-height: 84px;
    flex: none;
  }

  body:has(.hero) .news-body {
    padding: 8px 10px 10px;
    min-width: 0;
  }

  body:has(.hero) .news h3 {
    font-size: 14px;
    margin: 2px 0 4px;
  }

  body:has(.hero) .news-body > p:not(.news-meta) {
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body:has(.hero) .news-more {
    margin-top: 4px;
    font-size: 12px;
  }

  body:has(.hero) .close h2 {
    margin-bottom: 10px;
  }

  body:has(.hero) .footer {
    padding: 20px var(--gutter) 16px;
  }

  body:has(.hero) .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
  }

  body:has(.hero) .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  body:has(.hero) .footer h2 {
    font-size: 16px;
    margin-bottom: 4px;
  }

  body:has(.hero) .legal {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 12px;
  }
}

.preload .hero-inner > *,
.preload .portrait,
.preload .about-copy > *,
.preload .stats > *,
.preload .sheet-head > *,
.preload .area,
.preload .section-head > *,
.preload .person,
.preload .banner > div > *,
.preload .office,
.preload .panel,
.preload .note,
.preload .feature-intro > *,
.preload .feature,
.preload .faq-item,
.preload .news a,
.preload .close > * {
  opacity: 0;
}

.rise {
  opacity: 0;
  transform: translateY(20px);
}

.rise.in {
  animation: rise 0.9s cubic-bezier(0.12, 0.23, 0.5, 1) both;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .rise { opacity: 1; transform: none; animation: none; }
  .btn, .area, .note, .office, .feature, .person, .person-visual img, .news a, .arrows button, .faq-item .answer, .faq-item button span, .nav-links, .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after, .dock {
    transition: none;
  }
  .nav, .nav-links a, .nav > .btn { animation: none; }
  .topbar.is-away .nav { transform: none; }
}
