/* Sprendora IT. Self-hosted only: no external fonts, scripts or images. */

/* Manrope, variable 200-800, SIL Open Font License (fonts/OFL.txt) */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  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: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  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;
}

:root {
  color-scheme: dark;
  --ink-0: #050a0a;
  --ink-1: #0a1413;
  --ink-2: #0f1d1b;
  --ivory: #f2ede3;
  --mute: #a5aea8;
  --gold: #d9c29a;
  --gold-hi: #f3e3c3;
  --gold-lo: #b8955f;
  --jade: #6fd6bd;
  --line: rgba(217, 194, 154, 0.16);
  --line-strong: rgba(217, 194, 154, 0.34);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 78rem;
}

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

html {
  background: var(--ink-0);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink-0);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Film grain over everything, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  background: url("grain.png");
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

::selection {
  background: var(--gold);
  color: var(--ink-0);
}

a {
  color: var(--gold);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 6px;
}

em {
  font-style: normal;
}

.serif,
.brand-word em,
.display em,
.section-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 2rem;
  }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 200;
  padding: 0.6rem 1.1rem;
  background: var(--ink-0);
  border: 1px solid var(--gold);
  border-radius: 999px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.site-header.scrolled {
  background: rgba(5, 10, 10, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  color: var(--gold);
  transition: transform 0.8s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-12deg) scale(1.05);
}

.brand-word em {
  color: var(--gold);
}

.nav {
  display: flex;
  gap: 2.25rem;
  margin-left: auto;
}

