/* Home page: Technologies We Work With. Centered heading, then one rounded box: dark tab list left, scrolling light panel of technology tiles right. */
.home-tech {
  padding: clamp(72px, 9vw, 130px) 0;
  background: #fff;
  color: var(--tm-color-ink);
}
.home-tech__inner {
  width: min(var(--tm-shell-max), calc(100% - var(--tm-shell-gutter) * 2));
  margin-inline: auto;
}
.home-tech__head { max-width: 820px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.home-tech__eyebrow {
  margin: 0 0 20px;
  color: var(--tm-color-accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.5;
  text-transform: uppercase;
}
.home-tech__head h2 {
  margin: 0 0 20px;
  color: var(--tm-color-ink);
  font-size: clamp(34px, 3.9vw, 54px);
  font-weight: 500;
  letter-spacing: -1.6px;
  line-height: 1.08;
}
.home-tech__lead { margin: 0 auto; max-width: 640px; color: var(--tm-color-muted); font-size: 17px; line-height: 1.7; }

/* One rounded box */
.home-tech__panel {
  display: grid;
  grid-template-columns: minmax(250px, 3fr) minmax(0, 9fr);
  height: clamp(520px, 78vh, 680px);
  border-radius: 22px;
  overflow: hidden;
  /* background: #f4f6f9; */
  border: 1px solid #f4f6f9;
  box-shadow: 0 18px 50px rgba(20, 20, 20, .10);
}
.home-tech__tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  overflow-y: auto;
  background: var(--tm-surface-dark-grid);
}
.home-tech__tab {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--tm-color-inverse);
  font-family: var(--tm-font-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--tm-duration-normal) var(--tm-ease);
}
/* Tab icons: thin line icons in the side rail's colours (soft white, full white on hover, dark on the amber active circle). */
.home-tech__tab-icon { flex: 0 0 auto; display: block; width: 22px; height: 22px; color: rgba(255, 255, 255, .7); transition: color var(--tm-duration-normal) var(--tm-ease); }
.home-tech__tab:hover { background: rgba(255, 255, 255, .1); }
.home-tech__tab:hover .home-tech__tab-icon, .home-tech__tab:focus-visible .home-tech__tab-icon { color: #fff; }
/* Active tab matches the side rail: solid amber circle with a dark icon. */
.home-tech__tab[aria-current="true"] { background: var(--tm-color-accent); box-shadow: none; }
.home-tech__tab[aria-current="true"] .home-tech__tab-icon { color: var(--tm-color-ink); }
.home-tech__tab:focus-visible { outline: 2px solid var(--tm-color-accent); outline-offset: -2px; }

/* Icon-only tabs: the name stays for screen readers (aria-label) and as a hover tooltip (title). */
.home-tech__tab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-tech__panel { grid-template-columns: 84px minmax(0, 1fr); }
.home-tech__tabs { align-items: center; gap: 10px; background: var(--tm-surface-dark); }
.home-tech__tab { justify-content: center; width: 52px; min-height: 0; height: 52px; padding: 0; border-radius: 50%; }

/* Scrolling panel */
.home-tech__views {
  min-width: 0;
  overflow-y: auto;
  padding: clamp(24px, 3vw, 44px);
  scrollbar-width: thin;
  scrollbar-color: #b8bfca transparent;
}
/* Each section fills the panel so a clicked tab lands at the top, like a one-page site. */
.home-tech__view { min-height: 100%; padding-bottom: 24px; }
.home-tech__view + .home-tech__view { margin-top: 32px; padding-top: 32px; border-top: 1px solid #d9dfe8; }
.home-tech__view h3 {
  margin: 0 0 12px;
  color: var(--tm-color-ink); /* theme black, same as the other section headings */
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: .4px;
  line-height: 1.25;
  text-transform: uppercase;
}
.home-tech__intro { margin: 0 0 6px; color: var(--tm-color-ink); font-size: 17px; line-height: 1.7; }
.home-tech__group {
  margin: 30px 0 8px;
  color: var(--tm-color-accent);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .3px;
  line-height: 1.4;
  text-transform: uppercase;
}
.home-tech__note { margin: 0 0 16px; color: var(--tm-color-ink); font-size: 16px; line-height: 1.7; }

.home-tech__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.home-tech__items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 0 18px;
  border: 2px solid #d9dfe8;
  background: #fff;
  color: var(--tm-color-ink);
  font-size: 16px;
  line-height: 1.3;
  transition: border-color var(--tm-duration-normal) var(--tm-ease);
}
.home-tech__items li:hover { border-color: var(--tech-color, var(--tm-color-ink)); }
.home-tech__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  background-color: var(--tech-color, var(--tm-color-ink));
  -webkit-mask-position: center; -webkit-mask-size: contain; -webkit-mask-repeat: no-repeat;
  mask-position: center; mask-size: contain; mask-repeat: no-repeat;
}

@media (min-width: 1200px) {
  .home-tech { padding-left: var(--tm-rail-width); }
}
@media (max-width: 991.98px) {
  .home-tech__panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; height: auto; }
  /* Tabs become a horizontal scroller above the panel; the panel keeps its own scroll. */
  .home-tech__tabs { flex-direction: row; gap: 4px; overflow: auto hidden; padding: 10px; scrollbar-width: thin; }
  .home-tech__tab { flex: 0 0 auto; }
  .home-tech__views { height: 560px; }
}
@media (max-width: 575.98px) {
  .home-tech__panel { border-radius: 16px; }
  .home-tech__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-tech__items li { min-height: 54px; padding: 0 12px; font-size: 14px; }
  .home-tech__icon { width: 26px; height: 26px; }
}
/* Active tab animation, same as the side rail: pops in, an amber ring expands and fades once, then a soft idle pulse.
   It replays on every tab that becomes active, whether by click or by scrolling the panel from top to bottom. */
.home-tech__tab { position: relative; }
.home-tech__tab[aria-current="true"] { animation: tech-tab-in .55s var(--tm-ease) both; }
.home-tech__tab[aria-current="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--tm-color-accent);
  pointer-events: none;
  animation: tech-tab-ring 1.1s .2s ease-out 1 both, tech-tab-pulse 3.2s 1.5s ease-in-out infinite;
}
@keyframes tech-tab-in { from { transform: scale(.7); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes tech-tab-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@keyframes tech-tab-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 172, 11, 0); } 50% { box-shadow: 0 0 0 6px rgba(255, 172, 11, .16); } }
@media (prefers-reduced-motion: reduce) {
  .home-tech__tab, .home-tech__items li { transition: none; }
  .home-tech__tab[aria-current="true"], .home-tech__tab[aria-current="true"]::after { animation: none; }
  .home-tech__tab[aria-current="true"]::after { display: none; }
}

/* Technologies without a logo file get a small monogram. */
.home-tech__mono {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--tech-color, var(--tm-color-ink)) 12%, #fff);
  color: var(--tech-color, var(--tm-color-ink));
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .3px;
}
@media (max-width: 575.98px) { .home-tech__mono { width: 26px; height: 26px; font-size: 10px; } }
