/* ==========================================================================
   Tri-Comp Solutions Pte Ltd
   Design system taken from the company's own social creatives: white ground,
   charcoal headlines with a single red word, a red quote-mark device, red
   highlight blocks, and a red-to-orange gradient band.
   Colours sampled directly from those artwork files.
   ========================================================================== */

:root {
  /* Brand — sampled from the social creatives */
  --red: #d92418;         /* primary. 5.0:1 on white, safe for text */
  --red-deep: #ce0403;    /* gradient start */
  --red-dark: #a81a11;    /* hover */
  --orange: #ff5f3e;      /* 3.0:1 — display and decoration ONLY, never body */
  --orange-soft: #fc8d61; /* gradient end */

  /* Ink */
  --ink: #2e312f;         /* headline charcoal, 13.2:1 on white */
  --ink-soft: #565857;    /* body */
  --ink-faint: #8a8d8c;

  /* Surfaces */
  --white: #fff;
  --wash: #f6f6f7;
  --grey: #dcdbdc;        /* the creatives' edge tint — borders and rules */

  /* Type */
  --display: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
  --body: "Open Sans", system-ui, -apple-system, Segoe UI, sans-serif;

  /* Metrics */
  --shell: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --rhythm: clamp(58px, 8vw, 104px);
  --radius: 10px;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
h1, h2, h3, h4 {
  margin: 0; color: var(--ink);
  font-family: var(--display); font-weight: 700; line-height: 1.15;
  letter-spacing: -0.015em;
}
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--red); color: #fff; padding: 11px 18px; border-radius: 6px;
  font: 700 14px/1 var(--body); text-decoration: none; transition: top .18s;
}
.skip:focus { top: 12px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- type -- */
.h1 { font-size: clamp(2.15rem, 5.4vw, 3.9rem); }
.h2 { font-size: clamp(1.75rem, 3.7vw, 2.75rem); }
.h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }

/* The single red word — the headline device from every social post. */
.hl { color: var(--red); }

/* White text on a solid red block, as on the "IT SYSTEM" post. */
.mark {
  background: var(--red); color: #fff;
  padding: 0.06em 0.32em; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* The red opening quote mark that leads every creative. */
.qm {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 5rem); line-height: 0.62;
  color: var(--red); margin-bottom: 0.22em;
}
.qm::before { content: "\201C"; }

.lede { font-size: clamp(1.04rem, 1.4vw, 1.2rem); color: var(--ink-soft); }
.eyebrow {
  font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}

/* ------------------------------------------------------------- header -- */
.head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--grey);
}
.head-in { display: flex; align-items: center; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 10px 15px; border-radius: 6px;
  color: var(--ink); text-decoration: none;
  font: 600 15px/1 var(--body);
}
.nav a:hover { background: var(--wash); color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-line { border-color: var(--grey); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--red); color: var(--red); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #fff; color: var(--red-deep); transform: translateY(-1px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--grey);
  background: #fff; border-radius: 8px; cursor: pointer;
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 19px; height: 2px; background: var(--ink); content: ""; position: relative;
  border-radius: 2px;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .head-cta { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--grey);
    padding: 12px var(--gut) 22px; box-shadow: 0 20px 36px rgba(46, 49, 47, .1);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 14px 4px; font-size: 16.5px; }
  .nav .nav-cta a {
    margin-top: 12px; background: var(--red); color: #fff;
    text-align: center; border-radius: 999px; padding: 15px 20px;
  }
  .nav .nav-cta a:hover { background: var(--red-dark); color: #fff; }
}
.nav > li.nav-cta { display: none; }
@media (max-width: 900px) { .nav > li.nav-cta { display: block; } }

/* ------------------------------------------------------------ sections -- */
.section { padding-block: var(--rhythm); }
.section-sm { padding-block: clamp(40px, 5.5vw, 68px); }
.bg-wash { background: var(--wash); }

/* The soft white-to-grey wash the creatives sit on. */
.bg-soft {
  background:
    radial-gradient(760px 420px at 88% 4%, rgba(220, 219, 220, .55), transparent 62%),
    radial-gradient(620px 380px at 2% 96%, rgba(220, 219, 220, .5), transparent 60%),
    var(--white);
}

.head-block { max-width: 62ch; margin-bottom: clamp(30px, 4vw, 48px); }
.head-block.center { margin-inline: auto; text-align: center; }
.head-block p { margin: 16px 0 0; }

