/* ==========================================================================
   Hixa Ventures Pte. Ltd. — hixaventures.com
   Direction: "Registered." The entity record is the hero.
   ========================================================================== */

:root {
  /* Palette ---------------------------------------------------------------- */
  --paper:      #e6e9ee;  /* cool security paper                              */
  --plate:      #131b2e;  /* deep ink — the nameplate field                   */
  --ink:        #0e1420;  /* near-black, cool                                 */
  --ink-soft:   #5a6478;  /* muted slate — labels, secondary                  */
  --signal:     #2440e8;  /* ultramarine — official ink. Used sparingly.      */

  --rule:       rgba(14, 20, 32, 0.14);
  --rule-firm:  rgba(14, 20, 32, 0.26);

  /* Type ------------------------------------------------------------------- */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Newsreader", Georgia, "Times New Roman", serif;
  --mono:    "Martian Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Rhythm ----------------------------------------------------------------- */
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --measure: 1180px;
  --band-gap: clamp(4.5rem, 11vw, 9rem);
}

/* Reset -------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.72;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--signal); color: #fff; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  background: var(--plate);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* Shared utilities ---------------------------------------------------------- */

.mono {
  font-family: var(--mono);
  font-size: 0.9em;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}

.link {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: color 0.18s ease, background-size 0.18s ease;
}
.link:hover { color: var(--signal); }

/* Masthead ------------------------------------------------------------------ */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand__name {
  font-family: var(--display);
  font-variation-settings: "wdth" 112, "wght" 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.masthead__nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.masthead__nav a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.masthead__nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--signal);
}

/* Hero — the plate ---------------------------------------------------------- */

.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.5rem) var(--gutter) 0;
}

.plate {
  position: relative;
  background: var(--plate);
  color: var(--paper);
  padding: clamp(2rem, 5.5vw, 4rem);
  border-radius: 4px;
  overflow: hidden;
}

/* Registration marks — corner brackets, literal and quiet. */
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(230, 233, 238, 0.22);
  pointer-events: none;
}
.plate::before {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}
.plate::after {
  right: 14px;
  bottom: 14px;
  border-left: 0;
  border-top: 0;
}

