:root {
  --ab-white: #ffffff;
  --ab-soft: #f3f5f6;
  --ab-text: #1b2023;
  --ab-muted: #5c6367;
  --ab-line: rgba(27, 32, 35, 0.10);
  --ab-line-strong: rgba(27, 32, 35, 0.18);
  --ab-accent: #c3c9ce;
  --ab-accent-dark: #59636c;
  --ab-max: 1120px;
  --ab-narrow: 790px;
  --ab-serif: Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ab-white);
  color: var(--ab-text);
  font-family: var(--ab-serif);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ab-accent-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 1000;
  left: 16px;
  top: 16px;
  transform: translateY(-160%);
  padding: 12px 16px;
  background: var(--ab-text);
  color: #fff;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(100% - 48px, var(--ab-max));
  margin: 0 auto;
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ab-text);
  text-decoration: none;
  min-width: 0;
  position: relative;
  z-index: 220;
}

.site-brand__name {
  font-weight: 700;
  font-size: clamp(21px, 1.75vw, 25px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.site-brand__tagline {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ab-muted);
}

.site-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-menu,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: nowrap;
}

.site-menu a {
  display: inline-block;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.035em;
  text-decoration: none;
  color: var(--ab-text);
  white-space: nowrap;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] {
  color: var(--ab-accent-dark);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ab-line-strong);
  background: #fff;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 230;
}

.nav-toggle__line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--ab-text);
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.nav-toggle__line:nth-child(1) {
  top: 16px;
}

.nav-toggle__line:nth-child(2) {
  top: 22px;
}

.nav-toggle__line:nth-child(3) {
  top: 28px;
}

.is-nav-open .nav-toggle__line:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

.is-nav-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.is-nav-open .nav-toggle__line:nth-child(3) {
  top: 22px;
  transform: rotate(-45deg);
}

/* Layout */

.site-main {
  background: #fff;
}

.site-container {
  width: min(100% - 48px, var(--ab-max));
  margin-inline: auto;
}

.site-container--narrow {
  width: min(100% - 48px, var(--ab-narrow));
  margin-inline: auto;
}

.content-section {
  padding: clamp(56px, 7vw, 92px) 0;
}

.content-section--soft {
  background: var(--ab-soft);
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ab-accent-dark);
}

.corner-mark {
  position: relative;
}

.corner-mark::after {
  content: "";
  position: absolute;
  top: -26px;
  right: 0;
  width: 76px;
  height: 76px;
  border-top: 1px solid rgba(89, 99, 108, 0.34);
  border-right: 1px solid rgba(89, 99, 108, 0.34);
  pointer-events: none;
}

.hero-section {
  min-height: 62vh;
  display: flex;
  align-items: center;
}

.hero-section__inner {
  padding: clamp(70px, 8vw, 112px) 0;
}

.hero-section__content {
  max-width: 940px;
}

.hero-section h1,
.page-hero h1,
.section-heading h2,
.split-layout h2 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.055em;
  color: var(--ab-text);
}

.hero-section h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  max-width: 860px;
}

.lead {
  margin: 28px 0 0;
  max-width: 720px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.62;
  color: var(--ab-muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 20px;
  border-radius: 0;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--ab-line-strong);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button--primary {
  background: var(--ab-text);
  border-color: var(--ab-text);
  color: #fff;
}

.button--primary:hover {
  background: var(--ab-accent-dark);
  border-color: var(--ab-accent-dark);
  color: #fff;
}

.button--secondary {
  background: transparent;
  color: var(--ab-text);
}

.button--secondary:hover {
  color: var(--ab-accent-dark);
  border-color: var(--ab-accent-dark);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 84px);
}

.split-layout--center {
  align-items: center;
}

.split-layout h2,
.section-heading h2 {
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.06;
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.rich-text {
  color: var(--ab-text);
}

.rich-text > *:first-child {
  margin-top: 0;
}

.rich-text > *:last-child {
  margin-bottom: 0;
}

.rich-text p,
.rich-text li {
  margin-top: 0;
  margin-bottom: 1.05em;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.78;
  color: var(--ab-muted);
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin-top: 1.65em;
  margin-bottom: 0.55em;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--ab-text);
}