/* --------------------------------------------------------------- hero -- */
.hero { padding-block: clamp(52px, 8vw, 104px); }
.hero-in { max-width: 26ch; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 22px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-grid .hero-in { max-width: none; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Page banner for inner pages — same wash, smaller. */
.banner { padding-block: clamp(40px, 5.5vw, 72px); }
.banner h1 { max-width: 18ch; }
.banner .lede { margin-top: 18px; max-width: 58ch; }
.crumb { font: 600 13px/1 var(--body); color: var(--ink-faint); margin-bottom: 16px; }
.crumb a { color: var(--ink-faint); text-decoration: none; }
.crumb a:hover { color: var(--red); }

/* --------------------------------------------------------------- grid -- */
.grid { display: grid; gap: 22px; }
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 60px); align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- cards -- */
.card {
  background: #fff; border: 1px solid var(--grey); border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: var(--red); box-shadow: 0 16px 36px rgba(46, 49, 47, .09); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: 15.8px; }

.ico {
  width: 52px; height: 52px; margin-bottom: 20px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(217, 36, 24, .08); color: var(--red);
}
.ico svg { width: 25px; height: 25px; }

ul.tick li { position: relative; padding-left: 26px; margin-bottom: 9px; font-size: 15.6px; }
ul.tick li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 14px; height: 8px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}

/* -------------------------------------------------------------- stats -- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1; color: var(--red);
}
.stat span { display: block; margin-top: 10px; font-size: 14.6px; color: var(--ink-soft); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------- red gradient band -- */
/* Straight from the VoIP post: red-to-orange, white pill button. */
.band {
  background: linear-gradient(100deg, var(--red-deep) 0%, var(--red) 42%, var(--orange-soft) 100%);
  color: #fff; padding-block: clamp(48px, 6.5vw, 80px);
}
.band h2 { color: #fff; max-width: 20ch; }
.band p { color: rgba(255, 255, 255, .92); margin: 14px 0 0; max-width: 54ch; }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn-line { border-color: rgba(255, 255, 255, .55); color: #fff; }
.band .btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }

/* ------------------------------------------------------------ marquee -- */
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--wash), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--wash), transparent); }
.marquee-track { display: flex; align-items: center; gap: 54px; width: max-content; animation: slide 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 30px; width: auto; opacity: .58; filter: grayscale(1); transition: opacity .2s, filter .2s; }
.marquee img:hover { opacity: 1; filter: none; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* -------------------------------------------------------------- logos -- */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.logo-cell {
  background: #fff; border: 1px solid var(--grey); border-radius: var(--radius);
  min-height: 106px; padding: 18px; display: grid; place-items: center;
  transition: border-color .18s;
}
.logo-cell:hover { border-color: var(--red); }
.logo-cell img { max-height: 44px; width: auto; object-fit: contain; }

.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.client-cell {
  background: #fff; border: 1px solid var(--grey); border-radius: var(--radius);
  min-height: 92px; padding: 14px 18px; display: grid; place-items: center;
}
.client-cell img { max-height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .2s, opacity .2s; }
.client-cell:hover img { filter: none; opacity: 1; }

/* --------------------------------------------------------------- team -- */
.person img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top center;
  border-radius: var(--radius); background: var(--wash); border: 1px solid var(--grey);
}
.person h3 { margin-top: 16px; font-size: 1.12rem; }
.person span { display: block; margin-top: 4px; font-size: 14.4px; color: var(--red); font-weight: 600; }

/* -------------------------------------------------------------- quote -- */
.quote { background: var(--wash); border-radius: var(--radius); padding: clamp(28px, 4vw, 46px); }
.quote blockquote {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.12rem, 2vw, 1.55rem); line-height: 1.45; color: var(--ink);
}
.quote figcaption { margin-top: 20px; display: flex; align-items: center; gap: 14px; font-size: 15px; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { color: var(--ink); display: block; }
.quote figcaption span { color: var(--ink-faint); font-size: 14px; }

/* --------------------------------------------------------------- news -- */
.post { display: block; text-decoration: none; color: inherit; border-top: 1px solid var(--grey); padding-block: 24px; }
.post:hover h3 { color: var(--red); }
.post .date { font: 600 13px/1 var(--body); color: var(--ink-faint); margin-bottom: 9px; }
.post h3 { font-size: 1.12rem; transition: color .16s; }

/* -------------------------------------------------------------- table -- */
.table-wrap { overflow-x: auto; border: 1px solid var(--grey); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.4px; }
.tbl th, .tbl td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--grey); }
.tbl thead th { background: var(--wash); font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 14.5px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* --------------------------------------------------------------- form -- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font: 600 14px/1 var(--body); color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--grey); border-radius: 8px;
  font: 400 16px/1.5 var(--body); color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.note { font-size: 13.8px; color: var(--ink-faint); margin: 0; }

/* -------------------------------------------------------------- video -- */
.video-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--grey); background: #111; }
.video-frame video { width: 100%; display: block; }

/* --------------------------------------------------------------- foot -- */
/* The red contact strip mirrors the footer line on every social creative. */
.contact-strip { background: var(--red); color: #fff; padding-block: 20px; }
.contact-strip-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 44px; text-align: center; }
.contact-strip a, .contact-strip span { color: #fff; text-decoration: none; font-weight: 600; font-size: 15.4px; }
.contact-strip a:hover { text-decoration: underline; }

.foot { background: var(--wash); padding-block: clamp(46px, 6vw, 70px) 0; font-size: 15.4px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px 30px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot img.foot-logo { height: 44px; width: auto; margin-bottom: 18px; }
.foot h4 { font-size: 15.5px; margin-bottom: 14px; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--red); }
.foot li { margin-bottom: 9px; }
.foot address { font-style: normal; line-height: 1.8; }
.foot-bottom {
  margin-top: clamp(34px, 5vw, 52px); border-top: 1px solid var(--grey);
  padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px;
  justify-content: space-between; font-size: 13.6px; color: var(--ink-faint);
}
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px;
  background: #fff; border: 1px solid var(--grey); color: var(--ink-soft);
  transition: background .16s, color .16s, border-color .16s;
}
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.social svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------- reveal -- */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* --------------------------------------------------------- utilities -- */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: clamp(32px, 4.5vw, 50px); }
.center { text-align: center; }
.stack > * + * { margin-top: 18px; }
