/* TNO Systems website
   Contents: tokens, base, layout, buttons, header, hero, sections,
   about, modules, industries, contact, footer, small screens. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --red: #C8222A;
  --red-dark: #A51C22;
  --red-tint: #FCEBEC;
  --ink: #1F1F1F;
  --ink-soft: #2A2A2D;
  --text: #3D3D3D;
  --muted: #55555B;
  --tint: #F6F6F7;
  --line: #E7E7EA;
  --line-strong: #BDBDC2;
  --field-line: #8E8E93;
  --white: #FFFFFF;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;

  --gutter: clamp(20px, 4vw, 32px);
  --section-space: clamp(56px, 7vw, 96px);
  --header-height: 76px;
}

/* Base */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
address {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

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

img {
  height: auto;
}

a {
  color: #B01E25;
}

a:hover {
  color: #8E171D;
}

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

h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  font-weight: 700;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-s);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* Layout */

.container {
  width: 100%;
  max-width: calc(1200px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section--tint {
  background: var(--tint);
}

.section__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 780px;
  margin-bottom: 44px;
}

.section__intro p {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  font: inherit;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button--primary {
  color: var(--white);
  background: var(--red);
}

.button--primary:hover {
  color: var(--white);
  background: var(--red-dark);
}

.button--secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line-strong);
}

.button--secondary:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.button--small {
  min-height: 46px;
  padding: 10px 22px;
  font-size: 15.5px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 40px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
}

.site-nav a:not(.button) {
  padding: 12px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--red);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  cursor: pointer;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: block;
}

/* Hero */

.hero {
  padding-block: clamp(48px, 7vw, 96px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px 72px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--tint);
  border: 1px solid #E4E4E7;
  border-radius: 6px;
}

.tag__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.lead {
  max-width: 560px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: #4A4A4F;
}

.hero .button-row {
  margin-top: 8px;
}

.hero__panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  /* The turning icon ring must not widen the page on small screens. */
  overflow: hidden;
  padding: clamp(20px, 3vw, 32px);
  color: var(--white);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  border-radius: var(--radius-l);
}

.orbit {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1 / 1;
  margin: 8px auto 0;
}

.orbit__ring {
  position: absolute;
  border-radius: 50%;
}

.orbit__ring--outer {
  inset: 6%;
  border: 1px dashed rgba(255, 255, 255, 0.32);
}

.orbit__ring--inner {
  inset: 24%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.orbit__hub {
  position: absolute;
  inset: 34%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
}

.orbit__hub img {
  width: 62%;
}

/* The icons sit in eight slots around the ring. main.js moves them on by
   one slot every few seconds; without JavaScript they simply stay put. */
.orbit__track {
  position: absolute;
  inset: 0;
}

.orbit__item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  /* Centred on its slot with a whole-pixel margin, so icons are drawn
     sharp whenever they are at rest. */
  margin: -26px 0 0 -26px;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius-m);
  box-shadow: 0 0 0 6px var(--ink);
  animation: orbit-fade 0.5s ease-out both;
}

/* Eight slots, 45 degrees apart, starting at the top. */
.orbit__item--1 { left: 50%;   top: 6%; }
.orbit__item--2 { left: 81.1%; top: 18.9%; }
.orbit__item--3 { left: 94%;   top: 50%; }
.orbit__item--4 { left: 81.1%; top: 81.1%; }
.orbit__item--5 { left: 50%;   top: 94%; }
.orbit__item--6 { left: 18.9%; top: 81.1%; }
.orbit__item--7 { left: 6%;    top: 50%; }
.orbit__item--8 { left: 18.9%; top: 18.9%; }

/* The icons fade in one after another when the page loads. */
.orbit__item:nth-child(1) { animation-delay: 0.10s; }
.orbit__item:nth-child(2) { animation-delay: 0.16s; }
.orbit__item:nth-child(3) { animation-delay: 0.22s; }
.orbit__item:nth-child(4) { animation-delay: 0.28s; }
.orbit__item:nth-child(5) { animation-delay: 0.34s; }
.orbit__item:nth-child(6) { animation-delay: 0.40s; }
.orbit__item:nth-child(7) { animation-delay: 0.46s; }
.orbit__item:nth-child(8) { animation-delay: 0.52s; }

