/* =====================================================================
   TARC — homepage Elementor widgets
   Scoped under .tarc-hw ; classes prefixed .hw- to avoid collisions.
   Mirrors the site design system (brand orange via --bs-clr-pr-1,
   Space Grotesk + Albert Sans). Each widget is a placeable block.
===================================================================== */

.tarc-hw {
  --hw-brand: var(--bs-clr-pr-1, #f16319);
  --hw-brand-2: #d34e0c;
  --hw-brand-ink: #ffffff;
  --hw-ink: #14161a;
  --hw-ink-2: #5c616a;
  --hw-paper: #ffffff;
  --hw-paper-2: #f5f2ec;
  --hw-card: #ffffff;
  --hw-line: #e4ded4;
  --hw-line-2: #efeae1;
  --hw-ground: #0c0d0e;
  --hw-ground-2: #16181b;
  --hw-ground-ink: #f2f0ea;
  --hw-ground-ink-2: #9aa0a6;
  --hw-ground-line: #2a2d33;
  --hw-shadow: 0 1px 2px rgba(12,13,14,.05), 0 12px 30px -18px rgba(12,13,14,.22);
  --hw-shadow-lg: 0 24px 60px -30px rgba(12,13,14,.5);
  --hw-radius: 6px;
  --hw-wrap: 1200px;
  --hw-gutter: clamp(20px, 5vw, 56px);
  --hw-font-display: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --hw-font-body: "Albert Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;

  font-family: var(--hw-font-body);
  color: var(--hw-ink);
  line-height: 1.6;
}
.tarc-hw *, .tarc-hw *::before, .tarc-hw *::after { box-sizing: border-box; }
.tarc-hw img { max-width: 100%; height: auto; display: block; }
.tarc-hw a { color: inherit; text-decoration: none; }

.tarc-hw .hw-inner { max-width: var(--hw-wrap); margin-inline: auto; padding-inline: var(--hw-gutter); }

/* ---- icon rendering (works for the theme's stroke SVGs, Elementor inline
   Font Awesome SVGs and FA webfont <i> alike) ---- */
.tarc-hw i { font-style: normal; line-height: 1; }
.tarc-hw .e-font-icon-svg { fill: currentColor; width: 1em; height: 1em; }

/* ---- shared type devices ---- */
.tarc-hw .hw-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--hw-font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--hw-brand); margin: 0 0 16px;
}
.tarc-hw .hw-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }
.tarc-hw .hw-eyebrow.is-dark { color: #ff8a4c; }
.tarc-hw .hw-h2 {
  font-family: var(--hw-font-display); font-weight: 600; line-height: 1.1;
  letter-spacing: -.02em; text-wrap: balance; margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px); color: var(--hw-ink);
}
.tarc-hw .hw-lead { font-size: clamp(16px, 2vw, 18px); color: var(--hw-ink-2); margin: 0; max-width: 64ch; }
.tarc-hw .hw-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 52px); }
.tarc-hw .hw-head.is-center { margin-inline: auto; text-align: center; }
.tarc-hw .hw-head.is-center .hw-eyebrow::before { display: none; }
.tarc-hw .hw-head.is-center .hw-lead { margin-inline: auto; }

