@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap');

:root {
  --black: #282828;
  --green: #6f8657;
  --beige: #f1eee9;
  --grey: #f6f5f3;
  --gutter: clamp(20px, 2.57vw, 37px);
  --header-height: 186px;
  --script: "Autography", "Segoe Script", "Snell Roundhand", cursive;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Saans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; color: var(--black); background: #fff; font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0 0 1em; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  padding: 42px calc(var(--gutter) + 36px) 0;
  transition: height .4s ease, padding .4s ease, background .4s ease;
}
.site-header::before {
  content: none;
}
.site-header.is-scrolled { height: 128px; padding-top: 0; }
.brand { position: relative; grid-column: 1 / span 3; width: 228px; height: 69px; }
.brand img { position: absolute; inset: 0; width: 100%; height: 69px; object-fit: contain; transition: opacity .35s ease; }
.brand-dark { opacity: 0; }
.site-header.is-scrolled .brand-light, .page-inner .brand-light { opacity: 0; }
.site-header.is-scrolled .brand-dark, .page-inner .brand-dark { opacity: 1; }
.main-nav {
  grid-column: 4 / span 6;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 37px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  transition: box-shadow .35s ease, background .35s ease;
}
.site-header.is-scrolled .main-nav, .page-inner .main-nav { background: rgba(255,255,255,.92); box-shadow: 0 8px 25px rgba(40,40,40,.05); }
.main-nav a { min-width: 110px; padding: 12px 18px; border-radius: 33px; color: var(--beige); font-weight: 500; line-height: 20px; text-align: center; transition: background .25s ease, color .25s ease; }
.site-header.is-scrolled .main-nav a, .page-inner .main-nav a { color: var(--black); }
.main-nav a:hover, .main-nav a.is-active { color: var(--grey) !important; background: var(--black); }
.language { grid-column: 12; justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--grey); background: var(--black); font-weight: 500; }
.menu-toggle { display: none; }

.hero { position: relative; height: 808px; margin: var(--gutter) var(--gutter) 0; overflow: hidden; border-radius: 50px; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.08); }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 75%; }
.hero h1 { position: absolute; z-index: 1; top: 224px; left: 5.35%; margin: 0; color: var(--beige); font-family: var(--serif); font-size: clamp(64px, 7.08vw, 102px); font-weight: 400; line-height: .98; letter-spacing: -.02em; }

.section { display: grid; grid-template-columns: repeat(12, 1fr); position: relative; padding-inline: var(--gutter); }
.script-title { margin: 0; color: var(--green); font-family: var(--script); font-size: clamp(60px, 7.08vw, 102px); font-weight: 400; line-height: .98; letter-spacing: -.02em; }
.cabinet-section { min-height: 565px; padding-top: 105px; padding-bottom: 120px; border-radius: 0 0 50px 50px; background: #fff; }
.cabinet-section .script-title { grid-column: 1 / span 4; margin-left: 32px; }
.section-copy { grid-column: 6 / span 7; max-width: 758px; }
.large-copy { font-size: clamp(22px, 2.22vw, 32px); line-height: 1.25; }
.outline-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; margin-top: 4px; padding: 9px 30px; border: 2px solid var(--green); border-radius: 33px; font-size: 16px; font-weight: 500; }
.outline-button:hover, .email-pill:hover { color: #fff; background: var(--green); }

.expertise-section { min-height: 762px; padding-top: 180px; border-radius: 0 0 50px 50px; background: var(--grey); }
.expertise-section .script-title { grid-column: 1 / span 4; margin-left: 32px; }
.expertise-list { grid-column: 6 / span 7; margin: -10px 0 0; padding: 0; list-style: none; }
.expertise-list li { position: relative; padding-left: 46px; }
.expertise-list li::before, .detail-expertise-nav a::before { content: ""; position: absolute; left: 0; top: 32px; width: 17px; height: 17px; border-radius: 50%; background: var(--green); }
.expertise-list a { display: inline-block; font-family: var(--serif); font-size: clamp(31px, 3.2vw, 46px); line-height: 1.74; letter-spacing: -.02em; }
.expertise-list a:hover { color: var(--green); }

.lawyer-section { min-height: 954px; padding-top: 116px; align-content: start; }
.lawyer-section .script-title { grid-column: 5 / span 4; grid-row: 1; text-align: center; }
.portrait { grid-column: 3 / span 4; grid-row: 2; width: 410px; height: 533px; margin: 45px 0 0 16px; border-radius: 10px; object-fit: cover; }
.lawyer-copy { grid-column: 7 / span 5; grid-row: 2; margin: 35px 0 0 48px; max-width: 520px; font-size: 16px; line-height: 1.5; }
.lawyer-copy h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 56px; font-weight: 400; line-height: .9; letter-spacing: -.02em; }
.role { margin-bottom: 58px; color: var(--green); font-weight: 500; }
.social-links { display: flex; gap: 20px; align-items: center; margin-top: 28px; }
.social-links img { width: 28px; height: 28px; object-fit: contain; }
.social-links a:last-child img { width: 35px; transform: rotate(180deg) scaleX(-1); }

