.about-office {
  --office-ink: #152a1f;
  --office-line: #9fae92;
  --office-paper: #f4f3e8;
  background: var(--office-paper);
  color: var(--office-ink);
  padding-block: clamp(48px, 7vw, 100px);
  scroll-margin-top: 90px;
}
.office-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .65fr);
  align-items: end;
  gap: clamp(18px, 4vw, 80px);
  padding-bottom: clamp(16px, 3.1vw, 44px);
}
.about-page .office-heading h2 {
  margin: 0;
  color: var(--office-ink);
  font-size: clamp(3rem, 8vw, 8.4rem);
  line-height: .9;
  font-weight: 560;
  letter-spacing: -.082em;
}
.office-heading p {
  margin: 0;
  max-width: 41ch;
  color: #384638;
  font-size: clamp(.96rem, 1.45vw, 1.18rem);
  line-height: 1.5;
}
.office-jobs-link, .office-panel-heading a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: .6em;
  color: #264833;
  font-weight: 620;
  text-underline-offset: .28em;
}
.office-jobs-link { margin-top: 5px; }
:is(.office-jobs-link, .office-panel-heading a):hover { text-decoration: underline; }

.office-map {
  background: #dce1c5;
  border-block: 1px solid var(--office-line);
  scroll-margin-top: 94px;
}
.office-map-scene { position: relative; margin-inline: auto; max-width: 1050px; }
.office-map-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.office-zone {
  --pin-color: #b3df80;
  --pin-ink: #263c2c;
  position: absolute;
  inset: var(--pin-y) auto auto var(--pin-x);
  transform: translate(-50%,-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #486145;
  color: var(--pin-ink);
  background: #f6f6eaf5;
  border-radius: 4px;
  box-shadow: 3px 3px 0 #35402f40;
  font-size: clamp(.74rem, 1.1vw, .92rem);
  font-weight: 655;
  line-height: 1.05;
  white-space: nowrap;
  z-index: 1;
  transition: background .18s ease, box-shadow .18s ease, transform .22s ease;
}
.office-zone > span {
  display: block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  border: 1px solid #36543c;
  background: var(--pin-color);
}
.office-zone:hover, .office-zone[aria-current="location"] {
  background: var(--pin-color);
  color: var(--pin-ink);
  box-shadow: 5px 5px 0 #35402f65;
}
.office-zone:focus-visible { outline: 3px solid #21492d; outline-offset: 3px; z-index: 2; }
.zone-leaders { --pin-x: 24%; --pin-y: 81%; --pin-color: #daccf0; }
.zone-engineering { --pin-x: 49%; --pin-y: 54%; }
.zone-business { --pin-x: 82%; --pin-y: 35%; --pin-color: #e8d1b7; }
.zone-jobs { --pin-x: 80%; --pin-y: 88%; --pin-color: #d4e7f1; }
.office-zone[aria-current="location"] > span { background: #243d29; }

.office-panel { scroll-margin-top: 93px; padding-top: clamp(22px, 4vw, 54px); }
.office-panel:focus { outline: none; }
.office-panel-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 15px;
  padding-bottom: 10px;
}
.about-page .office-panel-heading h3 {
  margin: 0;
  color: var(--office-ink);
  font-weight: 560;
  font-size: clamp(1.95rem, 4.5vw, 4.2rem);
  letter-spacing: -.065em;
  line-height: 1.02;
}

.office-cast {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(18px, 4vw, 52px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.office-leadership .office-cast { grid-template-columns: repeat(2,minmax(0,1fr)); }
.office-person { min-width: 0; border-bottom: 1px solid var(--office-line); padding-bottom: 13px; }
.office-portrait {
  position: relative;
  background: #d7dec3;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 13px;
}
.office-portrait > summary {
  position: relative;
  display: block;
  list-style: none;
  cursor: pointer;
}
.office-portrait summary::-webkit-details-marker { display: none; }
.office-portrait summary:focus-visible { outline: 3px solid #152a1f; outline-offset: -5px; border-radius: 0; }
.office-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.office-leadership .office-portrait img { aspect-ratio: 1.2; object-position: center 22%; }
.office-portrait img { transition: transform .44s cubic-bezier(.17,.69,.3,1); }
.office-portrait:is(:hover,[open]) img { transform: scale(1.045) rotate(-1deg); }
.office-reveal {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #3c4a38;
  color: #152a1f;
  background: #fbf9ef;
  border-radius: 50%;
  font: 550 1.36rem/1 Geist, sans-serif;
  transition: transform .22s ease;
}
.office-portrait[open] .office-reveal { transform: rotate(45deg); }
.office-character {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 13px;
  color: #fbf9ef;
  background: #152a1f;
  pointer-events: none;
}
.office-character strong { font-size: clamp(.85rem, 1.6vw, 1.17rem); }
.office-character span { font: 500 clamp(.64rem, 1.2vw, .81rem)/1.35 "Geist Mono", monospace; }
.about-office .office-person h4 {
  margin: 0 0 5px;
  color: var(--office-ink);
  font-size: clamp(1.06rem, 2.15vw, 1.9rem);
  font-weight: 620;
  letter-spacing: -.048em;
  line-height: 1.02;
  text-wrap: pretty;
}
.about-office .office-person p {
  margin: 0;
  color: #435343;
  font-size: clamp(.78rem, 1.25vw, 1rem);
  line-height: 1.45;
}

@media (max-width: 700px) {
  .office-heading { grid-template-columns: 1fr; }
  .office-map-art { border-bottom: 1px solid var(--office-line); }
  .office-zones { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 7px; }
  .office-zone { position: static; transform: none; white-space: normal; gap: 6px; box-shadow: none; padding-inline: 8px; }
  .office-zone:is(:hover,[aria-current="location"]) { box-shadow: none; }
  .office-cast { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
  .office-cast { align-items: start; }
  .office-leadership .office-portrait img { aspect-ratio: 1; }
  .office-panel-heading a { font-size: .82rem; }
}
@media (max-width: 380px) {
  .office-reveal { inset: 6px 6px auto auto; width: 27px; height: 27px; }
  .office-character { padding: 7px 8px; }
}

@property --desk-x { syntax: "<percentage>"; inherits: false; initial-value: 24%; }
@property --desk-y { syntax: "<percentage>"; inherits: false; initial-value: 81%; }
.about-office[data-office-zone] .office-map-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 48% 53% at var(--desk-x) var(--desk-y), transparent 30%, #1b352321 158%);
  transition: --desk-x .48s cubic-bezier(.21,.63,.36,1), --desk-y .48s cubic-bezier(.21,.63,.36,1);
}
.about-office[data-office-zone="1"] .office-map-scene::after { --desk-x: 49%; --desk-y: 54%; }
.about-office[data-office-zone="2"] .office-map-scene::after { --desk-x: 82%; --desk-y: 35%; }
.about-office[data-office-zone="3"] .office-map-scene::after { --desk-x: 80%; --desk-y: 88%; }

@media (prefers-reduced-motion: no-preference) {
  .office-portrait[open] .office-character { animation: character-credit .24s ease-out both; }
}
@keyframes character-credit {
  from { transform: translateY(100%); }
}

.zone-honors {
  --pin-x: 83%;
  --pin-y: 18%;
  --pin-color: #f1d39a;
  font-family: inherit;
  cursor: pointer;
}
.zone-honors[hidden] { display: none; }

@media (min-width: 1100px) {
  .office-departments {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(25px, 4vw, 56px);
  }
  .office-departments .office-cast { gap: 22px clamp(12px, 2vw, 25px); }
  .office-business .office-cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .office-departments .office-panel-heading h3 { font-size: clamp(1.8rem, 3vw, 3.25rem); }
  .office-departments .office-person h4 { font-size: clamp(1rem, 1.65vw, 1.4rem); }
}

.office-honors {
  box-sizing: border-box;
  width: min(640px, calc(100% - 24px));
  max-height: min(720px, calc(100dvh - 28px));
  overflow: auto;
  border: 1px solid #849383;
  border-radius: 10px;
  padding: 0;
  color: #152a1f;
  background: #f5f0e2;
  box-shadow: 0 16px 72px #101d1560;
}
.office-honors::backdrop { background: #111d16b5; }
.office-honors-shell { padding: clamp(17px, 4vw, 38px); }
.office-honors-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.about-page .office-honors-heading h2 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(1.95rem, 5vw, 3.85rem);
  line-height: .94;
  font-weight: 580;
  letter-spacing: -.066em;
}
.office-honors-close {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #829583;
  border-radius: 4px;
  background: #fff9ea;
  color: #173126;
  font: 600 .81rem/1 Geist, sans-serif;
  cursor: pointer;
}
.office-honors-close:hover { background: #e4ebcb; }
.office-honors-close > span { font-size: 1.1rem; line-height: .8; }
.office-honors-list { list-style: none; margin: clamp(16px, 4vw, 33px) 0 0; padding: 0; }
.office-honors-entry {
  position: relative;
  display: grid;
  grid-template-columns: clamp(74px, 23vw, 154px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 4vw, 28px);
  min-height: 104px;
  border-top: 1px solid #a7ae94;
  padding-block: clamp(12px, 4vw, 24px);
}
.office-honors-entry:last-child { border-bottom: 1px solid #a7ae94; }
.office-honors-head {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid #fff9e8;
  border-radius: 48% 52% 50% 50%;
  background: #d5dec9;
  box-shadow: 3px 5px 0 #18432c2b;
  transform: rotate(-5deg);
}
.office-honors-head img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.44);
  transform-origin: 52% 27%;
}
.office-honors-entry time {
  color: #435945;
  font: 550 clamp(.72rem, 2vw, .92rem)/1.35 "Geist Mono", monospace;
}
.about-page .office-honors-entry h3 {
  margin: 5px 0 3px;
  color: #152a1f;
  font-size: clamp(1.3rem, 4vw, 2.55rem);
  font-weight: 645;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.office-honors-entry p { margin: 0; color: #435343; font-size: clamp(.8rem, 2vw, 1rem); }
@media (prefers-reduced-motion: no-preference) {
  .office-honors[open] .office-honors-head {
    animation: office-head-arrives .82s cubic-bezier(.22,.77,.24,1) calc(var(--arrival) * .09s) both;
  }
}
@keyframes office-head-arrives {
  0% { transform: translateY(18px) scale(.82) rotate(-11deg); opacity: 0; }
  62% { transform: translateY(-10px) scale(1.03) rotate(4deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotate(-5deg); opacity: 1; }
}
@media (max-width: 450px) {
  .zone-honors { grid-area: 3 / 1 / auto / -1; }
}

.office-jobs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 52px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.office-position { min-width: 0; padding-bottom: 14px; border-bottom: 1px solid var(--office-line); }
.office-apply {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #244334;
  background: #132b21;
  color: #132b21;
}
.office-apply:focus-visible { outline: 2px solid #32764c; outline-offset: 3px; }
.office-seat { position: absolute; inset: 0; }
.office-seat::before, .office-seat::after {
  content: "";
  position: absolute;
  border: 1px dashed #b6d3ad8c;
}
.office-seat::before { inset: 15% 22% 14%; border-radius: 47% 47% 28% 28% / 47% 47% 29% 29%; }
.office-seat::after { inset: 56% 16% 11.5%; border-radius: 46% / 40%; }
.office-apply-label {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .75em;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid #fbfaeb;
  border-radius: 3px;
  background: #f0f3df;
  color: #132b21;
  font-weight: 650;
  font-size: clamp(.83rem, 1.15vw, 1.05rem);
}
.office-apply:hover .office-apply-label { background: #dbebc1; }
.office-position--general .office-apply { align-items: end; padding: 11px; }
.office-position--general img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.office-position h4 {
  margin: 10px 0 4px;
  color: var(--office-ink);
  font-size: clamp(1.22rem, 2.2vw, 2.1rem);
  line-height: 1.04;
  font-weight: 625;
  letter-spacing: -.055em;
  text-wrap: pretty;
}
.office-job-department { color: #435343; font: 500 .84rem/1.4 "Geist Mono", monospace; }

@media (max-width: 700px) {
  .office-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .office-jobs { grid-template-columns: minmax(0, 1fr); }
}