/* ---- buttons ---- */
.tarc-hw .hw-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--hw-font-display); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.tarc-hw .hw-btn--brand { background: var(--hw-brand); color: var(--hw-brand-ink); }
.tarc-hw .hw-btn--brand:hover { background: var(--hw-brand-2); color: #fff; }
.tarc-hw .hw-btn--dark { background: var(--hw-ground); color: #fff; }
.tarc-hw .hw-btn--dark:hover { background: #000; color: #fff; }
.tarc-hw .hw-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.tarc-hw .hw-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.tarc-hw .hw-arw { transition: transform .2s ease; }
.tarc-hw .hw-btn:hover .hw-arw, .tarc-hw a:hover > .hw-arw { transform: translateX(4px); }

/* ---- grids ---- */
.tarc-hw .hw-grid { display: grid; grid-template-columns: repeat(var(--hw-cols, 3), 1fr); gap: clamp(18px, 2.4vw, 26px); }
.tarc-hw .hw-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--hw-line); border-radius: var(--hw-radius); color: var(--hw-ink-2); text-align: center; }
.tarc-hw .hw-more { margin-top: clamp(30px, 4vw, 44px); text-align: center; }

/* ===================== HERO (4 selectable styles) ===================== */
.tarc-hw.hw-hero { position: relative; overflow: hidden; background: var(--hw-ground); color: var(--hw-ground-ink); }
.tarc-hw.hw-hero .hw-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
/* background video fills the bg layer; the wrapper's image shows as poster/fallback */
.tarc-hw.hw-hero .hw-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  /* "Play on mobile" off → hide the video, the fallback image underneath shows */
  .tarc-hw.hw-hero .hw-hero-bg.no-mobile-video .hw-hero-video { display: none; }
}
.tarc-hw.hw-hero .hw-hero-inner { position: relative; z-index: 2; margin-inline: auto; }
.tarc-hw.hw-hero .hw-hero-title {
  font-family: var(--hw-font-display); font-weight: 700; line-height: 1.06; letter-spacing: -.02em;
  font-size: clamp(38px, 6vw, 68px); color: #fff; margin: 0; max-width: 18ch; text-wrap: balance;
}
.tarc-hw.hw-hero .hw-hero-lead { color: var(--hw-ground-ink-2); max-width: 60ch; margin: 20px 0 0; font-size: clamp(17px, 2vw, 20px); }
.tarc-hw.hw-hero .hw-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---- Style: overlay (H5) ---- */
.tarc-hw.hw-hero.is-overlay { padding: clamp(64px, 10vw, 128px) var(--hw-gutter); }
.tarc-hw.hw-hero.is-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,14,.72), rgba(12,13,14,.86)); z-index: 1; }
.tarc-hw.hw-hero.is-overlay .hw-hero-chips { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 40px 0 0; padding: 0; list-style: none; }
.tarc-hw.hw-hero .hw-chip { display: inline-flex; align-items: center; gap: 10px; font-family: var(--hw-font-display); font-weight: 500; font-size: 14px; color: var(--hw-ground-ink); }
.tarc-hw.hw-hero .hw-chip-ic { display: inline-flex; color: var(--hw-brand); font-size: 16px; }
.tarc-hw.hw-hero .hw-chip-ic svg { width: 1em; height: 1em; }
.tarc-hw.hw-hero .hw-chip-ic i { font-size: 1em; }

