/* Retronax Pte. Ltd. - company site
   ---------------------------------------------------------------
   Shape system (locked): interactive elements are full pills,
   cards are 16px, small inset elements are 10px. Nothing else.
   Accent: one blue, used on every surface, lightened in dark mode
   only far enough to hold WCAG AA against the dark ground.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fdfdfd;
  --bg-sunken: #f6f6f7;
  --surface: #f2f2f4;
  --surface-strong: #eaeaee;
  --text: #0a0a0a;
  --text-muted: #67676e;
  --text-faint: #8e8e97;
  --hairline: #e6e6ea;
  --grid-line: #ececf0;
  --accent: #006cf5;
  --accent-hover: #0059cc;
  --accent-ink: #ffffff;
  --accent-wash: rgba(0, 108, 245, 0.07);
  --shadow-soft: 0 1px 2px rgba(10, 10, 20, 0.04), 0 12px 32px rgba(10, 10, 20, 0.06);
  --shadow-lift: 0 2px 4px rgba(10, 10, 20, 0.05), 0 26px 60px rgba(10, 10, 20, 0.1);

  --radius-card: 16px;
  --radius-inset: 10px;
  --radius-pill: 999px;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(80px, 9.5vw, 128px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-sunken: #0f0f12;
    --surface: #151518;
    --surface-strong: #1d1d21;
    --text: #f4f4f6;
    --text-muted: #9d9da6;
    --text-faint: #7c7c85;
    --hairline: #232327;
    --grid-line: #1a1a1e;
    --accent: #4d92ff;
    --accent-hover: #6ba5ff;
    --accent-ink: #06121f;
    --accent-wash: rgba(77, 146, 255, 0.1);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.55), 0 26px 60px rgba(0, 0, 0, 0.5);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-inset) 0;
  font-weight: 500;
}
.skip-link:focus {
  left: 0;
}

/* ---------------------------------------------------------------
   Type
   --------------------------------------------------------------- */

.display {
  font-size: clamp(2.6rem, 6.6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.036em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.7rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 34ch;
  text-wrap: pretty;
}

.body {
  color: var(--text-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.014em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.14s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
}
.btn-secondary:hover {
  background: var(--surface-strong);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 0.875rem;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--bg);
  }
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.wordmark span {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 520px) {
  .header-actions .btn-secondary {
    display: none;
  }
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 8vw, 104px);
  text-align: center;
  overflow: hidden;
}

/* Hairline grid, faded at the edges. It exists to give the mark
   composition a plane to sit on, not as decoration on its own. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 62% 52% at 50% 26%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 52% at 50% 26%, #000 0%, transparent 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(22px, 3vw, 30px);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-wash);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.008em;
}

.hero .lead {
  max-width: 56ch;
  text-wrap: balance;
}

/* The headline's hard break is a desktop composition. Narrow screens wrap
   the line themselves, and keeping the break there only makes it lopsided. */
@media (max-width: 560px) {
  .hero .display br {
    display: none;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* The mark composition: three application tiles, the shape our work
   ships in. Abstract on purpose, no product is depicted. */
.mark-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(112px, 15vw, 156px);
  margin-bottom: clamp(4px, 1vw, 10px);
}

.tile {
  width: clamp(72px, 9vw, 96px);
  aspect-ratio: 1;
  border-radius: 24%;
  box-shadow: var(--shadow-lift);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease);
}

.tile-back-left {
  /* Needs its own edge: at this tint it vanishes into the white ground. */
  background: var(--surface-strong);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px var(--hairline);
  transform: translateX(58%) translateY(6%) rotate(-14deg) scale(0.8);
}

.tile-back-right {
  background: var(--text);
  transform: translateX(-58%) translateY(6%) rotate(14deg) scale(0.8);
}

