/* Oktar & Oktar stylesheet. Palette: warm paper, stone wall, ink, one umber accent used sparingly. */

:root {
  --paper: #F7F4EE;
  --paper-2: #EFEAE1;
  --stone: #DDD4C5;
  --ink: #161616;
  --ink-2: #37342F;
  --muted: #736C61;
  --line: rgba(22, 22, 22, .12);
  --line-strong: rgba(22, 22, 22, .28);
  --accent: #86663F;
  --night: #151514;

  --display: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1240px;
  --header-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:has(dialog[open]), body.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 17px/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

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

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Type helpers ---------- */

.eyebrow, .label {
  display: flex; align-items: center; gap: 14px;
  margin: 0;
  font: 700 11px/1.4 var(--text);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 0;
  font: 400 16px/1 var(--text);
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .3s var(--ease);
}
.link-arrow::after { content: '→'; font-size: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  transition: height .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 244, 238, .9);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .site-header__inner { height: 68px; }

.brand { display: block; flex: none; line-height: 0; }
.brand img { width: auto; height: 27px; }
.site-header.is-scrolled .brand img { height: 24px; transition: height .4s var(--ease); }

.site-header__right { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 36px); }
.nav a, .lang a {
  position: relative;
  padding: 6px 0;
  font: 400 15.5px/1 var(--text);
  color: var(--ink); text-decoration: none;
}
.lang a { font-size: 13px; letter-spacing: .08em; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: currentColor; transition: right .4s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after, .nav a.is-active::after { right: 0; }

/* Mega menu trigger */
.nav__trigger {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font: 400 15.5px/1 var(--text); color: var(--ink);
}
.nav__trigger::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: currentColor; transition: right .4s var(--ease);
}
.nav__trigger:hover::after, .nav__trigger.is-active::after, .nav__trigger[aria-expanded="true"]::after { right: 0; }
.nav__chev {
  width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .35s var(--ease), margin .35s var(--ease);
}
.nav__trigger[aria-expanded="true"] .nav__chev { transform: rotate(-135deg); margin-top: 3px; }