/* ---- Style: centered (H2) ---- */
.tarc-hw.hw-hero.is-centered { display: flex; flex-direction: column; min-height: clamp(460px, 64vh, 600px); }
.tarc-hw.hw-hero.is-centered::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0, rgba(12,13,14,.55), rgba(12,13,14,.9)); z-index: 1; }
.tarc-hw.hw-hero.is-centered .hw-hero-centerwrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(48px, 7vw, 90px) var(--hw-gutter) clamp(30px, 4vw, 44px); }
.tarc-hw.hw-hero.is-centered .hw-eyebrow { justify-content: center; }
.tarc-hw.hw-hero.is-centered .hw-hero-title { max-width: 18ch; }
.tarc-hw.hw-hero.is-centered .hw-hero-lead { margin-inline: auto; color: rgba(255,255,255,.82); }
.tarc-hw.hw-hero.is-centered .hw-hero-actions { justify-content: center; }
.tarc-hw.hw-hero.is-centered .hw-hero-rail { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.16); }
.tarc-hw.hw-hero.is-centered .hw-hero-rail .cell { padding: 22px 16px; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.tarc-hw.hw-hero.is-centered .hw-hero-rail .cell:first-child { border-left: none; }
.tarc-hw.hw-hero.is-centered .hw-hero-rail .n { font-family: var(--hw-font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-size: clamp(24px, 3vw, 34px); color: #fff; }
.tarc-hw.hw-hero.is-centered .hw-hero-rail .n span { color: var(--hw-brand); }
.tarc-hw.hw-hero.is-centered .hw-hero-rail .k { font-size: 12.5px; color: var(--hw-ground-ink-2); margin-top: 6px; }

/* ---- Style: diagonal (H4) ---- */
.tarc-hw.hw-hero.is-diagonal { min-height: clamp(460px, 64vh, 600px); display: flex; align-items: stretch; }
.tarc-hw.hw-hero.is-diagonal .hw-hero-panel { position: relative; z-index: 2; width: min(60%, 720px); background: var(--hw-ground); display: flex; flex-direction: column; justify-content: center; clip-path: polygon(0 0, 100% 0, calc(100% - 90px) 100%, 0 100%); }
.tarc-hw.hw-hero.is-diagonal .hw-hero-panel::before { content: ""; position: absolute; top: 0; bottom: 0; right: 84px; width: 4px; background: var(--hw-brand); transform: skewX(-11deg); }
.tarc-hw.hw-hero.is-diagonal .hw-hero-panel-in { padding: clamp(36px, 5vw, 72px); padding-right: clamp(60px, 8vw, 120px); }
.tarc-hw.hw-hero.is-diagonal .hw-hero-title { max-width: 14ch; }
.tarc-hw.hw-hero.is-diagonal .hw-hero-lead { color: rgba(255,255,255,.8); max-width: 42ch; }

/* ---- Style: bento (background photo + glass tiles) ---- */
.tarc-hw.hw-hero.is-bento { min-height: clamp(520px, 74vh, 660px); display: flex; align-items: center; }
.tarc-hw.hw-hero.is-bento::after { content: ""; position: absolute; inset: 0; z-index: 1; background:
    linear-gradient(100deg, rgba(12,13,14,.92) 0%, rgba(12,13,14,.66) 42%, rgba(12,13,14,.34) 72%, rgba(12,13,14,.5) 100%),
    linear-gradient(180deg, rgba(12,13,14,.3), transparent 30%, rgba(12,13,14,.5)); }
.tarc-hw.hw-hero.is-bento .hw-hero-bento { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(26px, 3.5vw, 52px); align-items: center; width: 100%; padding: clamp(40px, 5vw, 76px) var(--hw-gutter); }
.tarc-hw.hw-hero.is-bento .hw-hero-title { max-width: 16ch; }
.tarc-hw.hw-hero.is-bento .hw-hero-lead { color: rgba(255,255,255,.82); max-width: 50ch; }
.tarc-hw.hw-hero .hw-bento-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
/* NB: entrance uses animate.css fadeInUp (fill-mode both), which pins transform
   after it runs — so hover feedback here is colour-based, not a transform-lift. */
.tarc-hw.hw-hero .hw-bento-tile { border-radius: 16px; padding: 20px; display: flex; flex-direction: column; justify-content: center; min-height: 104px; transition: background .25s ease, border-color .25s ease; }
.tarc-hw.hw-hero .hw-bento-tile.is-glass { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tarc-hw.hw-hero .hw-bento-tile.is-glass:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }
.tarc-hw.hw-hero .hw-bento-tile.is-brand { background: var(--hw-brand); border: 1px solid var(--hw-brand); box-shadow: 0 18px 40px -20px rgba(241,99,25,.7); }
.tarc-hw.hw-hero .hw-bento-tile.is-brand:hover { background: var(--hw-brand-2); border-color: var(--hw-brand-2); }
.tarc-hw.hw-hero .hw-bento-tile .n { font-family: var(--hw-font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-size: clamp(28px, 3vw, 40px); color: #fff; }
.tarc-hw.hw-hero .hw-bento-tile .n span { opacity: .85; }
.tarc-hw.hw-hero .hw-bento-tile .k { font-size: 12.5px; margin-top: 7px; color: rgba(255,255,255,.82); font-family: var(--hw-font-display); font-weight: 500; }
.tarc-hw.hw-hero .hw-bento-tile.is-brand .k { color: rgba(255,255,255,.92); }
.tarc-hw.hw-hero .hw-bento-cert { grid-column: 1 / 3; min-height: 0; padding: 16px 20px; gap: 10px; }
.tarc-hw.hw-hero .hw-bento-cert-lb { font-family: var(--hw-font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hw-ground-ink-2); }
.tarc-hw.hw-hero .hw-bento-cert-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tarc-hw.hw-hero .hw-bento-pil { font-family: var(--hw-font-display); font-weight: 600; font-size: 11.5px; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 100px; padding: 5px 11px; }

@media (max-width: 860px) {
  .tarc-hw.hw-hero.is-centered .hw-hero-rail { grid-template-columns: repeat(2, 1fr); }
  .tarc-hw.hw-hero.is-centered .hw-hero-rail .cell:nth-child(3) { border-left: none; }
  .tarc-hw.hw-hero.is-diagonal { background: var(--hw-ground); }
  .tarc-hw.hw-hero.is-diagonal .hw-hero-panel { width: 100%; clip-path: none; }
  .tarc-hw.hw-hero.is-diagonal .hw-hero-panel::before { display: none; }
  .tarc-hw.hw-hero.is-diagonal .hw-hero-panel-in { padding-right: clamp(36px, 5vw, 72px); }
  .tarc-hw.hw-hero.is-bento .hw-hero-bento { grid-template-columns: 1fr; }
  .tarc-hw.hw-hero.is-bento::after { background: linear-gradient(180deg, rgba(12,13,14,.55), rgba(12,13,14,.82)); }
}

/* ===================== TRUST BAR ===================== */
.tarc-hw.hw-trust { background: var(--hw-ground); color: var(--hw-ground-ink); padding: clamp(40px, 6vw, 64px) var(--hw-gutter); }
.tarc-hw.hw-trust .hw-trust-inner { max-width: var(--hw-wrap); margin-inline: auto; }
.tarc-hw.hw-trust .hw-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 40px);
  padding-bottom: clamp(28px, 4vw, 40px);
}
/* when only one of the two sections is shown, drop the divider/spacing */
.tarc-hw.hw-trust .hw-stats-row.is-solo { padding-bottom: 0; }
.tarc-hw.hw-trust .hw-badges.is-solo { padding-top: 0; border-top: none; }
.tarc-hw .hw-stat { text-align: center; }
.tarc-hw .hw-stat-n { font-family: var(--hw-font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1; font-size: clamp(34px, 5vw, 52px); color: #fff; }
.tarc-hw .hw-stat-sfx { color: var(--hw-brand); }
.tarc-hw .hw-stat-l { margin-top: 10px; font-size: 14px; color: var(--hw-ground-ink-2); letter-spacing: .01em; }
.tarc-hw.hw-trust .hw-badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding-top: clamp(26px, 4vw, 36px); border-top: 1px solid var(--hw-ground-line);
}
.tarc-hw.hw-trust .hw-badges-lb {
  font-family: var(--hw-font-display); font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--hw-ground-ink-2);
}
.tarc-hw.hw-trust .hw-badges-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.tarc-hw.hw-trust .hw-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border: 1px solid var(--hw-ground-line); border-radius: 100px;
  font-family: var(--hw-font-display); font-weight: 600; font-size: 13px; color: #fff;
  background: rgba(255,255,255,.03);
}
.tarc-hw.hw-trust .hw-badge img { max-height: 34px; width: auto; }
.tarc-hw.hw-trust .hw-badge-ic { display: inline-flex; color: var(--hw-brand); font-size: 15px; }
.tarc-hw.hw-trust .hw-badge-ic svg { width: 1em; height: 1em; }
.tarc-hw.hw-trust .hw-badge-ic i { font-size: 1em; }

/* ===================== SERVICE CARDS ===================== */
.tarc-hw.hw-services { background: var(--hw-paper); padding-block: clamp(56px, 8vw, 100px); }

/* base card shell (shared by all three styles) */
.tarc-hw .hw-svc-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--hw-card); border: 1px solid var(--hw-line); border-radius: var(--hw-radius);
  box-shadow: var(--hw-shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tarc-hw a.hw-svc-card:hover { border-color: color-mix(in srgb, var(--hw-brand) 40%, var(--hw-line)); box-shadow: var(--hw-shadow-lg); transform: translateY(-4px); }

/* icon badge + text (shared) */
.tarc-hw .hw-svc-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  border-radius: 12px; background: color-mix(in srgb, var(--hw-brand) 12%, transparent);
  color: var(--hw-brand); margin-bottom: 20px; flex: none;
}
.tarc-hw .hw-svc-ic svg { width: 26px; height: 26px; }
.tarc-hw .hw-svc-ic i { font-size: 24px; }
.tarc-hw .hw-svc-title { font-family: var(--hw-font-display); font-weight: 600; font-size: 20px; margin: 0 0 10px; color: var(--hw-ink); }
.tarc-hw .hw-svc-desc { margin: 0 0 18px; color: var(--hw-ink-2); font-size: 15px; }
.tarc-hw .hw-svc-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--hw-font-display); font-weight: 600; font-size: 14px; color: var(--hw-brand);
}