.rich-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.rich-text h3 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.12;
}

.rich-text h4 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.2em;
}

.rich-text li + li {
  margin-top: 0.45em;
}

.rich-text a {
  overflow-wrap: anywhere;
}

.text-link {
  font-size: 16px;
  color: var(--ab-accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(89, 99, 108, 0.28);
}

.text-link:hover {
  border-color: var(--ab-accent-dark);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 52px);
}

.practice-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.practice-item {
  position: relative;
  padding-top: 0;
  padding-right: 42px;
}

.practice-item::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 0;
  width: 30px;
  height: 30px;
  border-top: 1px solid rgba(89, 99, 108, 0.28);
  border-right: 1px solid rgba(89, 99, 108, 0.28);
}

.practice-item h3 {
  margin: 0 48px 14px 0;
  max-width: 92%;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.practice-item p {
  margin: 0;
  max-width: 92%;
  font-size: 16px;
  line-height: 1.68;
  color: var(--ab-muted);
}

.page-hero {
  padding: clamp(76px, 9vw, 128px) 0 clamp(36px, 5vw, 68px);
}

.page-hero__inner {
  max-width: var(--ab-max);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(46px, 6.2vw, 80px);
  line-height: 1;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  padding: 14px 0;
}

.timeline__date {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--ab-accent-dark);
  font-weight: 700;
}

.timeline__text {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--ab-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 18px;
}

.contact-list span {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--ab-accent-dark);
  font-weight: 700;
}

.contact-list a,
.contact-list strong {
  font-weight: 400;
  text-decoration: none;
  color: var(--ab-muted);
}

.notice {
  border-left: 4px solid var(--ab-accent);
  background: var(--ab-soft);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.notice p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ab-muted);
}

/* Form */

.form {
  display: grid;
  gap: 18px;
}

.form label {
  display: grid;
  gap: 8px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ab-text);
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--ab-line-strong);
  border-radius: 0;
  padding: 13px 14px;
  font-family: var(--ab-serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ab-text);
  background: #fff;
}

.form textarea {
  min-height: 160px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  outline: 1px solid var(--ab-accent);
  outline-offset: 2px;
}

.form .checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ab-muted);
  font-size: 16px;
  line-height: 1.55;
}

.form .checkbox input {
  width: auto;
  margin-top: 4px;
}

.form button {
  justify-self: start;
  font-family: var(--ab-serif);
}

/* Footer */

.site-footer {
  background: #fff;
}

.site-footer__inner {
  width: min(100% - 48px, var(--ab-max));
  margin-inline: auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 28px;
  align-items: start;
}

.site-footer__brand,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer__brand strong {
  font-size: 16px;
}

.site-footer__brand span,
.site-footer__contact span,
.site-footer__contact a {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ab-muted);
  text-decoration: none;
}

