/* =========================================================
   SVIS Service AB — stylesheet
   No third-party fonts, icons, or frameworks. System font
   stacks only, so the page costs ~0 bytes of type weight.
   ========================================================= */

:root {
  /* Colour: cool porcelain base, graphite ink, two accents that
     each carry meaning — teal for the digital/backend side of the
     business, amber for the hands-on/industrial side. */
  --bg: #eaf2f0;
  --bg-alt: #e8ebe3;
  --panel: #ffffff;
  --ink: #12181f;
  --ink-soft: #4a5560;
  --line: #d8ddd4;
  --line-strong: #b9c0b6;

  --teal: #21938c;
  --teal-ink: #dff5f3;
  --amber: #c8801f;
  --amber-ink: #fbead2;

  --font-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", "Segoe UI Mono",
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --radius: 3px;
  --gap: clamp(1.25rem, 2vw, 2rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--teal);
  margin-bottom: 0.9rem;
}

.eyebrow::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.eyebrow--amber {
  color: var(--amber);
}

section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
}

section:first-of-type,
.hero {
  border-top: none;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75em 1.25em;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* =========================
   Header
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 243, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: none; /* keep it cheap — no blur compositing */
}

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

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

/* Banner used as the wordmark: sized off height so the aspect
   ratio (the image's own 320:106) is preserved automatically —
   width is never set directly. Sized to roughly 60% of the 68px
   bar height, which leaves visible breathing room top and bottom
   rather than running the image edge-to-edge in the bar; a photo/
   graphic asset like this reads as a heavy block without that
   margin, and full-bleed would also more than double its footprint
   at the mobile breakpoint below, competing with the lang switch
   and menu button for space. */
.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.main-nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.main-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--ink);
  border-color: var(--teal);
}

.lang-switch {
  position: relative;
  flex: none;
}

.lang-switch button {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.4em 0.7em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.lang-switch button:hover {
  border-color: var(--teal);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  min-width: 170px;
  box-shadow: 0 8px 24px rgba(18, 24, 31, 0.12);
  display: none;
  overflow: hidden;
}

.lang-menu[data-open="true"] {
  display: block;
}

.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: none;
  padding: 0.65em 0.9em;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
}

.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: var(--bg-alt);
}

.lang-menu button[aria-checked="true"] {
  color: var(--teal);
  font-weight: 600;
}

.lang-menu .lang-code {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px;
  margin-inline: -8px 0;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* =========================
   Buttons
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.85em 1.3em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

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

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

.btn-primary:hover {
  background: #232c36;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--teal);
}

.btn-amber {
  background: var(--amber);
  color: #241706;
}

.btn-amber:hover {
  background: #b5731a;
}

/* =========================
   Hero
   ========================= */

.hero {
  padding-block: clamp(3.5rem, 10vw, 3.5rem) clamp(3rem, 8vw, 5rem);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  max-width: 15ch;
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-art {
  justify-self: center;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

/* =========================
   About
   ========================= */

.about-body {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.fact-strip {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.fact {
  padding: 1.25rem 1.4rem;
  border-left: 1px solid var(--line);
}

.fact:first-child {
  border-left: 0;
}

.fact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
  display: block;
}

.fact-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
}

/* =========================
   Services
   ========================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card {
  background: var(--panel);
  padding: 1.6rem 1.5rem;
  border-top: 3px solid var(--teal);
}

.service-card[data-accent="amber"] {
  border-top-color: var(--amber);
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 0.8rem;
}

.service-card[data-accent="amber"] .service-tag {
  color: var(--amber);
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* =========================
   Work
   ========================= */

.work-intro {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 62ch;
  margin-top: -0.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.work-block {
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.work-block:last-child {
  margin-bottom: 0;
}

.work-block-head h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.work-block-head p {
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

.hardware-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.hardware-figure img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hardware-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* Live services — terminal-styled cards */

.terminal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.terminal-card {
  background: var(--ink);
  color: #d9e3e6;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #232c36;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: #1a2129;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #8b98a1;
}

.terminal-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3aa66a;
  flex: none;
  box-shadow: 0 0 0 3px rgba(58, 166, 106, 0.15);
}

.terminal-body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.terminal-prompt {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--teal-ink);
  margin-bottom: 0.7rem;
  word-break: break-all;
}

.terminal-prompt::before {
  content: "$ curl ";
  color: #5c6a73;
}

.terminal-body h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
  color: #f2f5f4;
}

.terminal-body p {
  font-size: 0.92rem;
  color: #b7c1c6;
  margin-bottom: 1rem;
}

.terminal-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #6fd6cd;
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 214, 205, 0.35);
  padding-bottom: 1px;
}

.terminal-link:hover {
  border-color: #6fd6cd;
}

/* Flagship / hosting panels */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.panel + .panel {
  margin-top: 1rem;
}

.panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
  display: block;
}