.contact-card { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, 1fr); min-height: 318px; margin: 0 var(--gutter); padding: 84px 76px; overflow: hidden; border-radius: 50px; background: var(--beige); }
.contact-card .script-title { grid-column: 1 / span 3; align-self: center; }
.contact-details { grid-column: 4 / span 5; display: flex; flex-direction: column; align-self: center; }
.contact-details a:not(.email-pill):hover { color: var(--green); }
.email-pill { align-self: flex-start; margin-top: 12px; padding: 8px 20px; border: 2px solid var(--green); border-radius: 33px; transition: .2s ease; }
.contact-monogram { position: absolute; right: 14%; top: -57px; color: var(--green); font-family: var(--serif); font-size: 460px; line-height: 1; }
.site-footer { display: grid; grid-template-columns: repeat(12, 1fr); min-height: 248px; margin-top: -53px; padding: 115px 72px 45px; color: #757575; background: var(--black); }
.footer-logo { grid-column: 1 / span 3; width: 228px; }
.footer-logo img { width: 100%; height: 69px; object-fit: contain; }
.site-footer nav { grid-column: 11 / span 2; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer a:hover { color: var(--beige); }

.detail-page { min-height: 1055px; padding: 285px var(--gutter) 120px; }
.detail-page > .script-title { text-align: center; }
.detail-copy { max-width: 661px; margin: 52px auto 0; line-height: 1.5; }
.detail-copy p { margin-bottom: 1.5em; }
.expertise-detail { display: grid; grid-template-columns: repeat(12, 1fr); align-content: start; }
.expertise-detail > .script-title { grid-column: 1 / -1; }
.detail-expertise-nav { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 12px; margin-top: 58px; padding-left: 45px; }
.detail-expertise-nav a { position: relative; padding-left: 46px; font-family: var(--serif); font-size: clamp(31px, 3.2vw, 46px); line-height: 1.48; }
.detail-expertise-nav a::before { top: 26px; }
.detail-expertise-nav a.is-current { color: var(--green); }
.expertise-copy { grid-column: 7 / span 5; margin-top: 63px; max-width: 548px; }
.expertise-copy aside { margin-top: 34px; padding-left: 24px; border-left: 4px solid var(--green); }
.legal-page h1 { max-width: 820px; margin: 0 auto; font-family: var(--serif); font-size: 64px; font-weight: 400; }

@media (min-width: 981px) and (max-width: 1180px) {
  .site-header { top: 35px; height: 112px; padding: 0 calc(var(--gutter) + 32px); grid-template-columns: 1fr auto auto; gap: 12px; }
  .site-header.is-scrolled { height: 112px; }
  .brand { grid-column: 1; width: 170px; }
  .brand img { height: 54px; }
  .menu-toggle { position: relative; z-index: 102; grid-column: 2; display: block; min-width: 88px; padding: 14px 22px; border: 1px solid currentColor; border-radius: 32px; color: var(--beige); background: transparent; font: inherit; font-size: 16px; transition: color .2s ease, background .2s ease, border-color .2s ease; }
  .site-header.is-scrolled .menu-toggle, .page-inner .menu-toggle { color: var(--black); }
  .menu-toggle[aria-expanded="true"] { color: #fff; border-color: var(--black); background: var(--black); }
  .language { grid-column: 3; }
  .main-nav { position: absolute; z-index: 101; top: 30px; right: calc(var(--gutter) + 68px); left: auto; display: none; width: 460px; flex-direction: column; align-items: stretch; gap: 34px; padding: 118px 46px 48px; border: 1px solid #cfcfcf; border-radius: 52px; background: rgba(255,255,255,.98); box-shadow: 0 15px 35px rgba(0,0,0,.12); backdrop-filter: blur(10px); }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; min-width: 0; padding: 0; color: var(--black); background: transparent !important; font-size: 30px; font-weight: 600; line-height: 1.25; text-align: left; }
  .main-nav a:hover, .main-nav a.is-active { color: var(--green) !important; }
}

@media (max-width: 980px) {
  :root { --header-height: 112px; }
  .site-header { top: 12px; height: 112px; padding: 0 calc(var(--gutter) + 12px); grid-template-columns: 1fr auto auto; gap: 12px; }
  .brand { grid-column: 1; width: 170px; }
  .brand img { height: 54px; }
  .menu-toggle { position: relative; z-index: 102; grid-column: 2; display: block; min-width: 88px; padding: 14px 22px; border: 1px solid currentColor; border-radius: 32px; color: var(--beige); background: transparent; font: inherit; font-size: 16px; transition: color .2s ease, background .2s ease, border-color .2s ease; }
  .site-header.is-scrolled .menu-toggle, .page-inner .menu-toggle { color: var(--black); }
  .menu-toggle[aria-expanded="true"] { color: #fff; border-color: var(--black); background: var(--black); }
  .language { grid-column: 3; }
  .main-nav {
    position: absolute;
    z-index: 101;
    top: 21px;
    right: calc(var(--gutter) + 59px);
    left: auto;
    display: none;
    width: min(460px, calc(100vw - 110px));
    flex-direction: column;
    align-items: stretch;
    gap: 34px;
    padding: 118px 46px 48px;
    border: 1px solid #cfcfcf;
    border-radius: 39px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
    backdrop-filter: blur(10px);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; min-width: 0; padding: 0; color: var(--black); background: transparent !important; font-size: 30px; font-weight: 600; line-height: 1.25; text-align: left; }
  .main-nav a:hover, .main-nav a.is-active { color: var(--green) !important; }
  .hero { height: 680px; margin-top: 20px; border-radius: 32px; }
  .section { grid-template-columns: 1fr; min-height: 0; padding: 90px var(--gutter); }
  .section .script-title, .section-copy, .expertise-list, .lawyer-section .script-title, .portrait, .lawyer-copy { grid-column: 1; grid-row: auto; margin-left: 0; }
  .section .script-title { margin-bottom: 50px; text-align: left; }
  .expertise-list { margin-top: 0; }
  .portrait { width: min(100%, 540px); height: auto; margin-top: 0; }
  .lawyer-copy { margin-top: 45px; }
  .contact-card { grid-template-columns: 1fr; padding: 60px 45px; }
  .contact-card .script-title, .contact-details { grid-column: 1; }
  .contact-card .script-title { margin-bottom: 36px; }
  .contact-monogram { right: -20px; opacity: .12; }
  .site-footer { padding-inline: var(--gutter); }
  .site-footer nav { grid-column: 9 / span 4; }
  .detail-page { padding-top: 200px; }
  .expertise-detail { grid-template-columns: 1fr; }
  .expertise-detail > .script-title, .detail-expertise-nav, .expertise-copy { grid-column: 1; }
  .detail-expertise-nav { padding-left: 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 14px; }
  .site-header { grid-template-columns: 1fr auto auto; }
  .site-header.is-scrolled { height: 112px; }
  .brand { width: 145px; }
  .menu-toggle { min-width: 72px; padding: 11px 16px; font-size: 16px; }
  .main-nav {
    top: 21px;
    right: calc(var(--gutter) + 53px);
    width: min(360px, calc(100vw - 78px));
    gap: 27px;
    padding: 92px 34px 38px;
    border-radius: 38px;
  }
  .main-nav a { font-size: 24px; }
  .language { width: 40px; height: 40px; }
  .hero { height: 570px; border-radius: 24px; }
  .hero h1 { top: 220px; left: 7%; font-size: 54px; }
  .script-title { font-size: 64px; }
  .large-copy { font-size: 22px; }
  .expertise-list li { padding-left: 30px; }
  .expertise-list li::before { top: 21px; width: 12px; height: 12px; }
  .expertise-list a { font-size: 28px; line-height: 1.55; }
  .lawyer-copy h3 { font-size: 46px; }
  .contact-card { margin-inline: 10px; padding: 50px 25px 80px; border-radius: 32px; }
  .email-pill { max-width: 100%; font-size: 13px; overflow-wrap: anywhere; }
  .site-footer { grid-template-columns: 1fr; gap: 30px; padding-top: 100px; }
  .footer-logo, .site-footer nav { grid-column: 1; }
  .detail-page { padding-top: 160px; }
  .detail-expertise-nav a { padding-left: 28px; font-size: 27px; }
  .detail-expertise-nav a::before { top: 15px; width: 12px; height: 12px; }
  .legal-page h1 { font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
