/* Hortechnet 2026 – homepage repositioning styles.
   Scoped to .ht* classes: nothing here changes the existing pages. */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ht-ink: #0e1a2b;
  --ht-ink-2: #16263d;
  --ht-red: #c3010f;
  --ht-red-dark: #a0000c;
  --ht-blue: #0a7fd6;
  --ht-paper: #ffffff;
  --ht-tint: #f4f6fa;
  --ht-line: #e1e6ee;
  --ht-muted: #56637a;
  --ht-radius: 14px;
  --ht-font: 'Geist', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

.ht, .ht * { box-sizing: border-box; }
.ht { font-family: var(--ht-font); color: var(--ht-ink); -webkit-font-smoothing: antialiased; }
/* :where() keeps these resets at zero specificity so every component rule below can override them */
:where(.ht) :where(h1, h2, h3, p, ul, figure, blockquote) { margin: 0; }
:where(.ht) :where(ul) { padding: 0; list-style: none; }
:where(.ht) :where(a) { text-decoration: none; }
:where(.ht) :where(img) { max-width: 100%; height: auto; display: block; }
/* the theme sets a font on bare headings; take it back inside our sections */
.ht h1, .ht h2, .ht h3, .ht p, .ht li, .ht a, .ht span, .ht figcaption, .ht blockquote { font-family: var(--ht-font); }