.panel h4 {
  font-size: 1.15rem;
  margin-bottom: 0.7rem;
}

.panel p {
  color: var(--ink-soft);
  max-width: 66ch;
  margin-bottom: 1rem;
}

.panel p:last-of-type {
  margin-bottom: 0;
}

.panel-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(33, 147, 140, 0.35);
}

.panel-link:hover {
  border-color: var(--teal);
}

.panel-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Bots list */

.bot-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.bot-list li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
}

.bot-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bot-name {
  font-family: var(--font-mono);
  font-weight: 600;
  flex: none;
  min-width: 6.5ch;
  color: var(--ink);
}

.bot-desc {
  color: var(--ink-soft);
}

.bot-desc a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(33, 147, 140, 0.35);
}

.bot-desc a:hover {
  border-color: var(--teal);
}

/* =========================
   Team
   ========================= */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.team-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.team-head img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.team-name {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--teal);
}

.team-card[data-accent="amber"] .team-role {
  color: var(--amber);
}

.team-bio {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3em 0.6em;
  background: var(--bg-alt);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.team-cta {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}

.team-cta:hover {
  border-color: var(--ink);
}

/* =========================
   Contact
   ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-body {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 50ch;
  margin-bottom: 1.75rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-links a {
display:flex;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  width: fit-content;
  padding-bottom: 1px;
}

.contact-links a:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.contact-links a:not(:last-child) img{margin-right:4px;}
.contact-panel {
  background: var(--ink);
  color: #e7ebe4;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.contact-panel .eyebrow {
  color: var(--amber);
}

.contact-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #f5f7f2;
}

.contact-panel p {
  color: #b7c1c6;
  margin-bottom: 1.5rem;
}

/* =========================
   Footer
   ========================= */

.site-footer {
  background: var(--ink);
  color: #b7c1c6;
  border-top: 1px solid #232c36;
}

.footer-main {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #f5f7f2;
  margin-bottom: 0.9rem;
  text-decoration: none;
}

.footer-brand img {
  width: 24px;
  height: 24px;
}

.footer-brand span {
  font-family: var(--font-mono);
  font-weight: 600;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #8b98a1;
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  text-decoration: none;
  color: #cfd7d2;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #f5f7f2;
}

.footer-legal p {
  font-size: 0.88rem;
  color: #8b98a1;
  margin-bottom: 0.4rem;
  max-width: 40ch;
}

.footer-bottom {
  border-top: 1px solid #232c36;
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #7c8a92;
}

.page-weight {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.page-weight .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3aa66a;
  flex: none;
}

.cov{width:var(--container);height:auto;margin:0 auto 3% auto;}

/* =========================
   Reveal / motion
   ========================= */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    max-width: 320px;
  }

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

  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hardware-grid {
    grid-template-columns: 1fr;
  }

  .fact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact:nth-child(3) {
    border-left: 0;
  }

  .fact:nth-child(1),
  .fact:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  /* The nav is always taken out of the header's flex flow at this
     width (position: fixed applies in both states) — only opacity/
     visibility toggle. If position itself changed between states,
     the header row would have a different number of flex items to
     distribute space across, and the lang switch would jump left/
     right as it re-centred. Keeping the fixed positioning constant
     avoids that reflow entirely. */
  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.is-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .terminal-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
