.underlined { text-decoration: underline; text-underline-offset: .22em; }
.region-control { position: relative; }
.region-control details { border: 0; padding: 0; }
.region-control summary {
  list-style: none;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 .55rem;
  white-space: nowrap;
  font-size: .82rem;
}
.region-control summary::-webkit-details-marker { display: none; }
.region-control summary:hover,
.region-control details[open] summary { background: #ffffff16; }
.region-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .35rem);
  z-index: 1;
  width: min(22rem, calc(100vw - 2rem));
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: .45rem;
  padding: 1rem;
  box-shadow: 0 12px 28px #0003;
}
.region-panel fieldset { margin: 0; padding: 0; border: 0; }
.region-panel legend { margin-bottom: .4rem; font-weight: 650; }
.region-panel label { display: flex; align-items: center; gap: .45rem; min-height: 38px; cursor: pointer; }
.region-panel label input, .case-filter input { accent-color: var(--accent); }
.region-panel p, p[data-region-note] { font-size: .85rem; color: var(--sub); }
[data-region-note] { margin-block: 1rem; }

.social--icons { gap: .5rem; }
.social-icon, .header-share {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--rule);
}
.social-icon:hover { background: var(--surface); }
.social-icon svg { width: 1em; height: 1em; }
.header-share { border: 0; color: inherit; }
.header-share:hover { background: #ffffff16; }
.header-share svg { width: 1.2em; height: 1.2em; }
@media (min-width: 481px) {
  .header-social {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  .header-social:hover { background: #ffffff16; }
}
.share-control { font-size: .86rem; color: var(--accent); }
.share-control:hover { text-decoration: underline; text-underline-offset: .22em; }
.share-actions { width: min(28rem, 90vw); min-width: 0; padding: 1.3rem; }
.share-actions h2 { font-size: 2.15rem; margin-bottom: .8rem; }
.share-actions .share-copy { padding-left: 0; font-weight: 650; text-decoration: underline; text-underline-offset: .22em; }
.share-actions label { display: block; margin: 1rem 0; }
.share-actions input { width: 100%; padding: .65rem; font: inherit; }
.share-actions [role=status] { margin-top: .65rem; }

.team-person {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--rule);
}
.team-person.with-photo { grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr); }
.team-photo { width: 100%; height: auto; object-fit: cover; }
.team-person p { margin-top: .65rem; color: var(--sub); }
.team-person .team-role { font-weight: 600; color: var(--accent); }
.team-person .button { margin-top: 1.35rem; }
.team-projects ul { margin-bottom: 0; padding-left: 1.15rem; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }

.results-table { max-width: 100%; overflow-x: auto; }
.results-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.results-table th, .results-table td { padding: .7rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.results-table thead th { background: var(--surface); font-size: .8rem; }
.product-details { margin-top: 1rem; }
.product-details dl dt { font-weight: 600; }
.product-details dl dd { margin: .25rem 0 .7rem; color: var(--sub); }

.case-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .8rem;
  border: 1px solid var(--rule);
  padding: .45rem .7rem;
  margin: 0 0 1.35rem;
}
.case-filter label { display: inline-flex; gap: .3rem; align-items: center; min-height: 42px; cursor: pointer; }
.case-filter legend { font-weight: 600; margin-left: .45rem; }
.demo-badge { display: inline-block; padding: .18rem .55rem; color: var(--accent); background: var(--surface); border: 1px solid currentColor; }
.demo-note { margin-top: .8rem; }
.case-flow { display: flex; gap: .55rem 1.5rem; flex-wrap: wrap; margin: .6rem 0; padding-left: 1.3rem; font-size: .9rem; }
.case-flow li::marker { color: var(--accent); }
.case-tech dl { display: grid; gap: .65rem; }
.case-tech dd { margin: 0; }
.tech-list { display: flex; gap: .34rem; flex-wrap: wrap; list-style: none; margin: .45rem 0 .8rem; padding: 0; }
.tech-list li { font: .76rem/1.35 ui-monospace, monospace; border: 1px solid var(--rule); padding: .22rem .45rem; }
.case-curator { display: block; margin-bottom: .75rem; font-size: .88rem; }
.case-detail .case-cover { margin: 1.5rem 0; max-width: 65rem; }
.case-detail p { max-width: 70ch; }
.case-detail h2 { font-size: clamp(1.6rem, 2.7vw, 2.8rem); }
.case-gallery-frame { margin: 1.1rem 0; }
.case-gallery-frame img { display: block; width: 100%; max-width: 60rem; height: auto; border: 1px solid var(--rule); }
.case-gallery-frame figcaption { color: var(--sub); margin-top: .4rem; }
.product-visual { min-width: 0; overflow: hidden; border-radius: 4px; }
.product-visual img { display: block; width: 100%; height: auto; }

.referral {
  margin-top: 1.5rem;
  padding: clamp(1rem, 2.4vw, 2rem);
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.referral div { flex: 1 1 24rem; }
.referral p { color: var(--sub); margin-top: .6rem; }
.referral details { margin-top: 1rem; padding-bottom: 0; }

@media (max-width: 950px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .hero-page .mobilebar:not(.is-visible) { display: none; }
  .team-grid { grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; }
  .team-grid article { scroll-snap-align: start; }
  .results-table th, .results-table td { padding: .55rem .5rem; }
}
@media (max-width: 480px) {
  .bar .wordmark { font-size: 1.16rem; gap: .15rem; }
  .bar .wordmark img { width: 28px; height: 28px; }
  .region-control summary { padding: 0 .15rem; font-size: .75rem; }
  .header-share { display: none; }
  .team-person.with-photo { grid-template-columns: 1fr; }
  .team-photo { max-width: 15rem; }
}

[data-case-group] + [data-case-group] {
  margin-top: clamp(2.5rem, 5vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
#contact .social--icons,
#quiz .social--icons { margin-top: 1rem; }

.ready-solutions h1 { margin-bottom: 2rem; }

@media (max-width: 700px) {
  .region-panel {
    position: fixed;
    top: 3.75rem;
    inset-inline: 1rem;
    width: min(22rem, calc(100% - 2rem));
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .icon-seen > svg {
    animation: service-icon-enter 460ms cubic-bezier(.2, .75, .35, 1) both;
  }
  .service-grid article:focus-within .service-mark > svg,
  [data-solution][aria-selected="true"]:focus-visible > span > svg,
  [data-company-panel] summary:focus-visible > span > svg,
  .social-icon:is(:focus-visible, :active) > svg,
  .header-social:is(:focus-visible, :active) > svg,
  .header-share:is(:focus-visible, :active) > svg,
  #theme:is(:focus-visible, :active) > svg {
    animation: service-icon-react 430ms ease-out both;
  }
  @media (hover: hover) {
    .service-grid article:hover .service-mark > svg,
    [data-solution]:hover > span > svg,
    [data-company-panel] summary:hover > span > svg,
    .social-icon:hover > svg,
    .header-social:hover > svg,
    .header-share:hover > svg,
    #theme:hover > svg {
      animation: service-icon-react 430ms ease-out both;
    }
  }
  @keyframes service-icon-enter {
    from { opacity: .45; transform: translateY(3px) scale(.78); }
    62% { transform: translateY(-2px) scale(1.09); }
    to { opacity: 1; transform: none; }
  }
  @keyframes service-icon-react {
    45% { transform: translateY(-3px) rotate(-8deg) scale(1.12); }
    to { transform: none; }
  }
}

.region-panel {
  max-height: calc(100dvh - 5.5rem);
  overflow-y: auto;
}
.region-panel .currency-quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .35rem;
  margin-bottom: 1rem;
}
.currency-quick legend { margin-bottom: .6rem; }
.region-panel .currency-quick label { display: block; position: relative; min-width: 0; }
.currency-quick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
}
.currency-quick label span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding-inline: .14rem;
  border: 1px solid var(--rule);
  border-radius: .3rem;
  font-size: .85rem;
  font-weight: 650;
}
.currency-quick label:hover span { background: var(--surface); }
.currency-quick input:checked + span {
  color: var(--accent);
  border-color: currentColor;
  background: color-mix(in srgb, var(--accent) 12%, var(--paper));
}
.currency-quick input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.currency-list > label { min-height: 0; font-weight: 650; margin-bottom: .35rem; }
.currency-list input {
  display: block;
  width: 100%;
  margin-bottom: .45rem;
  padding: .55rem .65rem;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  border-radius: .3rem;
}
.currency-list ul {
  max-height: min(14rem, 40dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  margin: 0;
  padding: .2rem;
  border: 1px solid var(--rule);
  border-radius: .3rem;
}
.currency-list button {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 44px;
  padding: .45rem .55rem;
  border-radius: .15rem;
  text-align: start;
  font-size: .92rem;
}
.currency-list button:is(:hover, :focus-visible, [aria-pressed="true"]) {
  background: var(--surface);
  color: var(--accent);
}
.currency-list button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.region-panel [data-currency-status]:empty { display: none; }
.region-panel [data-currency-status] { margin-top: .65rem; }