/* ---- Style 1: Icon card ---- */
.tarc-hw .hw-svc-card.is-icon { align-items: flex-start; padding: clamp(24px, 3vw, 34px); }

/* ---- Styles 2 & 4 share the photo + body shell (.has-photo) ---- */
.tarc-hw .hw-svc-card.has-photo .hw-svc-photo { position: relative; aspect-ratio: 16 / 10; background: var(--hw-line-2); overflow: hidden; }
.tarc-hw .hw-svc-card.has-photo .hw-svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tarc-hw a.hw-svc-card.has-photo:hover .hw-svc-photo img { transform: scale(1.05); }
.tarc-hw .hw-svc-card.has-photo .hw-svc-photo-ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--hw-brand); }
.tarc-hw .hw-svc-card.has-photo .hw-svc-photo-ic svg { width: 54px; height: 54px; }
.tarc-hw .hw-svc-card.has-photo .hw-svc-photo-ic i { font-size: 48px; }
.tarc-hw .hw-svc-card.has-photo .hw-svc-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(22px, 2.6vw, 30px); }

/* ---- Style 2: Image card (small inline icon) ---- */
.tarc-hw .hw-svc-card.is-image .hw-svc-ic { width: 46px; height: 46px; margin-bottom: 16px; }
.tarc-hw .hw-svc-card.is-image .hw-svc-ic svg { width: 22px; height: 22px; }