/* ---------- shared bits ---------- */
.ht-eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ht-red); display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.ht-eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; display: inline-block; }
.ht-eyebrow--light { color: #ff8b93; }

.ht-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 10px; font-weight: 600; font-size: 16px; line-height: 1.1;
  border: 1.5px solid transparent; transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  min-height: 50px;
}
.ht-btn:focus-visible, .ht-link:focus-visible, .ht-product:focus-visible, .ht-work__item:focus-visible, .ht-person:focus-visible { outline: 3px solid var(--ht-blue); outline-offset: 3px; }
.ht-btn--primary { background: var(--ht-red); color: #fff; }
.ht-btn--primary:hover { background: var(--ht-red-dark); color: #fff; transform: translateY(-1px); }
.ht-btn--ghost { background: transparent; color: var(--ht-ink); border-color: #b9c3d3; }
.ht-btn--ghost:hover { border-color: var(--ht-ink); color: var(--ht-ink); }
.ht-btn--light { background: #fff; color: var(--ht-ink); }
.ht-btn--light:hover { background: #e9eef6; color: var(--ht-ink); }
.ht-btn--white { background: #fff; color: var(--ht-red-dark); }
.ht-btn--white:hover { background: var(--ht-ink); color: #fff; }

.ht-link { color: var(--ht-ink); font-weight: 600; font-size: 15.5px; display: inline-flex; gap: 6px; align-items: center; border-bottom: 1.5px solid transparent; }
.ht-link:hover { color: var(--ht-red); }

.ht h1, .ht h2, .ht h3 { color: var(--ht-ink); }
.ht-platform h2, .ht-platform h3, .ht-cta h2 { color: #fff; }
.ht-section { padding: clamp(64px, 9vw, 120px) 0; background: var(--ht-paper); }
.ht-section--tint { background: var(--ht-tint); }

.ht-head { max-width: 760px; margin: 0 0 clamp(36px, 5vw, 60px); }
.ht-head h2, .ht-platform h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 650; }
.ht-sub { margin-top: 16px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6; color: var(--ht-muted); max-width: 62ch; }
.ht-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.ht-hero {
  position: relative; overflow: hidden; background: var(--ht-tint);
  padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 8vw, 104px);
}
.ht-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--ht-line) 1px, transparent 1px), linear-gradient(90deg, var(--ht-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 0%, transparent 72%);
  opacity: .8; pointer-events: none;
}
.ht-hero .container { position: relative; }
.ht-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ht-hero h1 { font-size: clamp(2.35rem, 5.2vw, 4.3rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 650; max-width: 16ch; }
.ht-lead { margin-top: 26px; font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.6; color: var(--ht-muted); max-width: 54ch; }
.ht-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.ht-tagline { margin-top: 40px; font-size: 14px; color: var(--ht-blue); font-weight: 600; letter-spacing: .02em; }

/* hero systems diagram */
.ht-map { width: 100%; height: auto; display: block; overflow: visible; }
.ht-map__ring { fill: none; stroke: #c9d3e2; stroke-width: 1.2; stroke-dasharray: 3 7; }
.ht-map__ring--outer { stroke: #dbe2ee; }
.ht-map__link { fill: none; stroke: #b8c4d8; stroke-width: 1.6; }
.ht-map__flow { fill: none; stroke: var(--ht-red); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 6 60; animation: ht-flow 3.6s linear infinite; }
.ht-map__hub circle { fill: var(--ht-ink); }
.ht-map__hub-t { fill: #fff; font: 600 16px var(--ht-font); }
.ht-map__node rect:first-child { fill: #fff; stroke: var(--ht-line); stroke-width: 1.5; filter: drop-shadow(0 6px 14px rgba(14, 26, 43, .08)); }
.ht-map__node--red .bar { fill: var(--ht-red); }
.ht-map__node--blue .bar { fill: var(--ht-blue); }
.ht-map__t { font: 650 16.5px var(--ht-font); fill: var(--ht-ink); }
.ht-map__c { font: 500 12.5px var(--ht-font); fill: var(--ht-muted); }
.ht-map__node { animation: ht-pop .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes ht-flow { to { stroke-dashoffset: -132; } }
@keyframes ht-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- pillars ---------- */
.ht-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ht-line); }
.ht-pillar { padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 44px) clamp(28px, 4vw, 52px) 0; border-bottom: 1px solid var(--ht-line); }
.ht-pillar:nth-child(odd) { border-right: 1px solid var(--ht-line); }
.ht-pillar:nth-child(even) { padding-left: clamp(20px, 3vw, 44px); padding-right: 0; }
.ht-pillar__icon { color: var(--ht-red); margin-bottom: 22px; }
.ht-pillar h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.02em; font-weight: 650; }
.ht-pillar p { margin-top: 12px; color: var(--ht-muted); font-size: 1.06rem; line-height: 1.6; max-width: 46ch; }
.ht-pillar__items { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.ht-pillar__items li { font-size: 14px; font-weight: 500; color: var(--ht-ink-2); background: var(--ht-tint); border: 1px solid var(--ht-line); border-radius: 999px; padding: 6px 13px; }

/* ---------- platform ---------- */
.ht-platform { background: var(--ht-ink); color: #fff; padding: clamp(64px, 9vw, 124px) 0; position: relative; overflow: hidden; }
.ht-platform::before { content: ''; position: absolute; width: 780px; height: 780px; right: -260px; top: -300px; background: radial-gradient(closest-side, rgba(10, 127, 214, .28), transparent); pointer-events: none; }
.ht-platform .container { position: relative; }
.ht-platform__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ht-platform__grid--single { grid-template-columns: minmax(0, 760px); }
.ht-platform h2 { color: #fff; }
.ht-platform .ht-sub { color: #b7c3d6; }
.ht-caps { margin: 30px 0 38px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.ht-caps li { position: relative; padding-left: 26px; font-size: 15.5px; color: #e6ecf5; }
.ht-caps li::before { content: ''; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; border-radius: 50%; background: var(--ht-red); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .0); }
.ht-caps li::after { content: ''; position: absolute; left: 4.5px; top: calc(.32em + 3.5px); width: 5px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg); }
.ht-platform__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ht-shot { background: #0b1422; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 48px rgba(0, 0, 0, .35); }
.ht-shot--0 { grid-column: 1 / -1; }
.ht-shot__bar { display: flex; gap: 6px; padding: 10px 12px; background: #131f33; }
.ht-shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4a66; }
.ht-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ht-shot figcaption { padding: 10px 14px; font-size: 13px; color: #a9b8cf; background: #0f1a2d; }

/* ---------- products ---------- */
.ht-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ht-product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ht-line); border-radius: var(--ht-radius); overflow: hidden; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ht-product:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(14, 26, 43, .10); border-color: #cfd8e6; color: inherit; }
.ht-product__media, .ht-work__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eaf0f8, #dfe8f4); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ht-product__media img, .ht-work__media img { width: 100%; height: 100%; object-fit: cover; }
.ht-product__mono { font: 650 clamp(2rem, 4vw, 3rem) var(--ht-font); letter-spacing: -.02em; color: #8fa0bb; }
.ht-product__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ht-product__tag { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ht-blue); }
.ht-product h3 { font-size: 1.28rem; letter-spacing: -.015em; font-weight: 650; line-height: 1.25; }
.ht-product p { color: var(--ht-muted); font-size: 1rem; line-height: 1.55; flex: 1; }
.ht-product .ht-link { margin-top: 8px; }
.ht-product:hover .ht-link { color: var(--ht-red); }

/* ---------- work + insights ---------- */
.ht-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ht-work__item { display: block; color: inherit; }
.ht-work__media { border-radius: var(--ht-radius); margin-bottom: 18px; border: 1px solid var(--ht-line); transition: box-shadow .2s ease; }
.ht-work__item:hover .ht-work__media { box-shadow: 0 16px 36px rgba(14, 26, 43, .12); }
.ht-work__item h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; color: var(--ht-ink); }
.ht-work__item:hover h3 { color: var(--ht-red); }
.ht-work__meta { display: block; margin-top: 6px; font-size: 14px; color: var(--ht-muted); }

/* ---------- quotes ---------- */
.ht-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ht-quote { background: #fff; border: 1px solid var(--ht-line); border-radius: var(--ht-radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
/* the theme styles bare <blockquote> (italic, grey box, red bar, quote marks): neutralise inside our cards */
.ht-quote blockquote { margin: 0; padding: 0; border: 0; background: none; text-align: left; font-style: normal; box-shadow: none; position: static; }
.ht-quote blockquote::before, .ht-quote blockquote::after { content: none; display: none; }
.ht-quote blockquote p { padding: 0; font-size: 1.08rem; line-height: 1.65; color: var(--ht-ink-2); font-style: normal; font-weight: 400; text-align: left; margin: 0; }
.ht-quote figcaption strong { display: block; font-size: 15.5px; }
.ht-quote figcaption span { font-size: 14px; color: var(--ht-muted); }

/* ---------- team ---------- */
.ht-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.ht-person { display: block; color: inherit; }
.ht-person__photo { display: block; aspect-ratio: 1 / 1; border-radius: var(--ht-radius); overflow: hidden; background: var(--ht-tint); margin-bottom: 14px; }
.ht-person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ht-person:hover .ht-person__photo img { transform: scale(1.03); }
.ht-person__name { display: block; font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; }
.ht-person:hover .ht-person__name { color: var(--ht-red); }
.ht-person__role { display: block; font-size: 14px; color: var(--ht-muted); margin-top: 2px; }

/* ---------- call to action ---------- */
.ht-cta { background: var(--ht-red); color: #fff; padding: clamp(56px, 8vw, 96px) 0; }
.ht-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.ht-cta h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 650; max-width: 20ch; }
.ht-cta p { margin-top: 14px; font-size: 1.12rem; line-height: 1.55; color: rgba(255, 255, 255, .88); max-width: 52ch; }

/* ---------- motion (progressive; content is visible without it) ---------- */
.ht-js .ht-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.ht-js .ht-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ht-map__flow, .ht-map__node { animation: none; }
  .ht-js .ht-reveal { opacity: 1; transform: none; transition: none; }
  .ht-btn, .ht-product { transition: none; }
}

/* inner pages: an <h1> in the theme's page-title band, sized exactly like the <h2> it replaces */
.page-title-content h1 { margin: 0; font-size: 44px; }
@media only screen and (min-width: 992px) and (max-width: 1199px) { .page-title-content h1 { font-size: 40px; } }
@media only screen and (min-width: 768px) and (max-width: 991px) { .page-title-content h1 { font-size: 38px; } }
@media only screen and (max-width: 767px) { .page-title-content h1 { font-size: 28px; } }

/* ---------- responsive ---------- */
@media (max-width: 1099px) {
  .ht-products, .ht-work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ht-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .ht-hero { padding-top: 104px; }   /* clear the theme's fixed mobile nav bar */
  .ht-hero__grid, .ht-platform__grid { grid-template-columns: minmax(0, 1fr); }
  .ht-hero h1 { max-width: 18ch; }
  .ht-hero__visual { max-width: 560px; margin: 8px auto 0; width: 100%; }
  .ht-platform__shots { margin-top: 12px; }
}
@media (max-width: 767px) {
  .ht-pillars { grid-template-columns: minmax(0, 1fr); }
  .ht-pillar, .ht-pillar:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0 !important; }
  .ht-quotes { grid-template-columns: minmax(0, 1fr); }
  .ht-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .ht-caps { grid-template-columns: minmax(0, 1fr); }
  .ht-actions .ht-btn, .ht-cta .ht-btn { width: 100%; }
}
@media (max-width: 599px) {
  .ht-products, .ht-work { grid-template-columns: minmax(0, 1fr); }
  .ht-platform__shots { grid-template-columns: minmax(0, 1fr); }
  .ht-shot--0 { grid-column: auto; }
  /* the diagram scales down with the screen: enlarge its labels (in SVG units) so they stay readable */
  .ht-map__c { display: none; }
  .ht-map__t { font-size: 22px; }
  .ht-map__hub-t { font-size: 21px; }
}