/* Mega menu panel */
.site-header.mega-open { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 30px 50px -20px rgba(20, 18, 14, .16);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.site-header.mega-open .mega {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mega__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr); gap: clamp(32px, 4vw, 72px);
  padding-block: 40px 48px;
}
.mega__title { margin: 0 0 12px; font: 300 2rem/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.mega__text { margin: 0 0 24px; max-width: 30ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.mega__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px;
  margin: 0; padding: 0; list-style: none;
}
.mega__link {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-content: start; gap: 4px 8px;
  height: 100%; padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.mega__num { grid-row: span 2; padding-top: 4px; font: 700 11px/1.4 var(--text); letter-spacing: .06em; color: var(--accent); }
.mega__name {
  justify-self: start;
  font: 400 16.5px/1.3 var(--text); color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.mega__short { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.mega__link:hover .mega__name, .mega__link:focus-visible .mega__name, .mega__link[aria-current="page"] .mega__name { background-size: 100% 1px; }

.lang { display: flex; gap: 12px; padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line-strong); }
.lang a { color: var(--muted); }
.lang a[aria-current] { color: var(--ink); }

.burger {
  display: none;
  position: relative; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
.burger__line {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger__line:nth-child(1) { top: 18px; }
.burger__line:nth-child(2) { top: 25px; }
body.menu-open .burger__line:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
body.menu-open .burger__line:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper);
  padding-top: calc(var(--header-h) + 24px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
body.menu-open .site-header { background: var(--paper); box-shadow: none; }

.mobile-menu__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 100%; padding-bottom: 32px; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav > a, .m-sub > summary {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font: 400 clamp(1.6rem, 7vw, 2.1rem)/1.2 var(--display);
  letter-spacing: -.015em;
  color: var(--ink); text-decoration: none;
}
.mobile-menu__nav > a[aria-current="page"], .mobile-menu__nav > a.is-active { font-weight: 700; }

.m-sub > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; }
.m-sub > summary::-webkit-details-marker { display: none; }
.m-sub > summary::after {
  content: ''; width: 9px; height: 9px; margin: -4px 6px 0 0;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .35s var(--ease), margin .35s var(--ease);
}
.m-sub[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.m-sub__list { display: grid; padding: 8px 0 14px; border-bottom: 1px solid var(--line); }
.m-sub__list a { padding: 8px 0; font-size: 16px; line-height: 1.35; color: var(--ink-2); text-decoration: none; }
.m-sub__list a:first-child { font-weight: 700; color: var(--ink); }
.m-sub__list a[aria-current="page"] { color: var(--accent); }
.mobile-menu__foot { display: grid; gap: 6px; font-size: 15px; }
.mobile-menu__foot > a { text-decoration: none; color: var(--ink-2); }
.mobile-menu__foot .lang { border: 0; padding: 12px 0 0; }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .site-header__right, .mega { display: none; }
  .burger { display: block; }
  .brand img { height: 23px; }
}
@media (max-width: 1180px) and (min-width: 961px) {
  .mega__inner { grid-template-columns: 1fr; gap: 24px; }
  .mega__text { max-width: 60ch; }
}

/* ---------- The wall: sunlight through a window on stone ---------- */

.wall {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(80% 70% at 82% 8%, #EEE8DE 0%, rgba(238, 232, 222, 0) 62%),
    linear-gradient(180deg, #E2DACD 0%, #D8CEBE 70%, #D2C7B5 100%);
}

.wall__light {
  position: absolute;
  top: -22%; right: -2%;
  width: min(62vw, 980px); height: 128%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: clamp(10px, 1.3vw, 22px);
  transform-origin: 100% 0;
  transform: rotate(-11deg) skewX(-26deg);
  filter: blur(clamp(7px, .9vw, 13px));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 90%);
  animation: sun-drift 46s ease-in-out infinite alternate, sun-in 2.4s var(--ease) both;
}
.wall__light span {
  background: linear-gradient(168deg, rgba(255, 252, 246, .97) 0%, rgba(253, 248, 238, .78) 55%, rgba(250, 243, 231, .5) 100%);
}

.wall__grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .37  0 0 0 0 .3  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wall::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(196, 184, 164, .35) 0%, rgba(196, 184, 164, 0) 40%);
}

@keyframes sun-drift {
  from { transform: translate3d(0, 0, 0) rotate(-11deg) skewX(-26deg); }
  to   { transform: translate3d(-4vw, 2.5vh, 0) rotate(-8deg) skewX(-21deg); }
}
@keyframes sun-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  display: flex; align-items: flex-end;
  min-height: max(560px, calc(100svh - 156px));
  overflow: hidden;
}
.hero__content { position: relative; padding-block: calc(var(--header-h) + 72px) clamp(56px, 10vh, 112px); }

.motto {
  margin: 0;
  max-width: 17ch;
  font: 300 clamp(2.4rem, 5.6vw, 5.1rem)/1.06 var(--display);
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
}
.motto em { font-style: normal; font-weight: 400; color: #8A8174; }

.hero__sub {
  max-width: 40ch; margin: 28px 0 32px;
  font-size: clamp(16px, 1.3vw, 18px); font-weight: 300; line-height: 1.6;
  color: var(--ink-2);
}

.hero__in { animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Memberships strip ---------- */

.members { background: var(--paper); border-top: 1px solid var(--line); }
.members__inner {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 40px;
  min-height: 156px; padding-block: 28px;
}
.members__list {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 3vw, 48px);
  margin: 0; padding: 0; list-style: none;
}
.members__list img {
  width: auto;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.05);
  opacity: .62;
  transition: filter .5s var(--ease), opacity .5s var(--ease);
}
.members__list li:hover img { filter: none; opacity: 1; }
.members__list img.m-eala { filter: grayscale(1) contrast(1.05) brightness(1.75); }
.members__list li:hover img.m-eala { filter: none; }

.m-inta    { height: 38px; }
.m-marques { height: 30px; }
.m-aippi   { height: 52px; }
.m-eala    { height: 58px; }
.m-ahk     { height: 38px; }
.m-trch    { height: 40px; }

@media (max-width: 1080px) {
  .members__inner { grid-template-columns: 1fr; gap: 24px; padding-block: 40px; }
}
@media (max-width: 1080px) and (min-width: 721px) {
  .members__list { flex-wrap: wrap; justify-content: flex-start; column-gap: 48px; row-gap: 28px; }
}
@media (max-width: 720px) {
  .members__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; align-items: center; justify-items: center; }
  .members__list li { display: flex; justify-content: center; width: 100%; }
  .m-inta { height: 32px; } .m-marques { height: 26px; } .m-aippi { height: 46px; } .m-eala { height: 52px; }
  .m-ahk, .m-trch { width: 100%; max-width: 160px; height: auto; }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(400px, 58vh, 600px);
}
.wall--page .wall__light { width: min(54vw, 820px); top: -40%; right: 0; }
.page-hero__content { position: relative; padding-block: calc(var(--header-h) + 64px) clamp(48px, 8vh, 88px); }

.page-title {
  margin: .35em 0 0;
  font: 300 clamp(2.5rem, 5vw, 4.3rem)/1.05 var(--display);
  letter-spacing: -.025em;
  color: var(--ink);
}
.lead {
  max-width: 52ch; margin: 22px 0 0;
  font-size: clamp(16px, 1.35vw, 19px); font-weight: 300; line-height: 1.6;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--alt { background: var(--paper-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: clamp(32px, 6vw, 112px); }
.split__label { align-self: start; position: sticky; top: 110px; }

.prose p { max-width: 64ch; margin: 0 0 1.15em; }
.prose__intro {
  font: 300 clamp(1.4rem, 2.1vw, 1.85rem)/1.35 var(--display);
  letter-spacing: -.012em;
  color: var(--ink);
  margin-bottom: 1.1em !important;
  text-wrap: pretty;
}

.amp-mark {
  width: clamp(110px, 12vw, 180px); aspect-ratio: 455 / 425; margin-top: 48px;
  background: var(--accent); opacity: .16;
  -webkit-mask: url(/assets/img/ampersand.png) center / contain no-repeat;
  mask: url(/assets/img/ampersand.png) center / contain no-repeat;
}

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 36px 0 0; border-top: 1px solid var(--line);
}
.facts > div { padding: 28px 28px 0 0; }
.facts > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts dt { font: 700 11px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 12px 0 0; font: 400 clamp(1.15rem, 1.5vw, 1.35rem)/1.3 var(--display); color: var(--ink); }

.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.principles li {
  counter-increment: p;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 24px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles li::before {
  content: counter(p, decimal-leading-zero);
  grid-row: span 2; padding-top: 6px;
  font: 700 .95rem/1 var(--display); color: var(--accent);
}
.principles h3 { margin: 0 0 6px; font: 400 clamp(1.3rem, 1.8vw, 1.5rem)/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.principles p { margin: 0; max-width: 54ch; }

.cta { border-top: 1px solid var(--line); }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding-block: clamp(48px, 7vw, 80px);
}
.cta__text { margin: 0; font: 300 clamp(1.6rem, 3vw, 2.5rem)/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__label { position: static; display: flex; align-items: center; justify-content: space-between; }
  .amp-mark { margin-top: 0; width: 72px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); }
  .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .principles li { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; }
}

/* ---------- Team ---------- */

.team-group + .team-group { margin-top: clamp(64px, 8vw, 104px); }
.team-group__title {
  margin: 0 0 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
  font: 400 clamp(1.4rem, 2.1vw, 1.75rem)/1.15 var(--display); letter-spacing: -.012em; color: var(--ink);
}
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 56px clamp(20px, 2.6vw, 36px);
  margin: 0; padding: 0; list-style: none;
}

.person {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  padding: 0; background: none; border: 0; text-align: left; cursor: pointer;
}
.person__photo {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 4 / 5; margin-bottom: 22px;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(255, 251, 244, .9) 0%, rgba(255, 251, 244, 0) 60%),
    linear-gradient(180deg, #E3DBCE 0%, #D3C8B6 100%);
}
.person__photo::before {
  content: ''; position: absolute; top: -10%; right: -20%; width: 70%; height: 80%;
  background: linear-gradient(170deg, rgba(255, 252, 246, .85), rgba(255, 252, 246, 0));
  transform: skewX(-22deg); filter: blur(10px);
  transition: transform 1.2s var(--ease);
}
.person:hover .person__photo::before { transform: skewX(-22deg) translateX(-14%); }
.person__initials {
  position: relative;
  font: 300 clamp(3rem, 5vw, 4.2rem)/1 var(--display);
  color: rgba(22, 22, 22, .32);
  letter-spacing: .04em;
}
.person__role { font: 700 11px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.person__name {
  margin-top: 8px;
  font: 400 clamp(1.3rem, 1.7vw, 1.5rem)/1.2 var(--display); color: var(--ink); letter-spacing: -.01em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.person:hover .person__name, .person:focus-visible .person__name { background-size: 100% 1px; }
.person__focus { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.person__more {
  margin-top: 14px;
  font: 700 11px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.person__more::after { content: ' →'; letter-spacing: 0; }

/* Profile dialog */

.bio {
  width: min(100% - 32px, 960px); max-height: min(90vh, 920px);
  padding: 0; border: 0;
  background: var(--paper); color: var(--ink-2);
  box-shadow: 0 30px 80px rgba(20, 18, 14, .28);
  overflow: hidden;
}
.bio[open] { display: flex; flex-direction: column; animation: bio-in .45s var(--ease); }
.bio::backdrop { background: rgba(21, 21, 20, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes bio-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.bio__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer;
}
.bio__close::before, .bio__close::after {
  content: ''; position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; background: var(--ink);
}
.bio__close::before { transform: rotate(45deg); }
.bio__close::after { transform: rotate(-45deg); }

.bio__inner {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: clamp(28px, 4vw, 56px);
  min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(28px, 4vw, 56px);
}
.bio__photo {
  display: grid; place-items: center; aspect-ratio: 4 / 5;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(255, 251, 244, .9) 0%, rgba(255, 251, 244, 0) 60%),
    linear-gradient(180deg, #E3DBCE 0%, #D3C8B6 100%);
  font: 300 3.8rem/1 var(--display); color: rgba(22, 22, 22, .32); letter-spacing: .04em;
}
.bio__email { display: inline-block; margin-top: 18px; font-size: 14.5px; color: var(--ink); word-break: break-all; }
.bio__role { margin: 0; font: 700 11px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bio__name { margin: 10px 0 6px; font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.12 var(--display); letter-spacing: -.015em; color: var(--ink); }
.bio__focus { margin: 0 0 24px; color: var(--accent); font-size: 15px; }
.bio__text p { margin: 0 0 1em; max-width: 62ch; }
.bio__facts { display: grid; gap: 22px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.bio__facts h3 { margin: 0 0 8px; font: 700 11px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bio__facts ul { margin: 0; padding: 0; list-style: none; }
.bio__facts li, .bio__facts p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.bio__facts li + li { margin-top: 4px; }

@media (max-width: 760px) {
  .bio { width: 100%; max-width: 100%; height: 100%; max-height: 100%; }
  .bio__inner { grid-template-columns: 1fr; padding-top: 8px; }
  .bio__photo { width: 128px; font-size: 2.4rem; }
}

/* ---------- Service areas ---------- */

.practices { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.practices > li { border-top: 1px solid var(--line); }
.practice {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.25fr) 32px; align-items: baseline;
  gap: 12px clamp(24px, 4vw, 64px);
  padding-block: clamp(26px, 3.2vw, 40px);
  text-decoration: none; color: inherit;
}
.practice__num { font: 700 .95rem/1 var(--display); color: var(--accent); }
.practice__title {
  justify-self: start; margin: 0;
  font: 400 clamp(1.35rem, 2vw, 1.75rem)/1.2 var(--display); letter-spacing: -.012em; color: var(--ink); text-wrap: balance;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.practice:hover .practice__title, .practice:focus-visible .practice__title { background-size: 100% 1px; }
.practice__short { margin: 0; max-width: 52ch; }
.practice__arrow { justify-self: end; font-size: 18px; transition: transform .35s var(--ease); }
.practice:hover .practice__arrow { transform: translateX(5px); }

@media (max-width: 900px) {
  .practice { grid-template-columns: 48px minmax(0, 1fr) 24px; }
  .practice__short { grid-column: 2; grid-row: 2; }
  .practice__arrow { grid-column: 3; grid-row: 1; }
}

/* Service area detail */
.crumbs { margin: 0; font: 700 11px/1.4 var(--text); letter-spacing: .2em; text-transform: uppercase; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a::before { content: '←'; display: inline-block; margin-right: 10px; letter-spacing: 0; transition: transform .35s var(--ease); }
.crumbs a:hover { color: var(--ink); }
.crumbs a:hover::before { transform: translateX(-4px); }

.scope { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; margin-top: 40px; }
.scope h3 { margin: 0 0 14px; font: 700 11px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.scope__note { margin: -10px 0 14px; font-size: 14px; color: var(--muted); }
.scope ul { margin: 0; padding: 0; list-style: none; }
.scope li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15.5px; }

.contacts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px;
  margin: 32px 0 0; padding: 0; list-style: none;
}
.contact-card {
  display: flex; align-items: center; gap: 20px; height: 100%; padding: 16px;
  background: var(--paper); text-decoration: none; color: inherit;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.contact-card:hover { box-shadow: 0 14px 34px rgba(20, 18, 14, .09); transform: translateY(-2px); }
.contact-card__photo {
  display: grid; place-items: center; flex: none; width: 76px; aspect-ratio: 4 / 5;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(255, 251, 244, .9) 0%, rgba(255, 251, 244, 0) 60%),
    linear-gradient(180deg, #E3DBCE 0%, #D3C8B6 100%);
  font: 300 1.5rem/1 var(--display); letter-spacing: .04em; color: rgba(22, 22, 22, .34);
}
.contact-card__role { display: block; font: 700 10.5px/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact-card__name { display: block; margin-top: 4px; font: 400 1.25rem/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.contact-card__more { display: block; margin-top: 8px; font-size: 13.5px; color: var(--accent); }
.contact-card__more::after { content: ' →'; }

.others {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 32px;
  margin: 28px 0 0; padding: 0; list-style: none;
}
.others a { display: flex; align-items: baseline; gap: 14px; height: 100%; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.others__num { flex: none; width: 22px; font: 700 11px/1 var(--text); letter-spacing: .06em; color: var(--accent); }
.others__name {
  font-size: 16.5px; line-height: 1.35;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.others a:hover .others__name { background-size: 100% 1px; }

/* Publication detail */
.page-title--long { max-width: 22ch; font-size: clamp(2rem, 3.8vw, 3.3rem); line-height: 1.1; text-wrap: balance; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 22px 0 0; font: 700 11px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: clamp(32px, 6vw, 112px); }
.article__aside { align-self: start; position: sticky; top: 110px; }
.article__meta { margin: 0; border-top: 1px solid var(--line); }
.article__meta > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.article__meta dt { font: 700 11px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.article__meta dd { margin: 6px 0 0; color: var(--ink); }
.article__meta a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.article__body h2 { margin: 1.8em 0 .5em; font: 400 clamp(1.3rem, 1.9vw, 1.6rem)/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.article__body ul, .legal ul { max-width: 64ch; margin: 0 0 1.15em; padding-left: 1.2em; }
.article__body li, .legal li { margin-bottom: .4em; }
.article__disclaimer { margin-top: 2.4em !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }

.more__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

/* Legal pages */
.page-hero--compact { min-height: clamp(320px, 42vh, 440px); }
.legal { max-width: 860px; }
.legal h2 { margin: 2em 0 .5em; font: 400 clamp(1.25rem, 1.8vw, 1.5rem)/1.25 var(--display); letter-spacing: -.01em; color: var(--ink); }
.legal h2:first-child { margin-top: 0; }
.legal a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.legal__note { margin-top: 2.4em !important; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 900px) {
  .article { grid-template-columns: 1fr; }
  .article__aside { position: static; order: 2; }
}

/* ---------- Publications ---------- */

.pub-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; cursor: pointer;
  font: 400 14.5px/1 var(--text); color: var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.pubs { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.pubs li[hidden] { display: none; }
.pub {
  display: grid; grid-template-columns: 110px 150px minmax(0, 1fr) 32px; align-items: baseline; gap: 24px;
  padding-block: 30px; border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.pub__date, .pub__cat { font: 700 11px/1.4 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pub__cat { color: var(--accent); }
.pub__title {
  font: 400 clamp(1.2rem, 1.7vw, 1.5rem)/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); text-wrap: pretty;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.pub:hover .pub__title { background-size: 100% 1px; }
.pub__sample {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px;
  border: 1px dashed rgba(160, 110, 40, .55); border-radius: 4px;
  font: 600 10px/1.4 var(--text); letter-spacing: .12em; text-transform: uppercase; color: #8a5a1f;
}
.pub__arrow { justify-self: end; font-size: 18px; transition: transform .35s var(--ease); }
.pub:hover .pub__arrow { transform: translateX(5px); }

@media (max-width: 760px) {
  .pub { grid-template-columns: auto 1fr; gap: 6px 16px; padding-block: 24px; }
  .pub__title { grid-column: 1 / -1; }
  .pub__arrow { display: none; }
}

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__details { display: grid; gap: 40px; }
.contact__item address { margin: 16px 0 18px; font: 300 clamp(1.2rem, 1.7vw, 1.45rem)/1.45 var(--display); color: var(--ink); }
.contact__big {
  display: inline-block; margin-top: 14px;
  font: 300 clamp(1.3rem, 1.9vw, 1.6rem)/1.25 var(--display); color: var(--ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
  word-break: break-word;
}
.contact__big:hover { background-size: 100% 1px; }
.contact__langs { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.contact__map { position: relative; aspect-ratio: 4 / 3.4; background: var(--paper-2); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.92) brightness(1.03); }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
  .contact__map { aspect-ratio: 4 / 3; }
}

/* ---------- Footer ---------- */

.site-footer { position: relative; overflow: hidden; background: var(--night); color: #CFC9BE; padding-top: clamp(56px, 7vw, 88px); font-size: 15.5px; }
.site-footer a { color: #EDE8DF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand--light img { height: 30px; }
.site-footer__tag { margin: 0; font: 700 11px/1 var(--text); letter-spacing: .22em; text-transform: uppercase; color: #8F887C; }
.site-footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 44px; }
.site-footer__h { margin: 0 0 14px; font: 700 11px/1.4 var(--text); letter-spacing: .2em; text-transform: uppercase; color: #8F887C; }
.site-footer address, .site-footer p { margin: 0; line-height: 1.75; }
.site-footer__nav { display: grid; gap: 4px; justify-items: start; }
.site-footer__nav a[aria-current] { color: #fff; }
.site-footer__bottom {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding-block: 24px 32px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px; color: #8F887C;
}
.site-footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer__legal a { color: #8F887C; }
.site-footer__amp {
  position: absolute; right: -2%; bottom: -14%;
  width: clamp(240px, 30vw, 440px); aspect-ratio: 455 / 425;
  background: #fff; opacity: .035;
  -webkit-mask: url(/assets/img/ampersand.png) center / contain no-repeat;
  mask: url(/assets/img/ampersand.png) center / contain no-repeat;
  pointer-events: none;
}

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .brand--light img { height: 24px; }
}

/* ---------- Reveal on scroll ---------- */

html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall__light { animation: none; }
  .hero__in, .bio[open] { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}