/* ---- Style 4: Image + icon badge (S4) ---- */
.tarc-hw .hw-svc-card.is-badge .hw-svc-body { position: relative; padding-top: 42px; }
.tarc-hw .hw-svc-card.is-badge .hw-svc-ic {
  position: absolute; top: -27px; left: clamp(22px, 2.6vw, 30px); margin: 0;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--hw-brand); color: #fff; border: 3px solid var(--hw-card); box-shadow: var(--hw-shadow);
}
.tarc-hw .hw-svc-card.is-badge .hw-svc-ic svg { width: 26px; height: 26px; }

/* ---- Style 3: Image + text overlay ---- */
.tarc-hw .hw-svc-card.is-overlay { position: relative; min-height: 340px; justify-content: flex-end; border: none; color: #fff; }
.tarc-hw .hw-svc-card.is-overlay .hw-svc-bg { position: absolute; inset: 0; background: var(--hw-ground); background-size: cover; background-position: center; transition: transform .5s ease; }
.tarc-hw a.hw-svc-card.is-overlay:hover .hw-svc-bg { transform: scale(1.06); }
.tarc-hw .hw-svc-card.is-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,14,.1) 0%, rgba(12,13,14,.5) 45%, rgba(12,13,14,.9) 100%); }
.tarc-hw .hw-svc-card.is-overlay .hw-svc-ov-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 3vw, 34px); }
.tarc-hw .hw-svc-card.is-overlay .hw-svc-ic { background: rgba(255,255,255,.14); color: #fff; margin-bottom: 16px; }
.tarc-hw .hw-svc-card.is-overlay .hw-svc-title { color: #fff; }
.tarc-hw .hw-svc-card.is-overlay .hw-svc-desc { color: rgba(255,255,255,.82); }
.tarc-hw .hw-svc-card.is-overlay .hw-svc-cta { color: #fff; }

/* ===================== PROJECT CARDS ===================== */
.tarc-hw.hw-projects { background: var(--hw-paper-2); padding-block: clamp(56px, 8vw, 100px); }

/* base shell (shared by all four styles) */
.tarc-hw .hw-proj-card {
  display: flex; flex-direction: column; background: var(--hw-card);
  border: 1px solid var(--hw-line); border-radius: var(--hw-radius); overflow: hidden;
  box-shadow: var(--hw-shadow); transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.tarc-hw a.hw-proj-card:hover { box-shadow: var(--hw-shadow-lg); transform: translateY(-4px); }
.tarc-hw .hw-proj-title { font-family: var(--hw-font-display); font-weight: 600; font-size: 20px; margin: 0; color: var(--hw-ink); letter-spacing: -.01em; }
.tarc-hw .hw-proj-meta { font-size: 14px; color: var(--hw-ink-2); }
.tarc-hw .hw-proj-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--hw-brand); color: #fff; font-family: var(--hw-font-display); font-weight: 600;
  font-size: 12px; letter-spacing: .02em; padding: 6px 12px; border-radius: 2px;
}

/* ---- P1 · Classic image card (current) ---- */
.tarc-hw .hw-proj-card.is-classic .hw-proj-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hw-line-2); }
.tarc-hw .hw-proj-card.is-classic .hw-proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tarc-hw a.hw-proj-card.is-classic:hover .hw-proj-media img { transform: scale(1.05); }
.tarc-hw .hw-proj-card.is-classic .hw-proj-body { padding: clamp(20px, 2.4vw, 26px); }
.tarc-hw .hw-proj-card.is-classic .hw-proj-title { margin-bottom: 8px; }

/* ---- P2 & P3 · overlay shell ---- */
.tarc-hw .hw-proj-card.is-overlay, .tarc-hw .hw-proj-card.is-reveal {
  position: relative; min-height: 320px; justify-content: flex-end; color: #fff; border: none;
}
.tarc-hw .hw-proj-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tarc-hw a.hw-proj-card.is-overlay:hover .hw-proj-img, .tarc-hw a.hw-proj-card.is-reveal:hover .hw-proj-img { transform: scale(1.06); }
.tarc-hw .hw-proj-card.is-overlay::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,13,14,.05), rgba(12,13,14,.5) 55%, rgba(12,13,14,.92));
}
.tarc-hw .hw-proj-ov { position: relative; z-index: 2; padding: clamp(20px, 2.4vw, 26px); }
.tarc-hw .hw-proj-card.is-overlay .hw-proj-title, .tarc-hw .hw-proj-card.is-reveal .hw-proj-title { color: #fff; font-size: 22px; }
.tarc-hw .hw-proj-chip {
  display: inline-block; font-family: var(--hw-font-display); font-weight: 700; font-size: 11.5px;
  letter-spacing: .04em; text-transform: uppercase; color: #ffb488; margin-bottom: 10px;
}
.tarc-hw .hw-proj-card.is-overlay .hw-proj-meta { color: rgba(255,255,255,.82); display: block; margin-top: 6px; }

/* ---- P3 · overlay hover-reveal ---- */
.tarc-hw .hw-proj-card.is-reveal::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,13,14,0) 40%, rgba(12,13,14,.9)); transition: background .3s ease;
}
.tarc-hw a.hw-proj-card.is-reveal:hover::after { background: linear-gradient(180deg, rgba(12,13,14,.35), rgba(12,13,14,.92)); }
.tarc-hw .hw-proj-reveal { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease; }
.tarc-hw .hw-proj-card.is-reveal:hover .hw-proj-reveal, .tarc-hw .hw-proj-card.is-reveal:focus-within .hw-proj-reveal { max-height: 160px; opacity: 1; }
.tarc-hw .hw-proj-sum { margin: 10px 0 12px; font-size: 14px; color: rgba(255,255,255,.85); }
.tarc-hw .hw-proj-more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--hw-font-display); font-weight: 700; font-size: 13.5px; color: #fff; }