.footer-menu {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-menu a {
  color: var(--ab-muted);
  font-size: 14px;
  text-decoration: none;
}

.footer-menu a:hover {
  color: var(--ab-accent-dark);
}

/* Mobile navigation */

@media (max-width: 1040px) {
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    width: min(100% - 40px, var(--ab-max));
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-navigation {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    padding: 112px 28px 48px;
  }

  .is-nav-open .site-navigation {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-navigation .site-menu {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 5vw, 34px);
    text-align: center;
  }

  .site-navigation .site-menu a {
    font-size: clamp(31px, 8vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    white-space: normal;
  }

  .is-nav-open .nav-toggle {
    border-color: transparent;
  }

  .split-layout,
  .practice-grid,
  .practice-grid--three,
  .contact-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-menu {
    justify-content: flex-start;
  }

  .corner-mark::after {
    width: 54px;
    height: 54px;
    top: -18px;
  }
}

@media (max-width: 560px) {
  .site-container,
  .site-header__inner,
  .site-footer__inner,
  .site-container--narrow {
    width: min(100% - 36px, var(--ab-max));
  }

  .site-brand__tagline {
    font-size: 13px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-section__inner {
    padding: 78px 0;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .timeline__item,
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}


/* Images / visual modules */

.hero-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: center;
}

.hero-symbol {
  position: relative;
  margin: 0;
}

.hero-symbol::after {

  content: "";

  position: absolute;

  top: -18px;

  right: -18px;

  width: 74px;

  height: 74px;

  border-top: 1px solid rgba(89, 99, 108, 0.32);

  border-right: 1px solid rgba(89, 99, 108, 0.32);

  border-bottom: none;

  border-left: none;

  pointer-events: none;

  z-index: 2;

}

.hero-symbol--corner::after {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 74px;
  height: 74px;
  border-top: 1px solid rgba(89, 99, 108, 0.32);
  border-right: 1px solid rgba(89, 99, 108, 0.32);
  pointer-events: none;
}

.hero-symbol.hero-symbol--corner::after {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 74px;
  height: 74px;
  border-top: 1px solid rgba(89, 99, 108, 0.32);
  border-right: 1px solid rgba(89, 99, 108, 0.32);
  pointer-events: none;
  z-index: 2;
}

.hero-symbol img {
  display: block;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.02);
}

.profile-intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 6vw, 74px);
  align-items: start;
}

.portrait-placeholder {
  position: relative;
  margin: 0;
  max-width: 360px;
}

.portrait-placeholder::after {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 64px;
  height: 64px;
  border-top: 1px solid rgba(89, 99, 108, 0.34);
  border-right: 1px solid rgba(89, 99, 108, 0.34);
  pointer-events: none;
}

.portrait-placeholder img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ab-soft);
}

.portrait-caption {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ab-muted);
}

@media (max-width: 920px) {
  .hero-visual-grid,
  .profile-intro-grid {
    grid-template-columns: 1fr;
  }

  .hero-symbol {
    max-width: 620px;
  }

  .portrait-placeholder {
    max-width: 320px;
  }
}

@media (max-width: 560px) {
  .hero-symbol::after,
  .portrait-placeholder::after {
    right: -10px;
    bottom: -10px;
  }
}



/* FINAL: Functional mobile burger menu */

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.nav-toggle {
  display: none;
}

@media (max-width: 1040px) {
  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffff;
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-brand {
    position: relative;
    z-index: 10002;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 10003;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(27, 32, 35, 0.18);
    background: #ffffff;
    cursor: pointer;
  }

  .nav-toggle__line {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 1px;
    background: #1b2023;
    transition: top 180ms ease, transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle__line:nth-child(1) {
    top: 16px;
  }

  .nav-toggle__line:nth-child(2) {
    top: 22px;
  }

  .nav-toggle__line:nth-child(3) {
    top: 28px;
  }

  .site-navigation {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .site-header.is-nav-open .site-navigation {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-navigation .site-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
  }

  .site-navigation .site-menu a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 8vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-decoration: none;
    color: #1b2023;
  }

  .site-header.is-nav-open .nav-toggle__line:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
  }

  .site-header.is-nav-open .nav-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-nav-open .nav-toggle__line:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
  }
}


/* CSS-only mobile menu layer */

.menu-layer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.menu-layer:target {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-layer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 5vw, 36px);
  text-align: center;
}

.menu-layer__nav a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 8vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #1b2023;
  text-decoration: none;
}

.menu-layer__nav a:hover {
  color: var(--ab-accent-dark);
}

.menu-layer__close {
  position: fixed;
  top: 22px;
  right: clamp(20px, 5vw, 36px);
  width: 46px;
  height: 46px;
  z-index: 100000;
  background: #ffffff;
  border: 1px solid rgba(27, 32, 35, 0.18);
}

.menu-layer__close span {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 22px;
  height: 1px;
  background: #1b2023;
}

.menu-layer__close span:first-child {
  transform: rotate(45deg);
}

.menu-layer__close span:last-child {
  transform: rotate(-45deg);
}

.nav-toggle {
  text-decoration: none;
}

@media (min-width: 1041px) {
  .menu-layer {
    display: none;
  }
}