.tile-front {
  position: relative;
  z-index: 1;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: clamp(2.4rem, 3.4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.tile-front span {
  transform: translateY(-2px);
}

@media (hover: hover) {
  .mark-stack:hover .tile-back-left {
    transform: translateX(72%) translateY(4%) rotate(-19deg) scale(0.8);
  }
  .mark-stack:hover .tile-back-right {
    transform: translateX(-72%) translateY(4%) rotate(19deg) scale(0.8);
  }
}

/* ---------------------------------------------------------------
   Section frame
   --------------------------------------------------------------- */

.section {
  padding-block: var(--section-y);
}

.section-sunken {
  background: var(--bg-sunken);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(40px, 5vw, 62px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---------------------------------------------------------------
   Capabilities bento: four cells for four capabilities.
   --------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.bento-cell {
  grid-column: span 6;
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  min-height: 188px;
}

.bento-cell .body {
  max-width: 46ch;
  font-size: 0.9375rem;
}

.bento-cell-wide {
  min-height: 252px;
}

/* Two cells carry a tinted ground so the grid is not four flat
   grey boxes in a row. */
.bento-cell-accent {
  background: linear-gradient(150deg, var(--accent-wash), transparent 68%), var(--surface);
}

.bento-cell-solid {
  background: var(--accent);
  color: var(--accent-ink);
}

.bento-cell-solid .body {
  /* Pure ink, not a tint: at body size a tint drops under 4.5:1 on the accent. */
  color: var(--accent-ink);
}

.bento-cell-solid @media (min-width: 760px) {
  .bento-cell-wide {
    grid-column: span 3;
  }
  .bento-cell-narrow {
    grid-column: span 3;
  }
}

@media (min-width: 1000px) {
  .bento-cell-wide {
    grid-column: span 3;
  }
  .bento-cell-narrow {
    grid-column: span 3;
  }
}

/* ---------------------------------------------------------------
   Approach statement
   --------------------------------------------------------------- */

.statement {
  font-size: clamp(1.5rem, 3.1vw, 2.35rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.03em;
  max-width: 21ch;
  text-wrap: balance;
}

.statement-grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

@media (min-width: 900px) {
  .statement-grid {
    grid-template-columns: 1.15fr 1fr;
  }
}

.statement-support {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 8px;
}

.statement-support p {
  color: var(--text-muted);
  max-width: 46ch;
}

/* ---------------------------------------------------------------
   Company record
   --------------------------------------------------------------- */

.about-grid {
  display: grid;
  gap: clamp(38px, 5vw, 68px);
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.record {
  border-top: 1px solid var(--hairline);
}

.record div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 560px) {
  .record div {
    grid-template-columns: 13rem 1fr;
    gap: 20px;
    align-items: baseline;
  }
}

.record dt {
  font-size: 0.875rem;
  color: var(--text-faint);
}

.record dd {
  font-size: 0.9375rem;
  font-weight: 500;
}

.record dd a:hover {
  color: var(--accent);
}

/* ---------------------------------------------------------------
   Contact
   --------------------------------------------------------------- */

.contact {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.contact .display {
  max-width: 16ch;
}

.contact-mail {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease);
}

.contact-mail:hover {
  border-color: var(--accent);
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(48px, 6vw, 72px) 32px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 34ch;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-col h2 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-faint);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.18s var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-base {
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------
   Legal pages
   --------------------------------------------------------------- */

.legal {
  padding-block: clamp(56px, 7vw, 88px) var(--section-y);
}

.legal-inner {
  max-width: 68ch;
}

.legal .display {
  font-size: clamp(2.1rem, 4.6vw, 3rem);
}

.legal-meta {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--text-faint);
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.024em;
  margin: 46px 0 12px;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.016em;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal a {
  color: var(--accent);
}

.legal a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  transition: color 0.18s var(--ease);
}

.back-link:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------
   Entrance and reveal.

   The hero uses a plain CSS animation so it can never depend on
   script running: a page whose job is to be verifiably live must
   not be able to load blank. Below-fold sections use
   IntersectionObserver, and their hidden state is only applied
   once that script is actually running.
   --------------------------------------------------------------- */

@keyframes enter-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

[data-enter] {
  animation: enter-in 0.8s var(--ease) both;
  animation-delay: var(--enter-delay, 0ms);
}

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(9px);
}

.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
    filter 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  [data-enter] {
    animation: none;
  }
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .js-reveal [data-reveal].is-in {
    transition: none;
  }
  .tile,
  .btn {
    transition: none;
  }
}
