@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

body.company {
  margin: 0;
  background: #f7f5ed;
  color: #163e34;
  font-family: 'Instrument Sans', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.company :focus-visible {
  outline: 3px solid #163e34;
  outline-offset: 3px;
  border-radius: 6px;
}

.company h1,
.company h2,
.company h3,
.company p {
  overflow-wrap: anywhere;
}

.company-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 32px;
}

.company-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 0 0;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.4px;
}

.company-wordmark span {
  color: #7d8aa9;
  font-weight: 500;
}

.company-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.company-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #163e34;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}

.company-nav a:hover {
  background: #ece7d8;
}

.company .contact-trigger {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #163e34;
  border-radius: 999px;
  background: #163e34;
  color: #f7f5ed;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.company .contact-trigger:hover {
  background: #1f5446;
  border-color: #1f5446;
}

.company .company-secondary {
  background: transparent;
  border-color: #c9c1a8;
  color: #163e34;
}

.company .company-secondary:hover {
  background: #efe9d6;
  border-color: #c9c1a8;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 24px;
}

.company-hero {
  max-width: 820px;
  padding: 54px 0 36px;
}

.company-eyebrow {
  margin: 0;
  color: #b0685a;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 2px;
}

.company h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.company-lead {
  max-width: 640px;
  margin: 0;
  color: #4b6159;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.company-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.company-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #d98b76;
  color: #163e34;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.company-cta:hover {
  background: #cd7a63;
}

.company h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.company-muted {
  margin: 0;
  color: #5c6f66;
  font-size: 14px;
}

#office,
#services,
.company-portfolio {
  padding: 28px 0 8px;
  scroll-margin-top: 20px;
}

.office-scene {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #e3dcc8;
  border-radius: 18px;
  background: #f2ecdc;
}

.office-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 560;
  pointer-events: none;
}

#office-hotspots {
  position: absolute;
  inset: 0;
}

#office-hotspots .office-person {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #163e34;
  font: inherit;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.person-shape {
  position: relative;
  display: block;
  width: 46px;
  height: 60px;
  transform: translateY(var(--lift, 0)) scale(var(--fig-scale, 1));
  transition: transform 0.18s ease;
}

.office-person:hover .person-shape,
.office-person[aria-pressed='true'] .person-shape {
  --lift: -2px;
}

.person-head {
  position: absolute;
  left: 50%;
  top: 0;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: #f0cdb5;
  box-shadow: inset -2px -2px 0 #e0b59c;
}

.person-head::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -2px;
  right: -2px;
  height: 10px;
  border-radius: 9px 9px 3px 3px;
  background: var(--accent, #d98b76);
  box-shadow: inset 0 -2px 0 rgba(22, 62, 52, 0.18);
}