.plate__eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(230, 233, 238, 0.55);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.plate__name {
  font-family: var(--display);
  font-variation-settings: "wdth" 118, "wght" 800;
  font-size: clamp(2.5rem, 8.2vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.plate__suffix {
  display: block;
  font-variation-settings: "wdth" 118, "wght" 400;
  font-size: 0.42em;
  letter-spacing: 0.04em;
  color: rgba(230, 233, 238, 0.62);
  margin-top: 0.5em;
}

/* Entity record ------------------------------------------------------------- */

.record {
  --rec-label: rgba(230, 233, 238, 0.5);
  --rec-value: var(--paper);
  --rec-rule:  rgba(230, 233, 238, 0.16);
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

.record--light {
  --rec-label: var(--ink-soft);
  --rec-value: var(--ink);
  --rec-rule:  var(--rule);
  margin-top: 0;
}

/* Stacked by default; label and value sit side by side once there is room.
   The UEN must never wrap mid-serial, so it gets the full column on narrow screens. */
.record__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem 1.5rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-top: 1px solid var(--rec-rule);
}
.record__row:last-child { border-bottom: 1px solid var(--rec-rule); }

.record dt {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rec-label);
}

.record dd {
  font-family: var(--display);
  font-variation-settings: "wdth" 100, "wght" 500;
  font-size: 1rem;
  color: var(--rec-value);
}

/* The UEN — stamped, character by character.
   Scoped as `.record .uen` (0,2,0) so it outranks `.record dd` (0,1,1). */
.record .uen {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3em;
  font-variation-settings: "wdth" 118, "wght" 700;
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.uen span {
  display: inline-block;
  animation: stamp 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.uen span:nth-child(1)  { animation-delay: 0.30s; }
.uen span:nth-child(2)  { animation-delay: 0.36s; }
.uen span:nth-child(3)  { animation-delay: 0.42s; }
.uen span:nth-child(4)  { animation-delay: 0.48s; }
.uen span:nth-child(5)  { animation-delay: 0.54s; }
.uen span:nth-child(6)  { animation-delay: 0.60s; }
.uen span:nth-child(7)  { animation-delay: 0.66s; }
.uen span:nth-child(8)  { animation-delay: 0.72s; }
.uen span:nth-child(9)  { animation-delay: 0.78s; }
.uen span:nth-child(10) { animation-delay: 0.84s; }

@keyframes stamp {
  from { opacity: 0; transform: translateY(0.36em) scale(1.06); }
  to   { opacity: 1; transform: none; }
}

/* Bands --------------------------------------------------------------------- */

.band {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--band-gap) var(--gutter) 0;
}

/* Anchor jumps land with air above the section rather than flush to the
   viewport edge. */
.band,
.hero { scroll-margin-top: clamp(1.5rem, 4vw, 3rem); }

/* A band that opens straight into the ledger — no heading of its own — is the
   list the paragraph above introduces with a colon, so it follows on closely
   instead of opening a full new band. Matched structurally rather than by id, so
   it survives renaming the section. Browsers without :has() just get more space. */
.band:has(> .aims) { padding-top: clamp(1.5rem, 3vw, 2.5rem); }

.band__head { max-width: 46ch; }

.band__title {
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin-top: 1rem;
  text-wrap: balance;
}

/* Currently unused — kept deliberately. It is the documented home for a section's
   opening sentence when the title needs to stay short (see README). */
.band__lede {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* Split band (head left, prose right) */
.band--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}

/* Aims — the commitments, set as a ledger rather than a card grid ------------ */

.aims {
  /* The verb column is sized from the verb's own type size, so the two scale
     together. A fixed rem column collided with "Empower" between 46rem and
     60rem, where the type had grown but the column had not. */
  --verb-size: clamp(1.75rem, 4.2vw, 2.75rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rule-firm);
}

.aim {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem 3rem;
  align-items: baseline;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-bottom: 1px solid var(--rule);
}

.aim__verb {
  font-family: var(--display);
  font-variation-settings: "wdth" 114, "wght" 700;
  font-size: var(--verb-size);
  line-height: 1;
  letter-spacing: -0.022em;
}

.aim__body { max-width: 60ch; }

.aim__lead {
  font-family: var(--display);
  font-variation-settings: "wdth" 104, "wght" 600;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.35;
  letter-spacing: -0.008em;
  margin-bottom: 0.85rem;
}

/* Prose --------------------------------------------------------------------- */

.prose { max-width: 58ch; }
.prose p + p { margin-top: 1.15rem; }

/* Office -------------------------------------------------------------------- */

.office {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--rule-firm);
}

.office__address {
  font-family: var(--display);
  font-variation-settings: "wdth" 106, "wght" 550;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: normal;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Footer -------------------------------------------------------------------- */

.footer {
  max-width: var(--measure);
  margin: clamp(3.5rem, 8vw, 6rem) auto 0;
  padding: 0 var(--gutter) clamp(2.5rem, 5vw, 3.5rem);
}

/* The rule lives on the inner element so it lines up with the content column,
   not with the gutter. */
.footer__inner {
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 600;
  font-size: 0.875rem;
}
.footer__brand .brand__mark { width: 20px; height: 20px; }

.footer__legal {
  font-family: var(--mono);
  font-size: 0.625rem;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.footer__legal .mono { font-size: 1em; color: var(--ink); }
.footer__sep { padding: 0 0.4em; }

/* Breakpoints --------------------------------------------------------------- */

@media (min-width: 46rem) {
  .office { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }

  .record__row { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }

  /* 5.4em clears the longest verb ("Empower") at every size in the range. */
  .aim { grid-template-columns: minmax(0, calc(var(--verb-size) * 5.4)) minmax(0, 1fr); }
}

@media (min-width: 60rem) {
  .record__row { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); }

  .band--split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .uen span { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
