/* ==========================================================================
   Our Work index: /case-studies/ (page 3116). October 2026 refresh.

   Scoped to the header block's "buttons" variant and the image-repeater block,
   both of which exist on this one page only. Tokens and type mirror the case
   study template (case-study.css), so the index and the pages it links to read
   as one family: Montserrat 800 headline, 12px green eyebrow with a short rule,
   78% white body copy, a 1104px content column.

   Squiggle rules (CLAUDE.md §3.5): full strength, bleeding off the page edge,
   never behind copy. The hero weave sits top-right, the one reliably empty part
   of a left-aligned hero. Below 1024px there is no empty corner, so it drops to
   texture at 20% opacity, as the case-study hero does on phones.
   ========================================================================== */

.b-header--heading-description-buttons,
.b-image-repeater {
  --tdw-navy:      #212235;
  --tdw-teal:      #17B7C8;
  --tdw-green:     #48D734;
  --tdw-ink:       #FFFFFF;
  --tdw-ink-body:  rgba(255, 255, 255, 0.78);
  --tdw-ink-soft:  rgba(255, 255, 255, 0.62);
  --tdw-hairline:  rgba(255, 255, 255, 0.14);
  --tdw-font:      Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tdw-gutter:    clamp(20px, 4vw, 28px);
  --tdw-ease:      cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--tdw-font);
  color: var(--tdw-ink);
}

.tdw-hero__inner,
.tdw-wrap {
  width: min(1104px, 100% - 2 * var(--tdw-gutter));
  margin-inline: auto;
}

/* ---------- Hero ---------- */

.b-header--heading-description-buttons {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.tdw-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(48px, 7vw, 96px) clamp(36px, 4.5vw, 56px);
}

.tdw-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font: 600 0.75rem/1.2 var(--tdw-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tdw-green);
}
.tdw-hero__eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.tdw-hero__title {
  margin: 0;
  max-width: 16ch;
  font: 800 clamp(2.75rem, 5.4vw, 3.9rem)/1.04 var(--tdw-font);
  letter-spacing: -0.02em;
  color: var(--tdw-ink);
  text-wrap: balance;
}
.tdw-hero__title .td-cs__hl--teal  { color: var(--tdw-teal); }
.tdw-hero__title .td-cs__hl--green { color: var(--tdw-green); }

.tdw-hero__intro {
  max-width: 36rem;
  margin-top: 24px;
  font: 400 1.0625rem/1.65 var(--tdw-font);
  color: var(--tdw-ink-body);
}
.tdw-hero__intro > * { margin: 0; text-wrap: pretty; }
.tdw-hero__intro > * + * { margin-top: 12px; }
/* The first paragraph reads as the lead. Balanced, so a short sentence doesn't
   leave one word stranded on its second line. */
.tdw-hero__intro > p:first-child {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--tdw-ink);
  text-wrap: balance;
}

.tdw-hero__jump { margin-top: 36px; }

.tdw-hero__jump-label {
  margin: 0 0 12px;
  font: 600 0.75rem/1.2 var(--tdw-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tdw-ink-soft);
}

.tdw-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Outline chips: white text on navy, teal edge. The count badge is navy on teal,
   6.4:1. (White on teal is 2.4:1, which is why the old filled pills failed.) */
.tdw-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 7px 6px 18px;
  border: 1.5px solid rgba(23, 183, 200, 0.55);
  border-radius: 999px;
  font: 600 0.9375rem/1.2 var(--tdw-font);
  color: var(--tdw-ink);
  text-decoration: none;
  transition: background-color 0.2s var(--tdw-ease), border-color 0.2s var(--tdw-ease), color 0.2s var(--tdw-ease);
}
.tdw-chip:not(:has(.tdw-chip__count)) { padding-right: 18px; }

.tdw-chip__count {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--tdw-teal);
  color: var(--tdw-navy);
  font: 700 0.8125rem/1 var(--tdw-font);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s var(--tdw-ease), color 0.2s var(--tdw-ease);
}

