@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Baskervville";
  src: url("fonts/baskervville.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
:root {
  --ink: #15243a;
  --dark: #111d2f;
  --sand: #f1f4f8;
  --paper: #fff;
  --muted: #4a5869;
  --line: #d6dee8;
  --orange: #f49a4d;
  --copper: #914516;
  font: 1rem/1.55 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.26rem; letter-spacing: -.025em; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .56; }
:focus-visible { outline: 2px solid #bb5d22; outline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  :where(a[href], button:enabled, summary, input:enabled:not([type="hidden"]), select:enabled, textarea:enabled) {
    transition: scale 250ms cubic-bezier(.2, .78, .32, 1.15);
  }

  @media (hover: hover) and (pointer: fine) {
    :where(a[href], button:enabled):hover { scale: 1.04; }
    :where(.person, .footer-brand):hover { scale: 1.025; }
    :where(summary, input:enabled:not([type="hidden"]), select:enabled, textarea:enabled):hover { scale: 1.012; }
  }

  :where(a[href], button:enabled, summary, input:enabled:not([type="hidden"]), select:enabled, textarea:enabled):active {
    scale: .97;
    transition-duration: 100ms;
    transition-timing-function: ease-out;
  }
  :where(summary, input:enabled:not([type="hidden"]), select:enabled, textarea:enabled):active { scale: .99; }
}
[hidden] { display: none !important; }
.icon-library { display: none; }
svg:not(.icon-library) {
  width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor;
  stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}
