/* ProblemFirst Technologies
   Document-grade light theme. Petrol + brass on cool paper.
   Display: Newsreader. Body: IBM Plex Sans. Data/labels: IBM Plex Mono. */

:root {
  --paper:      #F3F5F7;
  --surface:    #FFFFFF;
  --ink:        #0D1B24;
  --ink-soft:   #46586A;
  --muted:      #7A8896;
  --petrol:     #0F4C5C;
  --petrol-deep:#093843;
  --brass:      #8F6614;
  --line:       #D9E1E7;
  --line-soft:  #E9EEF2;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(13,27,36,0.04), 0 8px 24px -14px rgba(13,27,36,0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- Type ---------- */
h1, h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.45rem); }
h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600; font-size: 1.09rem;
  color: var(--ink); letter-spacing: -0.005em; line-height: 1.4;
}
h4 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
p { margin-bottom: 1.05em; }
p:last-child { margin-bottom: 0; }
a { color: var(--petrol); }

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow--petrol { color: var(--petrol); }
.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 56ch; }
.serif-lede { font-family: "Newsreader", Georgia, serif; font-size: 1.35rem; line-height: 1.55; color: var(--ink); }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .nav {
  max-width: var(--max); margin: 0 auto;
  padding: 15px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand__mark {
  font-family: "IBM Plex Mono", monospace; font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--surface); background: var(--petrol);
  padding: 5px 7px; border-radius: 2px;
  align-self: center;
}
.brand__name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.22rem; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em;
}
.brand__suffix { color: var(--muted); font-weight: 400; }

.nav__links { display: flex; gap: 2px; flex-wrap: wrap; }
.nav__links a {
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: 7px 13px; border-radius: 3px;
  transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--ink); background: var(--line-soft); }