/* ---- P5 · framed / gallery ---- */
.tarc-hw .hw-proj-card.is-framed { background: var(--hw-card); padding: 12px; }
.tarc-hw .hw-proj-frame { border: 1px solid var(--hw-line); border-radius: 4px; overflow: hidden; }
.tarc-hw .hw-proj-card.is-framed .hw-proj-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hw-line-2); }
.tarc-hw .hw-proj-card.is-framed .hw-proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tarc-hw a.hw-proj-card.is-framed:hover .hw-proj-media img { transform: scale(1.04); }
.tarc-hw .hw-proj-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 6px 6px; }
.tarc-hw .hw-proj-card.is-framed .hw-proj-title { font-size: 18px; }
.tarc-hw .hw-proj-tag { font-family: var(--hw-font-display); font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--hw-brand); white-space: nowrap; }
.tarc-hw .hw-proj-year { padding: 0 6px 4px; font-size: 13px; color: var(--hw-ink-2); }

/* ===================== ACHIEVEMENT / STAT CARDS ===================== */
.tarc-hw.hw-achieve { background: var(--hw-paper); padding-block: clamp(56px, 8vw, 100px); }
.tarc-hw .hw-stat-card {
  text-align: center; background: var(--hw-card); border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius); padding: clamp(26px, 3vw, 38px) clamp(18px, 2vw, 26px);
  box-shadow: var(--hw-shadow); transition: border-color .2s ease, transform .2s ease;
}
.tarc-hw .hw-stat-card:hover { border-color: color-mix(in srgb, var(--hw-brand) 34%, var(--hw-line)); transform: translateY(-3px); }
.tarc-hw .hw-stat-card-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px;
  border-radius: 50%; background: color-mix(in srgb, var(--hw-brand) 12%, transparent);
  color: var(--hw-brand); font-size: 24px; margin-bottom: 18px;
}
.tarc-hw .hw-stat-card-ic svg { width: 26px; height: 26px; }
.tarc-hw .hw-stat-card-ic i { font-size: 24px; }
.tarc-hw .hw-stat-card-n { font-family: var(--hw-font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1; font-size: clamp(34px, 4.5vw, 50px); color: var(--hw-ink); }
.tarc-hw .hw-stat-card-n .hw-stat-sfx { color: var(--hw-brand); }
.tarc-hw .hw-stat-card-l { font-family: var(--hw-font-display); font-weight: 600; font-size: 16px; margin: 12px 0 8px; color: var(--hw-ink); }
.tarc-hw .hw-stat-card-d { margin: 0; font-size: 14px; color: var(--hw-ink-2); }

/* ===================== TESTIMONIALS CAROUSEL ===================== */
.tarc-hw.hw-testi { background: var(--hw-ground); color: var(--hw-ground-ink); padding-block: clamp(56px, 8vw, 100px); }
.tarc-hw.hw-testi .hw-h2 { color: #fff; }
.tarc-hw.hw-testi .hw-lead { color: var(--hw-ground-ink-2); }
.tarc-hw .hw-carousel { max-width: 860px; margin-inline: auto; }
.tarc-hw .hw-carousel-track { position: relative; overflow: hidden; }
.tarc-hw .hw-testi-slide {
  display: none; text-align: center; padding: 6px 4px;
  animation: hw-fade .5s ease;
}
.tarc-hw .hw-testi-slide.is-active { display: block; }
@keyframes hw-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tarc-hw .hw-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 20px; font-size: 20px; }
.tarc-hw .hw-star { color: var(--hw-ground-line); }
.tarc-hw .hw-star.is-on { color: var(--hw-brand); }
.tarc-hw .hw-testi-quote {
  font-family: var(--hw-font-display); font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4; color: #fff; margin: 0 auto; max-width: 42ch;
}
.tarc-hw .hw-testi-by { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; text-align: left; }
.tarc-hw .hw-testi-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--hw-brand); display: inline-flex; align-items: center; justify-content: center;
}
.tarc-hw .hw-testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tarc-hw .hw-testi-initial { font-family: var(--hw-font-display); font-weight: 700; font-size: 20px; color: #fff; }
.tarc-hw .hw-testi-meta { display: flex; flex-direction: column; }
.tarc-hw .hw-testi-name { font-family: var(--hw-font-display); font-weight: 600; font-size: 16px; color: #fff; }
.tarc-hw .hw-testi-role { font-size: 14px; color: var(--hw-ground-ink-2); }
.tarc-hw .hw-carousel-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; }
.tarc-hw .hw-carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hw-ground-line);
  background: transparent; color: #fff; font-size: 18px; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.tarc-hw .hw-carousel-btn:hover { background: var(--hw-brand); border-color: var(--hw-brand); }
