/* Centis Telecom. One typeface (Jost), one colour family taken from the logo. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("jost-v20-latin-wght-normal.woff2") format("woff2");
}

:root {
  --navy: #06223b;        /* logo colour: hero, contact, text on light */
  --navy-lift: #0f3a61;   /* the large arc in the hero */
  --sky: #a9cdee;         /* secondary text and focus ring on navy */
  --fog: #e8eef4;         /* light band */
  --white: #ffffff;
  --slate: #3d5166;       /* secondary text on light */

  --step-0: 1.1875rem;                         /* body, 19px */
  --step-1: 1.5rem;                            /* h3 */
  --step-2: clamp(2rem, 1.3rem + 2.6vw, 3rem); /* h2 */
  --step-3: clamp(2.5rem, 1rem + 6vw, 5.25rem);/* h1 */

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --band: clamp(4rem, 10vw, 8rem);
}

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--navy);
  font-family: "Jost", "Century Gothic", "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.5;
}

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

h1, h2, h3 {
  font-weight: 500;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
  line-height: 1.03;
  letter-spacing: -0.022em;
}

h2 {
  font-size: var(--step-2);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--step-1);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

p { text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

.band-fog :focus-visible,
.band-white :focus-visible { outline-color: var(--navy); }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -6rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--navy);
}

.skip:focus { top: 1rem; }

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: inset 0 0 0 2px var(--white);
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:hover {
  background: var(--sky);
  box-shadow: inset 0 0 0 2px var(--sky);
}

.btn-outline {
  background: transparent;
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--white);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.brand { display: block; }

.brand img {
  display: block;
  width: auto;
  height: 2.75rem;
}

.topbar .btn { padding: 0.6rem 1.1rem; }

.hero-body {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 11vw, 9rem) clamp(4.5rem, 13vw, 10.5rem);
}

.hero-body h1 { max-width: 13.5em; }

.lead {
  max-width: 34em;
  margin-top: 1.75rem;
  color: var(--sky);
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* The logo's open C, drawn once at page load. */
.arc {
  position: absolute;
  top: 50%;
  right: -19vw;
  width: 64vw;
  max-width: none;
  transform: translateY(-50%);
  pointer-events: none;
}

.arc path {
  fill: none;
  stroke: var(--navy-lift);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 1.4s cubic-bezier(0.65, 0, 0.2, 1) both;
}

@keyframes draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  12% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

/* Bands */

.band { padding-block: var(--band); }
.band-fog { background: var(--fog); }
.band-white { background: var(--white); }
.band-navy { background: var(--navy); color: var(--white); }

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.split-head p {
  max-width: 24em;
  margin-top: 1rem;
  color: var(--slate);
}

.band-navy .split-head p { color: var(--sky); }

.services {
  display: grid;
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
}

.services p {
  max-width: 30em;
  margin-top: 0.6rem;
  color: var(--slate);
}

.statement h2 {
  max-width: 15em;
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.statement > p {
  max-width: 36em;
  margin-top: 2rem;
  color: var(--slate);
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  line-height: 1.45;
}

.experience {
  display: grid;
  gap: 2.25rem clamp(1.75rem, 3vw, 3rem);
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.experience h3 { max-width: 12em; }

.experience p {
  max-width: 26em;
  margin-top: 0.6rem;
  color: var(--slate);
}

/* Contact */

.channels {
  display: grid;
  gap: 2.75rem;
}

.channels dt { color: var(--sky); }

.channel {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: clamp(1.75rem, 0.9rem + 3.6vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 0.15s;
}

.channel:hover { color: var(--sky); }

.aside-link {
  display: table;
  margin-top: 0.6rem;
  color: var(--sky);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.aside-link:hover { color: var(--white); }

/* Footer */

.footer {
  background: var(--navy);
  color: var(--sky);
  font-size: 1rem;
  padding-block: 0 2.5rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2.5rem;
}

/* Error page */

.notfound {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.notfound .hero-body { margin-block: auto; }

/* Wider screens */

@media (min-width: 40rem) {
  .services { grid-template-columns: 1fr 1fr; }
  .experience { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 62rem) {
  .split { grid-template-columns: 5fr 8fr; }
  .split-head { position: sticky; top: 3rem; align-self: start; }
  .experience { grid-template-columns: repeat(4, 1fr); }
  .arc { right: -13vw; width: 56vw; max-width: 50rem; }
}

@media (min-width: 40rem) and (max-width: 61.99rem) {
  .arc { top: auto; bottom: -24vw; right: -22vw; width: 66vw; transform: none; }
}

@media (max-width: 39.99rem) {
  .arc { top: auto; bottom: -52vw; right: -44vw; width: 115vw; transform: none; }
  .hero-body { padding-bottom: 6.5rem; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arc path { animation: none; }
  .btn, .channel { transition: none; }
}