.nav__links a[aria-current="page"] {
  color: var(--petrol);
  box-shadow: inset 0 -2px 0 var(--petrol);
  border-radius: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: inherit;
  font-size: 0.94rem; font-weight: 600; text-decoration: none;
  padding: 13px 26px; border-radius: 3px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
}
.btn--solid { background: var(--petrol); color: #fff; }
.btn--solid:hover { background: var(--petrol-deep); }
.btn--quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--quiet:hover { border-color: var(--petrol); color: var(--petrol); }
.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--onDark:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.link-arrow {
  font-weight: 600; font-size: 0.94rem; color: var(--petrol);
  text-decoration: none; border-bottom: 1px solid rgba(15,76,92,0.3);
  padding-bottom: 1px;
}
.link-arrow:hover { border-bottom-color: var(--petrol); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--white { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 60ch; margin-bottom: 46px; }
.section__head p { color: var(--ink-soft); }

.hero { padding: 84px 0 76px; }
.hero--sub { padding: 72px 0 56px; }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 24px; }
/* Text-only hero: the type carries it, so it gets more room and more air. */
.hero--stack { padding: 104px 0 92px; }
.hero--stack h1 { max-width: 20ch; }
.hero--stack .lede { font-size: 1.2rem; max-width: 64ch; margin-top: 28px; }

/* ---------- Register: the signature device ----------
   A form extract. Numbered lines because the subject is numbered lines. */
.register {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.register__head {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 16px; align-items: center;
  padding: 13px 22px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}
.register__row {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 16px; align-items: baseline;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}
.register__row:last-child { border-bottom: none; }
.register__row:hover { background: #FAFCFD; }
.register__no {
  font-family: "IBM Plex Mono", monospace; font-size: 0.85rem;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.register__name { color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.4; }
.register__name a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid rgba(15,76,92,0.32); padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.register__name a:hover { color: var(--petrol); border-bottom-color: var(--petrol); }
.register__note { color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin-top: 3px; }
.register__body { color: var(--ink-soft); font-size: 0.97rem; margin-top: 10px; max-width: 62ch; }

.stamp {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.63rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 2px; white-space: nowrap;
  border: 1px solid;
}
.stamp--live    { color: var(--petrol); background: rgba(15,76,92,0.07);  border-color: rgba(15,76,92,0.25); }
.stamp--build   { color: var(--brass);  background: rgba(143,102,20,0.08); border-color: rgba(143,102,20,0.28); }
.stamp--explore { color: var(--muted);  background: transparent;           border-color: var(--line); border-style: dashed; }

/* ---------- Ruled entries (services, capabilities) ---------- */
.entries { border-top: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: 190px 1fr;
  gap: 40px; padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.entry__label {
  font-family: "IBM Plex Sans", sans-serif; font-weight: 600;
  color: var(--ink); font-size: 1.05rem; line-height: 1.4;
}
.entry__kicker {
  font-family: "IBM Plex Mono", monospace; font-size: 0.66rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 7px;
}
.entry__body { color: var(--ink-soft); font-size: 1rem; max-width: 64ch; }
.entry__body ul { margin: 12px 0 0; padding-left: 18px; }
.entry__body li { margin-bottom: 5px; }

/* ---------- Columns ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px; align-items: start; }
.col h3 { margin-bottom: 10px; }
.col p { color: var(--ink-soft); font-size: 0.99rem; }
.col__rule { height: 2px; width: 34px; background: var(--petrol); margin-bottom: 18px; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; padding: 34px; box-shadow: var(--shadow);
}

/* ---------- Principle list ---------- */
.principles { list-style: none; }
.principles li {
  padding: 15px 0 15px 30px; border-bottom: 1px solid var(--line);
  position: relative; color: var(--ink-soft); font-size: 1rem;
}
.principles li:last-child { border-bottom: none; }
.principles li::before {
  content: "—"; position: absolute; left: 0; color: var(--petrol); font-weight: 600;
}

/* ---------- CTA band ---------- */
.band { background: var(--petrol-deep); padding: 76px 0; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.78); max-width: 52ch; margin-top: 14px; }

/* ---------- Contact ---------- */
.email-lead {
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  line-height: 1.25; letter-spacing: -0.015em;
  margin-bottom: 0;
}
.email-lead a {
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid rgba(15,76,92,0.25);
  padding-bottom: 2px; word-break: break-word;
}
.email-lead a:hover { color: var(--petrol); border-bottom-color: var(--petrol); }

.detail-list {
  border-top: 1px solid var(--line);
  margin: 30px 0 24px; padding-top: 24px;
}
.detail-list dt {
  font-family: "IBM Plex Mono", monospace; font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 4px;
}
.detail-list dd { margin: 0 0 18px; color: var(--ink); font-weight: 500; }
.detail-list dd:last-child { margin-bottom: 0; }
.detail-list dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.detail-list dd a:hover { color: var(--petrol); border-bottom-color: var(--petrol); }
.detail-list__address { font-weight: 400; color: var(--ink-soft); line-height: 1.6; }
.detail-list__address .entity-name { display: block; color: var(--ink); font-weight: 500; margin-bottom: 3px; }
.detail-list__address .uen { display: block; font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 5px; }

.footer-meta { display: block; padding: 3px 0; color: var(--muted); font-size: 0.87rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 58px 0 26px; font-size: 0.93rem;
}
.site-footer .wrap { display: grid; grid-template-columns: 1.7fr 0.8fr 1.1fr 1.1fr; gap: 40px; }
.site-footer h4 { margin-bottom: 14px; }
.site-footer p { color: var(--ink-soft); }
.site-footer a { color: var(--ink-soft); text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--petrol); }
.footer-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; max-width: 62ch; }
.footer-entity { display: block; color: var(--ink); font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }
.footer-bottom {
  max-width: var(--max); margin: 40px auto 0; padding: 20px 28px 0;
  border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Motion ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero h1 { max-width: 18ch; }
  .hero--stack { padding: 76px 0 68px; }
  .cols-3 { grid-template-columns: 1fr; gap: 34px; }
  .cols-2 { grid-template-columns: 1fr; gap: 40px; }
  .entry { grid-template-columns: 1fr; gap: 12px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 62px 0; }
  .hero { padding: 56px 0 50px; }
  .site-header .nav { justify-content: center; padding: 13px 20px; }
  .nav__links { width: 100%; justify-content: center; }
  .register__head { display: none; }
  /* Line number and status form a header row; the entry sits below, full width. */
  .register__row { grid-template-columns: 32px 1fr; gap: 10px 12px; padding: 18px; }
  .register__row > .register__no { grid-column: 1; grid-row: 1; }
  .register__row > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .register__row > .stamp { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 30px; }
  .btn { display: block; text-align: center; }
  .btn-row { flex-direction: column; }
  .band { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