.tarc-hw .hw-carousel-dots { display: inline-flex; gap: 8px; }
.tarc-hw .hw-dot { width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0; background: var(--hw-ground-line); cursor: pointer; transition: background .2s ease, width .2s ease; }
.tarc-hw .hw-dot.is-active { background: var(--hw-brand); width: 24px; border-radius: 100px; }

/* ===================== INSIGHTS / BLOG ===================== */
.tarc-hw.hw-insights { background: var(--hw-paper); padding-block: clamp(56px, 8vw, 100px); }
.tarc-hw .hw-blog-card {
  display: flex; flex-direction: column; background: var(--hw-card);
  border: 1px solid var(--hw-line); border-radius: var(--hw-radius); overflow: hidden;
  box-shadow: var(--hw-shadow); transition: box-shadow .25s ease, transform .25s ease;
}
.tarc-hw a.hw-blog-card:hover { box-shadow: var(--hw-shadow-lg); transform: translateY(-4px); }
.tarc-hw .hw-blog-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hw-line-2); }
.tarc-hw .hw-blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tarc-hw a.hw-blog-card:hover .hw-blog-media img { transform: scale(1.05); }
.tarc-hw .hw-blog-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2; background: rgba(12,13,14,.82); color: #fff;
  font-family: var(--hw-font-display); font-weight: 600; font-size: 12px; padding: 6px 12px; border-radius: 2px;
}
.tarc-hw .hw-blog-body { padding: clamp(20px, 2.4vw, 26px); display: flex; flex-direction: column; flex: 1; }
.tarc-hw .hw-blog-date { font-family: var(--hw-font-display); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hw-brand); }
.tarc-hw .hw-blog-title { font-family: var(--hw-font-display); font-weight: 600; font-size: 20px; margin: 10px 0 10px; color: var(--hw-ink); }
.tarc-hw .hw-blog-excerpt { margin: 0 0 18px; font-size: 15px; color: var(--hw-ink-2); }
.tarc-hw .hw-blog-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--hw-font-display); font-weight: 600; font-size: 14px; color: var(--hw-brand); }

