:root {
  --bg: #ffffff;
  --ink: #14213d;
  --muted: #5b6784;
  --line: #dfe5f2;
  --blue: #1d4ed8;
  --wash: #eef3fd;
  --soft: #8fb0f5;
  --hover: #12308f;
  --bar: #1d4ed8;
  --co: #2f62e6;
  --serif: 'Newsreader',Georgia,'Times New Roman',serif;
  --sans: 'Source Sans 3','Helvetica Neue',Arial,sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
  color-scheme: light;
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1424;
    --ink: #e8edf8;
    --muted: #9aa6c2;
    --line: #233152;
    --blue: #7ba3ff;
    --wash: #141d36;
    --soft: #3b5aa8;
    --hover: #5f8cf5;
    --bar: #1b2f6b;
    --co: #9bb8ff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1424;
  --ink: #e8edf8;
  --muted: #9aa6c2;
  --line: #233152;
  --blue: #7ba3ff;
  --wash: #141d36;
  --soft: #3b5aa8;
  --hover: #5f8cf5;
  --bar: #1b2f6b;
  --co: #9bb8ff;
  color-scheme: dark;
}

html {
  scroll-padding-top: env(safe-area-inset-top,0px);
}

*,*::before,*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

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

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.mark {
  display: block;
  width: 200px;
  aspect-ratio: 2.7607;
  background: var(--ink);
  -webkit-mask: url(assets/logo-mask.png) no-repeat center/contain;
  mask: url(assets/logo-mask.png) no-repeat center/contain;
}

nav a {
  margin-left: 28px;
  color: var(--muted);
  font-size: 15px;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  padding: clamp(48px,9vw,110px) 0 clamp(64px,10vw,130px);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px,6.4vw,78px);
  line-height: 1.06;
  letter-spacing: -.015em;
  margin: 0;
}

.hero h1 em {
  font-style: italic;
  color: var(--blue);
}

.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 44ch;
  margin: 32px 0 0;
}

section {
  padding: clamp(56px,9vw,110px) 0;
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  margin: 0;
  line-height: 1.2;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(22px,2.6vw,29px);
  line-height: 1.45;
  font-weight: 300;
  margin: 0 0 24px;
}

.body p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 60ch;
}

.body p.lead {
  color: var(--ink);
}

.job {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.job:first-child {
  padding-top: 0;
}

.job h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  text-transform: lowercase;
  font-size: clamp(22px,2.4vw,27px);
  line-height: 1.2;
  margin: 0;
  color: var(--co);
}

.job span {
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.job:hover h3 {
  color: var(--hover);
}

.cases {
  display: grid;
  gap: clamp(56px,8vw,96px);
  margin-top: 56px;
}

.case {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
}

.case:nth-child(even) {
  grid-template-columns: 1fr 1.25fr;
}

.case:nth-child(even) .art {
  order: 2;
}

.art {
  display: block;
  aspect-ratio: 4/3;
  background: var(--wash);
  overflow: hidden;
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
}

.art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.art:hover svg {
  filter: brightness(.93);
}

.case h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px,3vw,34px);
  line-height: 1.2;
  margin: 0 0 12px;
}

.meta {
  color: var(--blue);
  font-size: 15px;
  margin: 0 0 14px;
}

.case p {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 42ch;
}

.link {
  font: inherit;
  font-size: 16px;
  color: var(--blue);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.link:hover {
  color: var(--hover);
}

.lock {
  display: inline-block;
  width: 11px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  margin-right: 8px;
  position: relative;
  top: 0;
}

.lock::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -6px;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.school {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 34px;
}

.aa {
  font-family: var(--serif);
  font-size: clamp(90px,14vw,150px);
  line-height: 1;
  color: var(--blue);
  font-weight: 300;
  background: var(--wash);
  padding: 8px 26px 18px;
  position: relative;
}

.aa::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  height: 1px;
  background: var(--soft);
  opacity: .7;
}

.school b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  display: block;
}

.school small {
  color: var(--muted);
  font-size: 16px;
}

.contact a.big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px,5.4vw,60px);
  color: var(--blue);
  word-break: break-word;
}

.contact a.big:hover {
  color: var(--hover);
}