.nav a {
  position: relative;
  color: var(--mute);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav a:hover {
  color: var(--ivory);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}

.lang-switch .on {
  color: var(--gold);
}

.lang-switch .sep {
  width: 1px;
  height: 0.8rem;
  background: var(--line-strong);
}

.lang-switch:hover {
  border-color: var(--gold);
  color: var(--ivory);
}

@media (max-width: 47.99rem) {
  .nav {
    display: none;
  }

  .lang-switch {
    margin-left: auto;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7.5rem 0 6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(38% 34% at 72% 42%, rgba(217, 194, 154, 0.16), transparent 70%),
    radial-gradient(42% 40% at 12% 88%, rgba(111, 214, 189, 0.11), transparent 70%),
    radial-gradient(70% 55% at 50% -5%, rgba(23, 46, 42, 0.95), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  to {
    transform: translate3d(-3%, 2%, 0) scale(1.07) rotate(2deg);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.75rem;
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.display {
  margin: 0 0 2rem;
  font-size: clamp(3.2rem, 9vw, 8.5rem);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.display em {
  display: inline-block;
  padding: 0 0.12em 0.06em 0.04em;
  letter-spacing: -0.01em;
  background: linear-gradient(115deg, var(--gold-hi) 0%, #c9a46b 30%, #f6e7c8 50%, var(--gold-lo) 70%, var(--gold-hi) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s ease-in-out infinite;
}

@keyframes shine {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.lead {
  max-width: 34rem;
  margin: 0 0 2.75rem;
  color: var(--mute);
  font-size: clamp(1.1rem, 0.9vw + 0.85rem, 1.35rem);
  font-weight: 300;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s, color 0.3s;
}

.btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.4s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-gold {
  color: #15110a;
  background: linear-gradient(120deg, var(--gold-hi), #c9a46b 55%, #ead5a8);
  box-shadow: 0 14px 36px -14px rgba(217, 194, 154, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -16px rgba(217, 194, 154, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-ghost {
  color: var(--ivory);
  border: 1px solid var(--line-strong);
}

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

.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 40rem;
  aspect-ratio: 1;
}

.orb {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(246, 231, 200, 0.6), rgba(201, 164, 107, 0.28) 34%, rgba(111, 214, 189, 0.12) 60%, transparent 72%);
  filter: blur(10px);
  animation: breathe 9s ease-in-out infinite;
  transition: opacity 1.6s var(--ease);
}

@keyframes breathe {
  50% {
    transform: scale(1.06);
  }
}

.sculpture {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}

.hero-art.is-live .sculpture {
  opacity: 1;
}

.hero-art.is-live .orb {
  opacity: 0.32;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  width: 1px;
  height: 3.5rem;
  overflow: hidden;
  background: linear-gradient(var(--line-strong), transparent);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--gold);
  animation: cue 2.6s cubic-bezier(0.6, 0, 0.2, 1) infinite;
}

@keyframes cue {
  to {
    top: 110%;
  }
}

@media (max-width: 51.99rem) {
  .hero {
    padding: 5.75rem 0 5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-art {
    order: -1;
    justify-self: center;
    width: min(88vw, 26rem);
  }

  .scroll-cue {
    display: none;
  }
}

/* ---------- Moving band ---------- */

.band {
  overflow: hidden;
  padding: 1.6rem 0;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.band-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: band 60s linear infinite;
}

.band-track span {
  padding: 0 1.75rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-style: italic;
  line-height: 1.15;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 194, 154, 0.55);
}

.band-track span:nth-of-type(3n + 1) {
  color: var(--gold);
  -webkit-text-stroke: 0;
}

.band-track i {
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  background: linear-gradient(135deg, var(--jade), var(--gold));
  transform: rotate(45deg);
  opacity: 0.8;
}

@keyframes band {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(5rem, 11vw, 9.5rem) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.25rem);
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.section-num {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5.2vw, 4.25rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-head h2 em {
  color: var(--gold);
}

/* What we do: cards that tilt in 3D */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cards > li {
  display: flex;
  perspective: 1100px;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 18rem;
  padding: 2.25rem 2rem 2rem;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.008) 45%),
    var(--ink-1);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease), box-shadow 0.6s var(--ease);
}

.card.is-tilting {
  transition: transform 0.15s linear, box-shadow 0.6s var(--ease);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95);
}

/* hairline gradient border */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(217, 194, 154, 0.6), rgba(217, 194, 154, 0.06) 42%, rgba(111, 214, 189, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* light that follows the pointer */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(243, 227, 195, 0.13), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  color: var(--gold);
  transform: translateZ(50px);
}

.card-index {
  position: absolute;
  top: 1.6rem;
  right: 1.9rem;
  color: rgba(217, 194, 154, 0.6);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  transform: translateZ(30px);
}

.card h3 {
  margin: auto 0 0.6rem;
  padding-top: 2.5rem;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transform: translateZ(40px);
}

.card p {
  margin: 0;
  color: var(--mute);
  transform: translateZ(25px);
}

/* Contact */

.contact-intro {
  margin: 0 0 1.25rem;
  color: var(--mute);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
}

.contact-email {
  display: inline-block;
  padding-bottom: 0.15em;
  color: var(--ivory);
  font-size: clamp(1.85rem, 7.6vw, 6.25rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--gold), var(--jade)) left bottom / 0% 1px no-repeat;
  transition: background-size 0.9s var(--ease), color 0.4s;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--gold-hi);
  background-size: 100% 1px;
}

/* Company details: ledger with a turning seal */

.ledger {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem 3.5rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.005) 50%),
    var(--ink-1);
}

.details {
  display: grid;
  grid-template-columns: minmax(11rem, max-content) 1fr;
  margin: 0;
}

.details dt,
.details dd {
  margin: 0;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.details dt {
  padding-right: 2rem;
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  align-self: center;
}

.details dd {
  font-size: 1.1rem;
}

.register {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--mute);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
}

.seal {
  width: clamp(9rem, 15vw, 13rem);
  height: auto;
  color: var(--gold);
}

.seal text {
  fill: currentColor;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.seal-ring {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: spin 70s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .seal {
    order: -1;
    justify-self: center;
    width: 8.5rem;
  }
}

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

  .details dt {
    padding: 1rem 0 0.2rem;
    border-bottom: 0;
  }

  .details dd {
    padding-top: 0;
  }
}

/* Privacy */

.privacy p {
  max-width: 46rem;
  margin: 0 0 1.1rem;
  color: var(--mute);
  font-size: 1.1rem;
  font-weight: 300;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-word {
  margin: 0 0 2.5rem;
  font-size: clamp(4rem, 18vw, 15.5rem);
  font-weight: 200;
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217, 194, 154, 0.3);
  background: linear-gradient(180deg, rgba(217, 194, 154, 0.12), transparent 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-user-select: none;
  user-select: none;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  color: var(--mute);
  font-size: 0.875rem;
}

.footer-row p {
  margin: 0;
}

.footer-row a {
  color: var(--mute);
}

.footer-row a:hover {
  color: var(--gold);
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-content: center;
  min-height: 100vh;
  min-height: 100svh;
  text-align: center;
}

.notfound .display {
  margin-bottom: 1.5rem;
}

.notfound p {
  margin: 0 0 0.6rem;
  color: var(--mute);
}

/* ---------- Scroll reveals (only when scripting runs and motion is welcome) ---------- */

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 1.1s var(--ease), translate 1.1s var(--ease);
  }

  .reveal.in {
    opacity: 1;
    translate: none;
  }

  .reveal.d1 {
    transition-delay: 0.12s;
  }

  .reveal.d2 {
    transition-delay: 0.24s;
  }

  .reveal.d3 {
    transition-delay: 0.36s;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