.tdw-chip:hover {
  background: var(--tdw-teal);
  border-color: var(--tdw-teal);
  color: var(--tdw-navy);
}
.tdw-chip:hover .tdw-chip__count {
  background: var(--tdw-navy);
  color: var(--tdw-teal);
}
.tdw-chip:focus-visible {
  outline: 3px solid var(--tdw-green);
  outline-offset: 3px;
}

/* On a phone the longest label can't share a row, so the chips become a
   full-width index: label left, count right. */
@media (max-width: 560px) {
  .tdw-hero__chips { flex-direction: column; align-items: stretch; }
  .tdw-hero__chips > li { display: flex; }
  .tdw-chip { flex: 1 1 auto; justify-content: space-between; }
}

/* The weave: the case-study hero's artwork (\App\tao_cs_swirl('weave'), drawn by
   partials/cs/swirl.blade.php) with case-study.css's placement, repeated here
   because that stylesheet only loads on case-study pages. It sweeps in from the
   top right and off both edges; a non-scaling 9px stroke keeps the line even
   however wide the artwork is drawn. */
.b-header--heading-description-buttons > .td-cs__swirl {
  position: absolute;
  z-index: 0;
  display: block;
  overflow: visible;
  pointer-events: none;
  top: -6vw;
  right: -12vw;
  width: min(48vw, 700px);
}
.b-header--heading-description-buttons .td-cs__swirl-path {
  vector-effect: non-scaling-stroke;
  stroke-width: 9;
}
.b-header--heading-description-buttons .td-cs__swirl-path--green { stroke: var(--tdw-green); }
.b-header--heading-description-buttons .td-cs__swirl-path--teal  { stroke: var(--tdw-teal); }

/* Below 1500px the copy claims more of the width, so push the curve further off
   the edge (the case-study rule). */
@media (max-width: 1500px) {
  .b-header--heading-description-buttons > .td-cs__swirl { right: -22vw; width: min(58vw, 760px); }
}
/* Below 1024px the copy column fills the hero and there is no empty corner left,
   so the weave becomes texture behind the copy, as the case-study hero does on
   phones. Bold where there's room, quiet where there isn't. */
@media (max-width: 1023px) {
  .b-header--heading-description-buttons > .td-cs__swirl { top: 2vw; right: -30vw; width: 140vw; opacity: 0.2; }
}
@media (max-width: 760px) {
  .b-header--heading-description-buttons .td-cs__swirl-path { stroke-width: 6; }
}

/* ---------- Sections ---------- */

.b-image-repeater.tdw-section {
  padding-block: clamp(28px, 4vw, 48px);
  scroll-margin-top: 104px; /* clears the fixed nav when a jump link lands */
}

.tdw-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}
.tdw-section__head::after {
  content: "";
  flex: 1 1 40px;
  height: 1px;
  background: var(--tdw-hairline);
}

.tdw-section__title {
  margin: 0;
  font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--tdw-font);
  letter-spacing: -0.01em;
  color: var(--tdw-ink);
}

.tdw-section__count {
  flex: none;
  font: 600 0.75rem/1.2 var(--tdw-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tdw-ink-soft);
  white-space: nowrap;
}

/* ---------- Grid: 2 / 3 / 4 columns ----------
   Breakpoints chosen to hold tiles between roughly 160px and 255px at every
   width, so a logo never renders larger on a laptop than on a big desktop. */

.tdw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .tdw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 800px) {
  .tdw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .tdw-grid { gap: 28px; }
}
.tdw-grid__item { min-width: 0; }

.tdw-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  background: #FFFFFF;
  transition: transform 0.3s var(--tdw-ease), box-shadow 0.3s var(--tdw-ease);
}
/* A hairline edge, so a dark tile (Fleetcover) still reads as a tile on navy. */
.tdw-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.tdw-tile picture,
.tdw-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.tdw-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 3px var(--tdw-navy), 0 0 0 6px var(--tdw-green), 0 20px 40px -12px rgba(0, 0, 0, 0.55);
}
a.tdw-tile:focus-visible {
  outline: 3px solid var(--tdw-green);
  outline-offset: 3px;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html:has(.tdw-section) { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .tdw-tile,
  .tdw-chip,
  .tdw-chip__count { transition: none; }
  a.tdw-tile:hover { transform: none; }
}