.wrap { width: min(100% - 96px, 1240px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 6; top: 12px; left: 12px; transform: translateY(-200%); background: var(--paper); padding: 12px; }
.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 2;
  background: #fffaf1;
  color: var(--ink);
  border-bottom: 1px solid #e8dfd0;
}
.header-row {
  min-height: 81px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.header-emblem {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  border-radius: 12px;
  background: #182536;
}
.wordmark img { width: 26px; height: 29px; }
.brand-divider { color: #a7663b; margin-inline: 3px; font-weight: 400; }
#site-nav { display: flex; align-items: center; gap: clamp(12px, 2.1vw, 27px); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: #f2ebdf;
  border: 1px solid #ebe1d2;
  border-radius: 999px;
}
#site-nav a, .footer-link { text-decoration: none; font-size: .94rem; }
.nav-links a { padding: 8px 13px; border-radius: 999px; white-space: nowrap; }
.nav-links a:hover { color: var(--copper); background: #fffaf1; }
.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 17px;
  border-radius: 999px;
  background: #1a2a3e;
  color: #fffaf1;
  font-weight: 700;
}
.nav-contact:hover { background: #30445b; }
.nav-contact svg { color: #ffc387; }
.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #e4d9c6;
  border-radius: 11px;
  background: #f7f0e4;
  color: var(--ink);
}

@media (max-width: 800px) {
  .header-row { min-height: 64px; gap: 9px; }
  .wordmark { font-size: 1rem; }
  .header-emblem { flex-basis: 38px; height: 38px; border-radius: 9px; }
  .wordmark img { width: 22px; height: 25px; }
  .menu-toggle { display: grid; place-items: center; }
  #site-nav {
    display: none;
    position: absolute;
    inset: calc(100% + 7px) max(18px, calc((100% - 740px) / 2)) auto;
    padding: 12px;
    background: #fffaf1;
    border: 1px solid #e8dfd0;
    border-radius: 15px;
    box-shadow: 0 10px 24px #10192526;
  }
  #site-nav.is-open { display: grid; gap: 10px; }
  .nav-links { display: grid; background: transparent; border: 0; border-radius: 0; padding: 0; }
  .nav-links a { border-radius: 7px; padding: 11px 12px; }
  .nav-links a:hover { background: #f2ebdf; }
  .nav-contact { justify-self: start; }
}

.hero {
  position: relative; isolation: isolate; background: var(--dark); color: #fff;
}
.hero-media, .hero-media::after, .hero-poster, .hero-poster img, .hero-film {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media { z-index: -1; pointer-events: none; overflow: hidden; }
.hero-poster img, .hero-film { object-fit: cover; object-position: center 52%; }
.hero-film { opacity: 0; transition: opacity .7s ease; }
.hero-film.is-ready { opacity: 1; }
.hero-media::after {
  content: "";
  background:
    linear-gradient(90deg, #101925f7 0%, #101925ed 19%, #101925bf 39%, #10192530 74%, transparent 100%),
    linear-gradient(0deg, #101925 0%, #10192555 27%, transparent 59%);
}
.hero-inner {
  min-height: clamp(610px, calc(93svh - 80px), 920px);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 80px 21px;
}
.hero-copy { width: min(100%, 810px); margin-block: auto; padding-block: 20px 43px; }
.kicker { color: var(--copper); font-size: .875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero .kicker, .contact .kicker { color: #ffb675; }
.hero .kicker { display: flex; align-items: center; gap: 12px; }
.hero .kicker::before { content: ""; width: 33px; height: 2px; background: var(--orange); }
h1 { font-size: clamp(3.1rem, 6.35vw, 5.8rem); margin: 16px 0 22px; line-height: .99; letter-spacing: -.06em; }
h1 span { display: block; color: #ffba79; }
.hero-description { color: #e9edf3; max-width: 47ch; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hero-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-topics a {
  display: flex; align-items: center; gap: 11px; height: 100%; padding: 15px 17px; min-height: 53px;
  background: #162236e6; border: 1px solid #f1f4f836; border-radius: 7px; text-decoration: none; font-weight: 700;
}
.hero-topics a:hover { background: #223550; border-color: #ffb675; }
.hero-topics svg { color: #ffb675; }
@keyframes enter-hero {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter-hero .65s ease-out both; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-film { transition: none; }
}
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.button {
  border: 1px solid transparent; border-radius: 7px; min-height: 48px; padding: 11px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; text-decoration: none;
}
.primary { background: var(--orange); color: #251c12; }
.primary:hover:not(:disabled) { background: #ffb66f; }
.ghost { background: #17243c85; color: var(--sand); border-color: #d4e0f49b; }
.ghost:hover { background: #f7f3ea20; border-color: var(--paper); }
.hero-note { color: #c0cde0; font-size: .875rem; margin-top: 15px; }

.site-footer {
  color: #fffaf1;
  background: linear-gradient(110deg, #182a3a, #101b2a 72%);
  border-top: 1px solid #28394d;
  padding-block: 23px;
}
.footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(18px, 4vw, 49px);
  min-height: 98px;
  padding: 19px clamp(18px, 3vw, 32px);
  border: 1px solid #3b4a5a;
  border-radius: 18px;
  background: #ffffff05;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: clamp(1rem, 2.1vw, 1.32rem);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}
.footer-emblem {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #6b5645;
  border-radius: 12px;
  background: #291f1a65;
}
.footer-emblem img { width: 25px; height: 28px; }
.footer-divider { color: #ffc387; font-weight: 400; }
.footer-identity p { margin: 4px 0 0 55px; color: #93a7be; font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-link { color: #e4eaf0; }
.footer-link:hover { color: #ffc387; }
.footer-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #566476;
  border-radius: 999px;
  white-space: nowrap;
}
.footer-back:hover { border-color: #d28653; background: #ffffff0b; }


dialog {
  color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  width: min(550px, 100% - 26px); max-height: calc(100% - 30px); padding: 24px;
}
dialog::backdrop { background: #151a15bc; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.dialog-head h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
.close-dialog { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); }
.close-dialog:hover { background: #f2e7d6; }
.dialog-intro { color: var(--muted); margin: 10px 0 16px; }
dialog label { font-weight: 700; display: block; margin: 12px 0 4px; }
dialog input, dialog select {
  width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid #a59c8d; border-radius: 5px; background: #fffdf9; color: inherit;
}
dialog select { appearance: none; padding-right: 30px; background: #fffdf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23525449' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center no-repeat; }
dialog form .primary { margin-top: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.booking { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.booking small { display: block; color: var(--muted); margin-top: 3px; }
.secondary { color: var(--ink); background: transparent; border-color: #a59c8d; }
.secondary:hover { background: #f2e7d6; }
.form-feedback { display: block; color: var(--copper); font-weight: 700; margin: 10px 0; }
.form-feedback:empty { margin: 0; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 56px, 1240px); }
  .hero-inner { padding-block: 54px 18px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .hero-inner { min-height: 0; padding-block: 0 18px; }
  .hero-media { height: min(92vw, 470px); }
  .hero-poster img, .hero-film { object-position: 56% 54%; }
  .hero-media::after { background: linear-gradient(0deg, #111d2f 3%, #111d2fcf 34%, #111d2f18 68%, transparent 100%); }
  .hero-copy { margin: 0; padding: min(47vw, 265px) 0 15px; }
  h1 { font-size: clamp(2.65rem, 9vw, 4.2rem); }
  .hero-description { font-size: 1rem; }
  .hero-topics { grid-template-columns: 1fr; gap: 6px; }
  .hero-topics a { min-height: 42px; padding: 8px 11px; font-size: .94rem; }
  .footer-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .footer-links { border-top: 1px solid #3b4a5a; padding-top: 13px; }
  .footer-back { justify-self: start; }
}
@media (max-width: 390px) {
  .actions { display: grid; }
  dialog { padding: 16px; }
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}

.editorial h2 {
  font: 400 clamp(2.9rem, 6.4vw, 5.8rem)/.94 "Instrument Serif", Georgia, serif;
  letter-spacing: -.025em;
}
.services {
  background: #f8f6f1;
}
.services-layout { padding-block: clamp(48px, 6vw, 88px); }
.services-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px 30px;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.services-heading h2 {
  color: var(--ink);
  font: 700 clamp(2.3rem, 4.1vw, 4rem)/1.03 "DM Sans", system-ui, sans-serif;
  letter-spacing: -.055em;
}
.service-list {
  --service-columns: 3;
  --service-gap: clamp(13px, 1.55vw, 22px);
  display: grid;
  grid-template-columns: repeat(var(--service-columns), minmax(0, 1fr));
  column-gap: var(--service-gap);
  margin-block-end: calc(-1 * var(--service-gap));
}
.service-card {
  --service-padding: clamp(20px, 2.55vw, 34px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-block-size: var(--service-card-height, auto);
  margin-block-end: var(--service-gap);
  padding: var(--service-padding);
  border: 1px solid #e9e3d9;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  scroll-margin-top: 20px;
}
.service-card:hover { border-color: #c8b5a3; }
.service-card[aria-expanded="true"] { border-color: #c8b5a3; background: #fdfaf5; }
.service-card::after {
  content: "+" / "";
  position: absolute;
  top: var(--service-padding);
  right: var(--service-padding);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #82664f;
  font-size: 1.15rem;
  line-height: 1;
}
.service-card[aria-expanded="true"]::after { content: "−" / ""; }
.service-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: #f5f0e9;
  color: var(--copper);
}
.service-title { font-size: clamp(1.15rem, 1.7vw, 1.38rem); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.service-intro { margin-top: 8px; max-width: 56ch; }
.service-intro, .service-columns p { color: #55594f; }
.service-panel { grid-column: 1 / -1; min-height: 0; overflow: hidden; }
.service-panel-surface {
  margin-block-end: var(--service-gap);
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid #e9e3d9;
  border-radius: 18px;
  background: #fff;
}
.service-panel h3 { margin-bottom: 16px; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.service-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.3vw, 28px);
  border-top: 1px solid #eee9e1;
  padding-top: 16px;
}
.service-columns > div + div { padding-inline-start: clamp(14px, 2.3vw, 28px); border-inline-start: 1px solid #eee9e1; }
.service-columns h4 { font-size: 1rem; margin: 0 0 5px; }

@media (prefers-reduced-motion: no-preference) {
  .service-card { transition: scale 200ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out; }
  @media (hover: hover) and (pointer: fine) {
    .service-card:hover { scale: 1.015; }
  }
  .service-card:active { scale: .988; }
}

@media (max-width: 940px) {
  .service-list { --service-columns: 2; }
}
@media (max-width: 700px) {
  .service-columns { grid-template-columns: minmax(0, 1fr); }
  .service-columns > div + div { padding: 13px 0 0; border-inline-start: 0; border-top: 1px solid #eee9e1; }
}
@media (max-width: 580px) {
  .service-list { --service-columns: 1; }
}

.office { background: #18222a; color: #fff8ec; }
.office-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 8vw, 110px);
  padding-block: clamp(38px, 6vw, 88px);
}
.office-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #ffffff26;
  border-radius: clamp(16px, 2vw, 24px);
  box-shadow: 0 12px 28px #080e1538;
}
.office-copy { container-type: inline-size; }
#office-title, #insights-title, #contact-title {
  font-family: "Baskervville", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}
#office-title {
  margin: 14px 0 18px;
  font-size: clamp(1.4rem, 3.8vw, 3.6rem);
  font-size: clamp(1.4rem, 8.9cqi, 3.6rem);
  white-space: nowrap;
}
#insights-title, #contact-title {
  font-size: clamp(2rem, 4.35vw, 3.65rem);
  text-wrap: balance;
}
#insights-title { max-width: 18ch; }
.office-copy p:last-child { color: #e8e7dd; max-width: 45ch; font-size: 1.08rem; }
.office-location { color: #ffc387; font-size: .96rem; font-weight: 700; }

.first-contact { background: #f6f1e7; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, .7fr);
  align-items: start;
  gap: clamp(25px, 7vw, 100px);
  padding-block: clamp(53px, 7vw, 99px);
}
.contact-layout h2 + p { color: #55594f; margin-top: 16px; max-width: 59ch; }
.contact-questions { margin-top: 24px; border-top: 1px solid #cec5b6; }
.contact-questions details { border-bottom: 1px solid #cec5b6; }
.contact-questions summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  font-weight: 700;
}
.contact-questions summary::-webkit-details-marker { display: none; }
.contact-questions summary::after { content: "+" / ""; color: var(--copper); font-size: 1.35rem; line-height: 1; }
.contact-questions [open] summary::after { content: "−" / ""; }
.contact-questions details p { color: #55594f; margin-bottom: 14px; max-width: 59ch; }
.contact-card { background: #fffaf1; border: 1px solid #ded3bf; border-radius: 5px; padding: clamp(20px, 4vw, 45px); }
.contact-card h3 { font-size: 1.38rem; line-height: 1.2; }
.contact-card address { font-style: normal; color: #55594f; margin: 10px 0 19px; }
.bookings-link {
  display: block;
  margin: 12px 0 0;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bookings-link:hover { color: var(--copper); }

@media (max-width: 760px) {
  .office-layout, .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

.team { background: #f8f5ef; }
.team-layout { padding-block: clamp(48px, 6.5vw, 94px); }
.team-grid {
  --team-gap: clamp(12px, 1.5vw, 20px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--team-gap);
}
.person {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e6ded2;
  border-radius: 18px;
  background: #fffdf9;
  color: var(--ink);
  text-align: left;
}
.person:hover { border-color: #b18565; }
.person img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 38%;
  background: #eae6df;
}
.person-info { display: grid; gap: 5px; padding: 16px; }
.person-name { font-size: clamp(1.03rem, 1.6vw, 1.22rem); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.person-role { color: #55594f; font-size: .94rem; }

.insights { background: #eee8dc; }
.insights-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 7vw, 92px);
  padding-block: clamp(48px, 6.5vw, 94px);
}
.insights-intro p { color: #55594f; margin-top: 16px; max-width: 32ch; }
.insights-list { display: grid; gap: 9px; align-content: start; }
.insights-list details {
  border: 1px solid #ddd2c3;
  border-radius: 14px;
  background: #fffdf9;
}
.insights-list details[open] { border-color: #b49d86; }
.insights-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 17px;
  list-style: none;
}
.insights-list summary::-webkit-details-marker { display: none; }
.insights-list summary::after {
  content: "+" / "";
  flex: 0 0 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7ede0;
  color: var(--copper);
  font-size: 1.2rem;
}
.insights-list [open] summary::after { content: "−" / ""; }
.insights-list summary strong { font-size: clamp(1rem, 1.8vw, 1.18rem); }
.guide-topic { display: block; color: var(--copper); font-size: .875rem; margin-bottom: 4px; }
.guide-text {
  margin-inline: 17px;
  padding: 14px 0 18px;
  border-top: 1px solid #e6ded2;
  color: #444c44;
}
.guide-text p + p { margin-top: 11px; }
.guide-source { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; }
.guide-source a { color: var(--copper); text-underline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .insights-list details { transition: border-color 280ms ease-out; }
  :is(.insights-list, .contact-questions) details[open] > :not(summary) {
    animation: reveal-disclosure 280ms ease-out;
  }

  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    :is(.insights-list, .contact-questions) details { interpolate-size: allow-keywords; }
    :is(.insights-list, .contact-questions) details::details-content {
      display: flow-root;
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size 320ms cubic-bezier(.25, .75, .25, 1),
        opacity 240ms ease-out, content-visibility 320ms allow-discrete;
    }
    :is(.insights-list, .contact-questions) details[open]::details-content { block-size: auto; opacity: 1; }
    :is(.insights-list, .contact-questions) details[open] > :not(summary) { animation: none; }
  }
}

@keyframes reveal-disclosure {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .insights-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 580px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid > .person:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--team-gap)) / 2);
  }
  .person-info { padding: 13px; }
}

.profile-dialog {
  width: min(740px, 100% - 26px);
  max-height: min(770px, calc(100% - 34px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7e1d7;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 64px #10192538;
}
.profile-dialog[open] { display: flex; flex-direction: column; }
.profile-dialog::backdrop { background: #111d2f96; }

@media (prefers-reduced-motion: no-preference) {
  .profile-dialog[open]::backdrop { animation: profile-backdrop-enter 320ms ease-out both; }
}

@keyframes profile-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.profile-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid #ebe5db;
  flex: 0 0 auto;
}
.profile-portrait {
  width: 68px;
  height: 68px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 17px;
  background: #f3eee7;
}
.profile-heading h2 { font-size: clamp(1.35rem, 4.4vw, 2.05rem); }
.profile-heading .close-dialog {
  align-self: start;
  background: #f6f2eb;
  border-color: #ebe3d8;
  border-radius: 11px;
}
.profile-heading form { align-self: start; }
.profile-heading .close-dialog:hover { background: #efe6d9; }
.profile-role { margin-top: 5px; color: var(--muted); }
.profile-content {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #baaa97 transparent;
  margin: 8px 9px 9px;
  padding: 10px 17px 14px;
}
.profile-content:focus-visible { outline-offset: -3px; border-radius: 10px; }
.profile-section {
  border: 1px solid #eee8de;
  background: #fcfaf6;
  border-radius: 13px;
  padding: 15px 17px;
}
.profile-section + .profile-section { margin-top: 10px; }
.profile-section h3 { font-size: 1.13rem; }
.profile-section ul { padding-inline-start: 20px; margin: 8px 0 0; }
.profile-section li + li { margin-top: 7px; }
.profile-education span { display: block; color: var(--muted); }

@media (max-width: 540px) {
  .profile-heading { gap: 9px; padding: 15px 13px; }
  .profile-portrait { width: 43px; height: 43px; border-radius: 10px; }
  .profile-role { font-size: .89rem; }
  .profile-content { padding: 6px; }
  .profile-section { padding: 12px; }
}