.person-head::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 3px;
  width: 12px;
  height: 3px;
  background:
    radial-gradient(circle at 2px 1.5px, #163e34 1.2px, transparent 1.4px),
    radial-gradient(circle at 10px 1.5px, #163e34 1.2px, transparent 1.4px);
}

.office-person[data-room='infra'] .person-head::before {
  height: 8px;
  border-radius: 8px 8px 3px 3px;
}

.office-person[data-room='software'] .person-head::before {
  left: -3px;
  right: -1px;
  height: 10px;
  border-radius: 9px 4px 3px 8px;
  transform: rotate(-5deg);
  transform-origin: right bottom;
}

.office-person[data-room='video'] .person-head::before {
  top: -5px;
  left: -4px;
  right: -4px;
  height: 16px;
  border-radius: 11px 11px 8px 8px;
  box-shadow:
    inset 0 -3px 0 rgba(22, 62, 52, 0.16),
    -3px 8px 0 -4px var(--accent, #d98b76),
    3px 8px 0 -4px var(--accent, #d98b76);
}

.office-person[data-room='reception'] .person-head::before {
  top: -3px;
  left: -3px;
  right: -3px;
  height: 14px;
  border-radius: 10px 10px 7px 7px;
  box-shadow:
    inset 0 -3px 0 rgba(22, 62, 52, 0.16),
    -2px 7px 0 -4px var(--accent, #d98b76),
    2px 7px 0 -4px var(--accent, #d98b76);
}

.person-body {
  position: absolute;
  left: 50%;
  top: 17px;
  width: 25px;
  height: 24px;
  margin-left: -12.5px;
  border-radius: 12px 12px 5px 5px;
  background: var(--accent, #d98b76);
  box-shadow:
    inset 3px 0 0 rgba(255, 255, 255, 0.18),
    inset -3px 0 0 rgba(22, 62, 52, 0.12);
}

.person-body::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 9px;
  margin-left: -3px;
  border-radius: 0 0 4px 4px;
  background: rgba(255, 255, 255, 0.55);
}

.person-leg {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 6px;
  height: 14px;
  border-radius: 3px;
  background: #31594c;
  box-shadow: inset -2px 0 0 rgba(22, 62, 52, 0.16);
}

.person-leg-left {
  margin-left: -8px;
}

.person-leg-right {
  margin-left: 2px;
}

.person-leg::after {
  content: '';
  position: absolute;
  left: -2px;
  bottom: -2px;
  width: 10px;
  height: 4px;
  border-radius: 2px 3px 2px 2px;
  background: #163e34;
}

.person-arm {
  position: absolute;
  top: 20px;
  width: 6px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent, #d98b76);
  box-shadow: inset -2px 0 0 rgba(22, 62, 52, 0.12);
  transform-origin: top center;
}

.person-arm-left {
  left: 5px;
  transform: rotate(8deg);
}

.person-arm-right {
  right: 5px;
  transform: rotate(-8deg);
}

.person-arm::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f0cdb5;
  box-shadow: inset -1px -1px 0 #e0b59c;
}

.office-person[data-room='reception'] .person-body::before {
  content: '';
  position: absolute;
  top: -17px;
  left: 50%;
  width: 20px;
  height: 17px;
  margin-left: -10px;
  border: 2px solid #31594c;
  border-bottom-color: transparent;
  border-radius: 12px 12px 6px 6px;
}

.person-shadow {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 30px;
  height: 7px;
  margin-left: -15px;
  border-radius: 50%;
  background: rgba(22, 62, 52, 0.18);
}

.person-label {
  max-width: 112px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(247, 245, 237, 0.94);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.person-role {
  max-width: 100px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(247, 245, 237, 0.94);
  color: #5c6f66;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}

.office-person[aria-pressed='true'] .person-label {
  background: #163e34;
  color: #f7f5ed;
}

#team-detail {
  margin: 26px 0 8px;
  padding: 26px 28px;
  border: 1px solid #e3dcc8;
  border-radius: 18px;
  background: #fffdf7;
}

#team-detail h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

#team-detail p {
  margin: 0;
  color: #4b6159;
  font-size: 14px;
}

#team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 4px;
}

.company .team-link {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #cfc7ae;
  border-radius: 999px;
  background: #f7f5ed;
  color: #163e34;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.company .team-link:hover {
  background: #efe9d6;
}

.company .team-link[aria-pressed='true'] {
  background: #163e34;
  border-color: #163e34;
  color: #f7f5ed;
}

.company-fallback {
  margin-top: 12px !important;
  color: #5c6f66 !important;
  font-size: 13px !important;
  max-width: 72ch;
}

.company-services,
.company-concepts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.company-services article,
.company-concepts article {
  padding: 24px;
  border: 1px solid #e3dcc8;
  border-radius: 16px;
  background: #fff;
}

.company-services h3,
.company-concepts h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.company-services p,
.company-concepts p {
  margin: 0;
  color: #4b6159;
  font-size: 14.5px;
}

.company-concepts article {
  background: #f3eff7;
  border-color: #e3dcec;
}

.company-concept-label {
  margin: 0 0 10px !important;
  color: #b0685a !important;
  font-size: 11px !important;
  font-weight: 650;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.company-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1240px;
  margin: 44px auto 0;
  padding: 24px 32px 40px;
  border-top: 1px solid #e3dcc8;
  color: #5c6f66;
  font-size: 13px;
}

.company-footer p {
  margin: 0;
}

.company dialog {
  position: relative;
  width: calc(100% - 32px);
  max-width: 440px;
  padding: 28px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #163e34;
  box-shadow: 0 24px 60px rgba(22, 62, 52, 0.25);
}

.company dialog::backdrop {
  background: rgba(22, 62, 52, 0.42);
}

.company dialog h2 {
  margin: 0 0 12px;
  padding-right: 84px;
  font-size: 1.35rem;
}

#contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #cfc7ae;
  border-radius: 999px;
  background: #f7f5ed;
  color: #163e34;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

#contact-close:hover {
  background: #efe9d6;
}

.company dialog label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

.company dialog textarea {
  width: 100%;
  min-height: 100px;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #cfc7ae;
  border-radius: 12px;
  background: #fbfaf4;
  color: inherit;
  font: inherit;
  font-size: 14px;
  resize: vertical;
}

#contact-send {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 20px;
  border: 1px solid #163e34;
  border-radius: 999px;
  background: #163e34;
  color: #f7f5ed;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#contact-send:hover:not(:disabled) {
  background: #1f5446;
}

#contact-send:disabled {
  background: #e6e1d2;
  border-color: #e0dac8;
  color: #8a9189;
  cursor: not-allowed;
  opacity: 0.85;
}

#contact-messages {
  color: #4b6159;
  font-size: 13px;
}

#contact-status {
  margin: 12px 0 0;
  color: #5c6f66;
  font-size: 12px;
}

@media (max-width: 760px) {
  .company-header,
  main,
  .company-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .company-hero {
    padding: 34px 0 26px;
  }

  #team-detail {
    padding: 20px;
  }

  .company-services,
  .company-concepts {
    grid-template-columns: 1fr;
  }

  #office-hotspots .office-person {
    --fig-scale: 0.68;
  }

  .person-label {
    max-width: min(84px, 18vw);
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .person-role {
    max-width: min(78px, 16vw);
    font-size: 9px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  #office-hotspots .person-label,
  #office-hotspots .person-role {
    display: none;
  }

  #office-hotspots .office-person[data-room='infra'] {
    left: 32%;
    top: 50%;
  }

  #office-hotspots .office-person[data-room='software'] {
    left: 78%;
    top: 50%;
  }

  #office-hotspots .office-person[data-room='video'] {
    left: 35%;
    top: 82%;
  }

  #office-hotspots .office-person[data-room='reception'] {
    left: 65%;
    top: 82%;
  }

  .company-footer {
    margin-top: 32px;
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
