/* ChillStar IT Solution — site styles */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("archivo.woff2") format("woff2-variations"), url("archivo.woff2") format("woff2");
}

:root {
  --chassis: #f2f4f5;
  --plate: #ffffff;
  --ink: #16212a;
  --steel: #56646f;
  --rule: #cbd3d8;
  --patch: #f0b323;
  --patch-deep: #d99c0f;
  --led: #35c27a;
  --led-off: #3a4b56;
  --rack: #1b262e;

  --sans: "Archivo", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --wrap: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--chassis);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { top: 0.75rem; }

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

/* ---------- type ---------- */

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.08; text-wrap: balance; }

h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);
  font-stretch: 72%;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.005em;
  max-width: 16ch;
}

h2 { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.25rem); font-stretch: 76%; }

h3 { font-size: 1.3125rem; font-stretch: 86%; font-weight: 650; line-height: 1.2; }

p { margin: 0; max-width: 62ch; }

.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--ink); max-width: 46ch; }

.muted { color: var(--steel); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border-radius: 4px; border: 2px solid transparent;
  font: 650 1rem/1.1 var(--sans); font-stretch: 90%;
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn-patch { background: var(--patch); color: var(--ink); }
.btn-patch:hover { background: var(--patch-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */

.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand-name { font-size: 1.25rem; font-weight: 760; font-stretch: 74%; letter-spacing: 0.005em; line-height: 1; }
.brand-name span { font-weight: 420; color: var(--steel); }

.nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.9375rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--steel); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
.nav .btn { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.9375rem; }

@media (max-width: 52rem) { .nav a:not(.btn) { display: none; } }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero .wrap {
  display: grid; gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
}
.hero-copy { display: grid; gap: 1.75rem; align-content: center; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.reg { font-size: 0.875rem; color: var(--steel); }
.reg strong { color: var(--ink); font-weight: 600; }

.hero figure { margin: 0; justify-self: end; width: 100%; max-width: 32rem; }
.hero figcaption { margin-top: 0.9rem; font-size: 0.875rem; color: var(--steel); }

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero figure { justify-self: start; max-width: 28rem; }
}

/* ---------- rack drawing ---------- */

.rack { width: 100%; height: auto; }
.rack text { font-family: var(--sans); }
.r-frame { fill: var(--rack); }
.r-foot { fill: #111a20; }
.r-rail { fill: #222f38; }
.r-hole { fill: #10171c; }
.r-u { fill: #7d8e9a; font-size: 11px; font-stretch: 70%; font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
.r-face { fill: #2a3741; stroke: #35454f; stroke-width: 1; }
.r-face-dark { fill: #212d35; stroke: #2f3d47; stroke-width: 1; }
.r-port { fill: #121a1f; }
.r-plug { fill: var(--patch); }
.r-cable { fill: none; stroke: var(--patch); stroke-width: 2.6; stroke-linecap: round; opacity: 0.92; }
.r-ring { fill: none; stroke: #4a5c68; stroke-width: 2; }
.r-slot { fill: #151e24; }
.r-handle { fill: #3a4a55; }
.r-bay { fill: #1f2a31; stroke: #3a4954; stroke-width: 1; }
.r-vent { fill: #1d272e; }
.r-btn { fill: #1d272e; stroke: #4a5c68; stroke-width: 1.5; }
.r-tape { fill: #f3f3ef; }
.r-tape-t { fill: var(--ink); font-size: 11px; font-weight: 640; font-stretch: 74%; dominant-baseline: middle; }
.r-lcd { fill: #0c1510; stroke: #33434e; stroke-width: 1; }
.r-lcd-t { fill: #7fe0a8; font-size: 11px; font-weight: 520; font-stretch: 80%; opacity: 0; animation: lcd 400ms ease-out 450ms forwards; }
.r-lcd-big { font-size: 17px; font-weight: 700; font-stretch: 72%; }

/* power-on sequence: bottom of the rack first, network last */
.led { fill: var(--led-off); animation: power 1ms linear forwards; }
.d1 { animation-delay: 250ms; }
.d3 { animation-delay: 650ms; }
.d4 { animation-delay: 780ms; }
.d5 { animation-delay: 1000ms; }
.d6 { animation-delay: 1130ms; }
.d7 { animation-delay: 1400ms; }
.d8 { animation-delay: 1650ms; }

@keyframes power { to { fill: var(--led); } }
@keyframes lcd { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .led { animation: none; fill: var(--led); }
  .r-lcd-t { animation: none; opacity: 1; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 0.9rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* services: ruled rows */
.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.service {
  display: grid; gap: 1rem 2.5rem;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  padding-block: 2rem; border-top: 1px solid var(--rule);
}
.service ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.9375rem; }
.service li { display: grid; grid-template-columns: 0.875rem 1fr; align-items: baseline; }
.service li::before { content: ""; width: 0.4rem; height: 0.4rem; background: var(--patch-deep); transform: translateY(-0.12em); }

@media (max-width: 52rem) { .service { grid-template-columns: 1fr; } }

/* process: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.6rem; align-content: start; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step);
  font-size: 2.25rem; font-weight: 760; font-stretch: 70%; line-height: 1; color: var(--steel);
}
.steps p { font-size: 0.9375rem; }

@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 34rem) { .steps { grid-template-columns: 1fr; } }

/* business details: equipment rating plate */
.details { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.details-copy { display: grid; gap: 1.25rem; }

.plate {
  position: relative; margin: 0; padding: 1.75rem 2rem;
  background: var(--plate); border: 1px solid var(--rule); border-radius: 6px;
  background-image:
    radial-gradient(circle at 0.9rem 0.9rem, var(--rule) 0 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 0.9rem) 0.9rem, var(--rule) 0 3px, transparent 3.5px),
    radial-gradient(circle at 0.9rem calc(100% - 0.9rem), var(--rule) 0 3px, transparent 3.5px),
    radial-gradient(circle at calc(100% - 0.9rem) calc(100% - 0.9rem), var(--rule) 0 3px, transparent 3.5px);
}
.plate div { display: grid; grid-template-columns: minmax(8rem, 2fr) 5fr; gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid #e3e8eb; }
.plate div:last-child { border-bottom: 0; }
.plate dt { color: var(--steel); font-size: 0.9375rem; }
.plate dd { margin: 0; font-weight: 520; }
.plate .abn { font-size: 1.25rem; font-weight: 700; font-stretch: 80%; letter-spacing: 0.01em; }

@media (max-width: 52rem) { .details { grid-template-columns: 1fr; } }
@media (max-width: 30rem) {
  .plate { padding: 1.25rem 1.25rem; }
  .plate div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* about */
.about { display: grid; gap: 1.5rem 4rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.about-copy { display: grid; gap: 1.1rem; }
@media (max-width: 52rem) { .about { grid-template-columns: 1fr; } }

/* contact band */
.contact { background: var(--rack); color: #e9eef1; padding-block: clamp(3.5rem, 8vw, 6rem) 0; }
.contact .wrap { display: grid; gap: 2.25rem; }
.contact-head { display: grid; gap: 0.75rem; }
.contact .muted { color: #a9b6bf; }
.contact-mail {
  display: inline-block; width: fit-content;
  font-size: clamp(1.75rem, 1rem + 3.2vw, 3.5rem); font-weight: 720; font-stretch: 70%; line-height: 1.05;
  color: #fff; text-decoration-color: var(--patch); text-decoration-thickness: 3px; text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.contact-mail:hover { text-decoration-thickness: 5px; }
.contact :focus-visible { outline-color: var(--patch); }
.contact-grid { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 2rem; border-top: 1px solid #33434e; }
.contact-grid h3 { font-size: 0.9375rem; font-stretch: 90%; color: #a9b6bf; font-weight: 520; margin-bottom: 0.35rem; }
.contact-grid p { font-size: 1rem; }
@media (max-width: 52rem) { .contact-grid { grid-template-columns: 1fr; } }

.site-foot { margin-top: clamp(3rem, 6vw, 4.5rem); padding-block: 1.5rem; border-top: 1px solid #33434e; font-size: 0.875rem; color: #a9b6bf; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; }
.site-foot a { color: #e9eef1; }

/* ---------- simple pages (privacy, 404) ---------- */

.page { padding-block: clamp(3rem, 7vw, 5rem); }
.page .wrap { display: grid; gap: 1.25rem; max-width: 48rem; }
.page h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); max-width: none; }
.page h2 { font-size: 1.5rem; margin-top: 1.25rem; }
.page ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; max-width: 62ch; }
.page-foot { border-top: 1px solid var(--rule); padding-block: 1.5rem; font-size: 0.875rem; color: var(--steel); }

/* ---------- social image only ---------- */
.og { width: 1200px; height: 630px; overflow: hidden; display: grid; grid-template-columns: 1fr 470px; gap: 64px; padding: 72px 80px; align-items: center; }
.og h1 { font-size: 76px; max-width: 12ch; }
.og .brand-name { font-size: 30px; }
.og .brand svg { width: 46px; height: 46px; }
.og-copy { display: grid; gap: 36px; }
.og-reg { font-size: 22px; color: var(--steel); }
.og .rack { width: 470px; }
.og .led { animation: none; fill: var(--led); }
.og .r-lcd-t { animation: none; opacity: 1; }