footer {
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

dialog {
  border: 0;
  padding: 0;
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: 88vh;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(20,33,61,.25);
}

dialog::backdrop {
  background: rgba(13,20,36,.55);
}

.dlg {
  padding: clamp(28px,5vw,56px);
  overflow: auto;
  max-height: 88vh;
}

.dlg h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px,4vw,40px);
  line-height: 1.15;
  margin: 0 0 8px;
}

.dlg h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 28px 0 4px;
  color: var(--blue);
}

.dlg p {
  margin: 0;
  color: var(--muted);
}

.x {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: 0;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.x:hover {
  color: var(--ink);
}

.pw {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.pw input {
  flex: 1;
  min-width: 180px;
  font: inherit;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}

.pw input:focus {
  outline: 2px solid var(--blue);
  border-color: transparent;
}

.pw button {
  font: inherit;
  background: var(--blue);
  color: var(--bg);
  border: 0;
  padding: 10px 24px;
  cursor: pointer;
}

.err {
  color: #c2410c;
  font-size: 15px;
  margin-top: 10px;
  min-height: 1.4em;
}

@media (max-width:760px) {
  .hero,.grid,.case,.case:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero .shape {
    max-width: 380px;
  }
  .case:nth-child(even) .art {
    order: 0;
  }
  nav a {
    margin-left: 28px;
    color: var(--muted);
    font-size: 15px;
  }
  .school {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
}

.hero {
  display: block;
  padding: clamp(72px,12vw,150px) 0 clamp(80px,12vw,160px);
}

.hero h1 {
  font-size: clamp(44px,8vw,104px);
  max-width: none;
  width: 100%;
}

.hero p {
  font-size: 20px;
  max-width: 72ch;
}

.sweep {
  -webkit-mask-image: linear-gradient(100deg,#000 40%,transparent 60%);
  mask-image: linear-gradient(100deg,#000 40%,transparent 60%);
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: sweep 2.2s cubic-bezier(.25,.6,.3,1) forwards;
}

.hero p.sweep {
  animation-delay: .6s;
  animation-duration: 2s;
}

@keyframes sweep {
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .sweep {
    animation: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.back {
  display: inline-block;
  color: var(--muted);
  font-size: 15px;
  margin: 8px 0 40px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.back:hover {
  color: var(--ink);
}

.cs h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px,6vw,72px);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 24px;
}

.cs .intro {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(21px,2.4vw,28px);
  line-height: 1.45;
  max-width: 30em;
  margin: 0 0 44px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  margin: 0 0 56px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 14px;
}

.facts dd {
  margin: 2px 0 0;
}

.cs figure {
  margin: 0;
}

.cs figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--wash);
}

.cs figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.cs-sec {
  padding: clamp(44px,7vw,84px) 0 0;
  margin-top: clamp(44px,7vw,84px);
  border-top: 1px solid var(--line);
}

.cs-sec h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.cs-sec h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--co);
  font-size: 21px;
  margin: 30px 0 6px;
}

.cs-sec .c>h4:first-child {
  margin-top: 0;
}

.cs-sec p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 60ch;
}

.cs-sec ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.cs-sec li {
  border-left: 2px solid var(--blue);
  padding: 2px 0 2px 18px;
  margin: 0 0 12px;
  max-width: 56ch;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
}

.cs-sec figure {
  margin: 28px 0;
}

.stat {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px,8vw,96px);
  line-height: 1;
  color: var(--blue);
  margin: 0 0 6px;
}

.cs-end {
  padding: 56px 0 0;
}

@media (max-width:760px) {
  .facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.trio {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin: -8px 0 28px;
}

.trio figure {
  margin: 0;
}

.trio figcaption {
  font-size: 13px;
}

@media (max-width:760px) {
  .trio {
    grid-template-columns: 1fr;
  }
}

.cs .nobg img {
  background: none;
}

.cs .lead-fig {
  margin: 0 0 8px;
}

.cs .mid-fig {
  margin: clamp(44px,7vw,84px) 0 0;
}

.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

.cs .note {
  border-left: 2px solid var(--line);
  padding: 2px 0 2px 16px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  max-width: 60ch;
}

.cs .narrow {
  max-width: 340px;
}

.job h3 small {
  font-family: var(--sans);
  font-style: normal;
  text-transform: none;
  font-size: 15px;
  color: var(--muted);
  margin-left: 6px;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  nav {
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
  }
  nav a {
    margin-left: 0;
  }
}