@keyframes orbit-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fact {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 18px 20px;
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-m);
}

.fact__value {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fact__label {
  font-size: 14px;
  line-height: 1.45;
  color: #E2E2E5;
}

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px 72px;
}

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

.about__copy p {
  max-width: 600px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16.5px;
  font-weight: 600;
}

.check-list .icon {
  flex: none;
  color: var(--red);
  stroke-width: 2;
}

.vision {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 380px;
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius-l);
}

.vision__mark {
  position: absolute;
  right: -70px;
  top: -70px;
  width: min(360px, 80%);
  filter: brightness(0) invert(1);
  opacity: 0.16;
}

.vision h3,
.vision p {
  position: relative;
}

.vision h3 {
  font-size: 15.5px;
  font-weight: 600;
}

.vision p {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* Globe3 modules */

.product-logo {
  width: 200px;
  margin-bottom: 12px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid #D5D5D9;
  border-radius: 6px;
}

.feature-list .icon {
  flex: none;
  color: var(--red);
  stroke-width: 3;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 44px;
}

.module {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  background: var(--tint);
  border-radius: var(--radius-m);
}

.module__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  color: var(--white);
  background: var(--red);
  border-radius: 12px;
}

.module p,
.industry p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* Industries */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.industry {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

.industry__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--red);
  background: var(--red-tint);
  border-radius: 12px;
}

.industry h3 {
  margin-bottom: 4px;
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: 40px 64px;
  padding: clamp(24px, 5vw, 64px);
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-l);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__details > p {
  max-width: 440px;
  font-size: 17.5px;
  line-height: 1.65;
  color: #D8D8DC;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 16px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-list__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #333336;
  border-radius: 12px;
}

.contact-list__label {
  display: block;
  font-size: 14px;
  color: #C4C4C9;
}

.contact-list address,
.contact-list a {
  font-size: 17px;
  line-height: 1.5;
  color: var(--white);
}

.contact-list a {
  display: inline-block;
  padding-block: 2px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover,
.contact-list__email {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3.4vw, 36px);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-m);
}

.contact-form .button {
  align-self: flex-start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14.5px;
  font-weight: 600;
}

.field__optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-line);
  border-radius: var(--radius-s);
}

.field input {
  height: 50px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--red);
}

.field [aria-invalid="true"] {
  border-color: var(--red);
  border-width: 2px;
}

.field__error {
  font-size: 14.5px;
  font-weight: 600;
  color: #B01E25;
}

/* Hidden from people; bots that fill it in are ignored. */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  padding: 14px 16px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  border: 1px solid;
  border-radius: var(--radius-s);
}

.notice--success {
  color: #1D5B33;
  background: #EAF6EE;
  border-color: #9CCBAA;
}

.notice--error {
  color: #8E171D;
  background: var(--red-tint);
  border-color: #E9A9AC;
}

/* Footer */

.site-footer {
  padding-block: 36px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand--footer {
  min-height: 0;
  font-size: 18px;
}

.brand--footer img {
  width: 32px;
}

.site-footer__legal {
  font-size: 14.5px;
  color: var(--muted);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 30px;
}

.site-footer__nav a {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--red);
}

/* Error page */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 640px;
  padding-block: clamp(64px, 10vw, 140px);
}

/* Medium screens */

@media (max-width: 1080px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero__inner,
  .about,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .vision {
    min-height: 300px;
  }
}

/* Small screens: the navigation collapses behind a menu button.
   Without JavaScript the links simply wrap under the logo. */

@media (max-width: 820px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-bottom: 16px;
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav a:not(.button) {
    padding: 14px 0;
    font-size: 17px;
    border-top: 1px solid var(--line);
  }

  .js .site-nav .button {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .module-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero .button,
  .contact-form .button {
    width: 100%;
  }

  .industry {
    padding: 20px;
    gap: 14px;
  }
}

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

  .orbit__item {
    animation: none;
  }

  .button {
    transition: none;
  }
}
