/* ==========================================================================
   base.css - reset, self-hosted families, type scale, layout grid, utilities.
   ========================================================================== */

/* ---- fonts (self-hosted; zero external requests) ------------------------ */
/* Google Sans and Google Sans Code, both SIL Open Font License 1.1, taken from
   Google Fonts and served from this project - there is no Google Fonts <link>.
   Variable weight, split by unicode-range exactly as Google subsets them, so an
   English page only ever fetches the latin file. */
@font-face {
  font-family: "Google Sans";
  src: url("../fonts/google-sans/GoogleSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Google Sans";
  src: url("../fonts/google-sans/GoogleSans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans Code";
  src: url("../fonts/google-sans-code/GoogleSansCode-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Google Sans Code";
  src: url("../fonts/google-sans-code/GoogleSansCode-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd { margin: 0; }

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }

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

button, input, select, textarea { font: inherit; color: inherit; }

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

.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;
}

/* ---- page ground -------------------------------------------------------- */
[data-theme="light"] body { background: var(--white); color: var(--black); }
[data-theme="dark"]  body { background: var(--dark);  color: var(--white); }

/* ---- type scale --------------------------------------------------------- */
/* h1-h6 elements sit at 500, the .h1-.h6 classes at 400, so the stat numbers
   read one notch lighter than the headline. That split only became visible when
   the type moved to Google Sans: the previous face shipped a Regular cut alone,
   so a request for 500 fell back to 400 and the two rendered identically. Google
   Sans is variable across 400-700, so 500 is now a genuine medium. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-weight: 500; }
.h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 400; }

h1, .h1 { font-size: clamp(40px, 5vw + 8px,   60px); line-height: clamp(46px, 5.5vw + 10px, 64px); }
h2, .h2 { font-size: clamp(34px, 4.5vw + 6px, 52px); line-height: clamp(40px, 5vw + 8px,    56px); }
h3, .h3 { font-size: clamp(30px, 4vw + 5px,   44px); line-height: clamp(36px, 4.5vw + 6px,  48px); }
h4, .h4 { font-size: clamp(24px, 3vw + 4px,   40px); line-height: clamp(28px, 3.5vw + 5px,  44px); }
h5, .h5 { font-size: clamp(22px, 2.5vw + 3px, 32px); line-height: clamp(26px, 3vw + 4px,    36px); }
h6, .h6 { font-size: clamp(20px, 2vw + 2px,   24px); line-height: clamp(24px, 2.5vw + 3px,  32px); }

.text-body-1 { font-size: 20px; line-height: 28px; }
.text-body-2 { font-size: 16px; line-height: 24px; }
.text-body-3 { font-size: 14px; line-height: 20px; }

.font-2 { font-family: var(--font-display); }

.ls--05 { letter-spacing: -.005em; }
.ls--1  { letter-spacing: -.01em;  }
.ls--2  { letter-spacing: -.02em;  }

/* ---- layout grid (four hand-rolled rules; not Bootstrap) ---------------- */
.container {
  width: 1176px;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
  position: relative;
}
.row { display: flex; margin-inline: -12px; }
.col-main { padding-inline: 12px; margin-right: auto; width: 100%; }
.wrap-container { width: 100%; margin-right: auto; }

@media (min-width: 992px) and (max-width: 1199px) {
  .col-main { width: 58.3333%; }              /* 7/12 */
  .wrap-container { padding-left: 44px; }
}
@media (min-width: 1200px) {
  .col-main { width: 66.6667%; }              /* 8/12 */
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .wrap-container { max-width: 708px; }
}
@media (max-width: 575px) {
  .wrap-container { padding: 0; }
}

/* Lets the fixed right card stay clickable underneath the content column. */
.main-content { pointer-events: none; }
.main-content .wrap-container { pointer-events: all; }

/* ---- section rhythm ----------------------------------------------------- */
.flat-spacing { padding-block: 72px; }
@media (max-width: 991px) { .flat-spacing { padding-block: 60px; } }
@media (max-width: 767px) { .flat-spacing { padding-block: 40px; } }

/* ---- shared utilities --------------------------------------------------- */
.br-line { display: flex; width: 100%; height: 1px; background-color: var(--white-8); }

.text-vertical { writing-mode: vertical-lr; transform: rotate(180deg); }

.avaiable-dot { display: inline-flex; align-items: center; gap: 8px; }
.avaiable-dot.vertical { flex-direction: column; }
.avaiable-dot .dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  flex: 0 0 auto;
}
.avaiable-dot .dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background-color: var(--primary);
  animation: rippleFade 1.8s ease-out infinite;
}
@keyframes rippleFade {
  0%   { opacity: 1; transform: scale(.9);  }
  100% { opacity: 0; transform: scale(2.4); }
}

/* ---- reveal (fadeUp) ---------------------------------------------------- */
.effect-fade {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out);
  will-change: opacity, transform;
}
.effect-fade.is-in { opacity: 1; transform: translateY(0); }

/* ---- responsive display helpers (Bootstrap semantics: min-width up) ----- */
.d-none { display: none !important; }
@media (min-width: 576px) { .d-sm-block { display: block !important; } }
@media (min-width: 576px) { .d-sm-none  { display: none  !important; } }
@media (min-width: 992px) { .d-lg-block { display: block !important; } }
@media (min-width: 992px) { .d-lg-none  { display: none  !important; } }

/* ---- reduced motion ----------------------------------------------------- */
/* Disables reveals, typewriter, badge spin, code typing, count-up, ripple
   and marquee (rendering final state); shortens hover/tooltip/pill motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .effect-fade { opacity: 1 !important; transform: none !important; transition: none !important; }

  .avaiable-dot .dot::after,
  .text-rotate,
  .infiniteSlide-brand .track { animation: none !important; }

  .hero-code { opacity: 1 !important; transition: none !important; }
  .hero-code .cl {
    clip-path: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }
  .hero-code .cur { opacity: 1 !important; animation: none !important; }

  .cd-words-wrapper { transition: none !important; }
  .cd-words-wrapper::after { display: none; }

  .intro-title span.is-flip,
  .intro-title span.is-flip .flip-word,
  .intro-title span::after,
  .tf-btn-action .ic-wrap,
  .tf-btn-action .text,
  .tf-btn-action .fi,
  .sidebar-tools .item-link .tool-tip { transition-duration: .01ms !important; }
}