/* =====================================================================
   THEME STYLE — Services page card (.sv-card), ported from services.css
   (design tokens remapped to the widget's --hw-* set).
===================================================================== */
.tarc-hw .sv-card { display: flex; flex-direction: column; background: var(--hw-card); border: 1px solid var(--hw-line); border-radius: 14px; overflow: hidden; box-shadow: var(--hw-shadow); color: inherit; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.tarc-hw .sv-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--hw-brand) 26%, var(--hw-line)); box-shadow: 0 24px 48px -24px rgba(12,13,14,.3); }
.tarc-hw .sv-card:focus-visible { outline: 2px solid var(--hw-brand); outline-offset: 3px; }
.tarc-hw .sv-photo { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--hw-paper-2); }
.tarc-hw .sv-photo .sv-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.tarc-hw .sv-card:hover .sv-photo .sv-img { transform: scale(1.05); }
.tarc-hw .sv-photo-ic { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--hw-brand) 45%, var(--hw-line)); background: linear-gradient(135deg, #efeae1, #f7f4ee); }
.tarc-hw .sv-photo-ic svg { width: 64px; height: 64px; }
.tarc-hw .sv-photo-ic i { font-size: 56px; }
.tarc-hw .sv-body { padding: 0 clamp(22px, 2.4vw, 28px) 26px; display: flex; flex-direction: column; flex: 1; }
.tarc-hw .sv-ic { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; color: var(--hw-brand); background: #fff; border: 1px solid color-mix(in srgb, var(--hw-brand) 18%, var(--hw-line)); box-shadow: var(--hw-shadow); margin: -30px 0 16px; position: relative; z-index: 2; }
.tarc-hw .sv-ic svg { width: 29px; height: 29px; }
.tarc-hw .sv-ic i { font-size: 26px; }
.tarc-hw .sv-body h3 { font-family: var(--hw-font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; margin: 0 0 9px; color: var(--hw-ink); }
.tarc-hw .sv-desc { font-size: 14px; color: var(--hw-ink-2); margin: 0 0 18px; }
.tarc-hw .sv-wyg { font-family: var(--hw-font-display); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hw-ink-2); margin: 0 0 12px; padding-top: 16px; border-top: 1px solid var(--hw-line-2); }
.tarc-hw .sv-out { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tarc-hw .sv-out li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--hw-ink); }
.tarc-hw .sv-tick { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: color-mix(in srgb, var(--hw-brand) 14%, #fff); color: var(--hw-brand); display: grid; place-items: center; }
.tarc-hw .sv-tick svg { width: 11px; height: 11px; }
.tarc-hw .sv-cardcta { margin-top: auto; display: inline-flex; align-items: center; gap: 9px; font-family: var(--hw-font-display); font-weight: 600; font-size: 14.5px; color: var(--hw-ink); }
.tarc-hw .sv-cardcta .tc-arw { color: var(--hw-brand); transition: transform .2s ease; }
.tarc-hw .sv-card:hover .sv-cardcta .tc-arw { transform: translateX(4px); }

/* =====================================================================
   THEME STYLE — Projects page card (.pj-card), ported from projects.css
===================================================================== */
.tarc-hw .pj-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hw-line); border-radius: 14px; overflow: hidden; box-shadow: var(--hw-shadow); color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tarc-hw .pj-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--hw-brand) 26%, var(--hw-line)); box-shadow: 0 26px 50px -26px rgba(12,13,14,.32); }
.tarc-hw .pj-photo { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--hw-line-2); }
.tarc-hw .pj-photo .pj-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tarc-hw .pj-card:hover .pj-photo .pj-img { transform: scale(1.05); }
.tarc-hw .pj-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,11,12,.5)); z-index: 1; }
.tarc-hw .pj-badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; font-family: var(--hw-font-display); font-weight: 600; font-size: 11.5px; padding: 6px 12px; border-radius: 100px; color: #fff; }
.tarc-hw .pj-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.tarc-hw .pj-badge.done { background: rgba(31,157,85,.92); }
.tarc-hw .pj-badge.live { background: rgba(241,99,25,.94); }
.tarc-hw .pj-loc { position: absolute; left: 14px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 12.5px; font-family: var(--hw-font-display); font-weight: 500; }
.tarc-hw .pj-loc svg { width: 13px; height: 13px; }
.tarc-hw .pj-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.tarc-hw .pj-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tarc-hw .pj-client { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tarc-hw .pj-logo { width: 32px; height: 32px; border-radius: 8px; background: var(--hw-paper-2); border: 1px solid var(--hw-line-2); overflow: hidden; flex: none; display: grid; place-items: center; }
.tarc-hw .pj-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.tarc-hw .pj-cn { font-size: 12.5px; color: var(--hw-ink-2); font-family: var(--hw-font-display); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tarc-hw .pj-year { font-family: var(--hw-font-display); font-weight: 600; font-size: 12.5px; color: var(--hw-ink-2); background: var(--hw-paper-2); border-radius: 6px; padding: 3px 9px; flex: none; }
.tarc-hw .pj-title { font-family: var(--hw-font-display); font-weight: 600; font-size: 18.5px; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 8px; color: var(--hw-ink); transition: color .2s; }
.tarc-hw .pj-card:hover .pj-title { color: var(--hw-brand); }
.tarc-hw .pj-sum { font-size: 13.5px; color: var(--hw-ink-2); margin: 0 0 16px; }
.tarc-hw .pj-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--hw-font-display); font-weight: 600; font-size: 14px; color: var(--hw-ink); }
.tarc-hw .pj-link .tc-arw { color: var(--hw-brand); transition: transform .2s ease; }
.tarc-hw .pj-card:hover .pj-link .tc-arw { transform: translateX(4px); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .tarc-hw .hw-grid { grid-template-columns: repeat(2, 1fr); }
  .tarc-hw.hw-trust .hw-stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
}
@media (max-width: 680px) {
  .tarc-hw .hw-grid { grid-template-columns: 1fr; }
  .tarc-hw.hw-trust .hw-stats-row { grid-template-columns: repeat(2, 1fr); }
  .tarc-hw.hw-hero .hw-hero-actions .hw-btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .tarc-hw *, .tarc-hw *::before, .tarc-hw *::after { transition: none !important; animation: none !important; }
  /* keep hover-revealed content readable when motion is reduced */
  .tarc-hw .hw-proj-reveal { max-height: none; opacity: 1; }
}
