:root {
  --ink: #111418;
  --muted: #5b6572;
  --line: #dce1e8;
  --paper: #f6f7f9;
  --white: #ffffff;
  --black: #050607;
  --accent: #c8a05f;
  --accent-2: #2d6f73;
  --blue: #234b6d;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(17, 20, 24, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: rgba(5, 6, 7, .86);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
  transition: min-height .25s ease, background .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  background: rgba(5, 6, 7, .94);
  box-shadow: 0 14px 36px rgba(5, 6, 7, .28);
}

.brand img {
  width: 148px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, .78);
}

.main-nav a {
  transition: color .2s ease, border-color .2s ease;
}

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

.nav-cta {
  padding: 9px 14px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 150px clamp(20px, 7vw, 92px) 72px;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-media::after,
.hero-pattern {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  filter: saturate(.65) contrast(1.1);
  transform: scale(1.06);
  transition: transform .2s linear;
}

.hero-media::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 6, 7, .96) 0%, rgba(5, 6, 7, .78) 47%, rgba(5, 6, 7, .35) 100%),
    linear-gradient(0deg, rgba(5, 6, 7, .88) 0%, rgba(5, 6, 7, 0) 44%);
}

.hero-pattern {
  opacity: .26;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 74px 74px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .34) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .45s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 20, 24, .14);
}

.button:hover::after {
  transform: translateX(120%);
}

.button.primary {
  color: var(--black);
  background: var(--accent);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .28);
}

.button.whatsapp-button {
  color: var(--white);
  background: #1f9d61;
}

.button.whatsapp-button:hover {
  background: #17834f;
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: 48px;
  z-index: 1;
  width: min(260px, calc(100% - 40px));
  padding: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.hero-panel span {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.15;
}

.section {
  padding: clamp(72px, 9vw, 132px) clamp(20px, 7vw, 92px);
}

.split,
.consulting,
.about,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

.copy p,
.section-heading p,
.consulting-copy p,
.about-copy p {
  color: var(--muted);
  font-size: 18px;
}

.services,
.partners,
.webdev {
  background: var(--paper);
}

.services h2 {
  max-width: 860px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.service-grid article,
.quote-card,
.contact-box,
.partner-grid a,
.logo-grid a,
.brand-tile {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.service-grid article {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-grid article::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(200, 160, 95, .22), transparent 68%);
  opacity: 0;
  transition: opacity .25s ease;
}

.service-grid article:hover,
.logo-grid a:hover,
.brand-tile:hover,
.contact-form:hover,
.quote-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 160, 95, .45);
  box-shadow: 0 22px 54px rgba(17, 20, 24, .13);
}

.service-grid article:hover::after {
  opacity: 1;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 54px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.service-grid p {
  color: var(--muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 36px;
}

.section-heading > * {
  max-width: 680px;
}

.section-visual,
.wide-visual,
.visual-stack > img,
.contact-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(17, 20, 24, .08);
}

.section-visual {
  width: min(360px, 36vw);
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.visual-stack {
  display: grid;
  gap: 18px;
}

.visual-stack > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.wide-visual {
  width: min(760px, 100%);
  margin-top: 42px;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.contact-copy {
  display: grid;
  align-content: start;
}

.contact-visual {
  width: min(520px, 100%);
  margin-top: 28px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.webdev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.webdev-grid article {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 430px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(17, 20, 24, .07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.webdev-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 160, 95, .45);
  box-shadow: 0 22px 54px rgba(17, 20, 24, .13);
}

.webdev-grid img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #edf4f6;
}

.webdev-grid article > div {
  padding: 26px;
}

.webdev-grid p {
  color: var(--muted);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.logo-grid a,
.brand-tile {
  min-height: 178px;
  display: grid;
  place-items: center;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(17, 20, 24, .07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.logo-grid img,
.brand-tile img {
  max-height: 108px;
  object-fit: contain;
}

.logo-grid .mymall-logo img {
  max-height: 138px;
}

.consulting {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(12, 26, 35, .96), rgba(21, 48, 48, .94)),
    url("assets/hero-fornax.jpg") center/cover;
}

.consulting .section-kicker,
.consulting h2 {
  color: var(--white);
}

.consulting-copy p {
  color: rgba(255, 255, 255, .76);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.quote-card {
  padding: clamp(24px, 4vw, 42px);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.quote-card p {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.13;
}

.quote-card span {
  color: var(--accent-2);
  font-weight: 700;
}

.about-photo {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}

.about-photo:hover img {
  transform: scale(1.04);
}

.vita {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.vita span {
  padding: 9px 12px;
  color: var(--blue);
  background: #edf4f6;
  border-radius: var(--radius);
  font-weight: 700;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.partner-grid a {
  display: grid;
  align-content: space-between;
  min-height: 260px;
  padding: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.partner-grid a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(17, 20, 24, .1);
}

.partner-grid span {
  margin-bottom: 20px;
  font-size: 19px;
  font-weight: 700;
}

.partner-grid img {
  max-height: 150px;
  margin: auto;
  object-fit: contain;
}

.contact {
  align-items: start;
}

.contact-intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.form-row {
  display: grid;
  gap: 8px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label,
.privacy-check {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #cfd6df;
  border-radius: var(--radius);
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(45, 111, 115, .12);
}

.privacy-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 400;
}

.privacy-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--accent-2);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note a {
  color: var(--accent-2);
  font-weight: 700;
}

.form-result {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(12, 26, 35, .95), rgba(21, 48, 48, .92)),
    url("assets/hero-fornax.jpg") center/cover;
}

.result-card {
  width: min(620px, 100%);
  padding: clamp(28px, 5vw, 48px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.result-card img {
  width: 140px;
  padding: 12px;
  margin-bottom: 28px;
  background: var(--black);
  border-radius: var(--radius);
}

.result-card h1 {
  color: var(--ink);
  font-size: clamp(32px, 5vw, 52px);
}

.result-card p {
  color: var(--muted);
  font-size: 18px;
}

.contact-box {
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-box p {
  color: var(--muted);
  font-size: 20px;
}

.contact-box .button {
  margin-top: 10px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 7vw, 92px);
  color: rgba(255, 255, 255, .68);
  background: var(--black);
}

.site-footer img {
  width: 112px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--white);
}

.legal-page {
  background: var(--paper);
}

.legal-hero {
  padding: 150px clamp(20px, 7vw, 92px) 54px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(5, 6, 7, .94), rgba(21, 48, 48, .9)),
    url("assets/hero-fornax.jpg") center/cover;
}

.legal-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
}

.legal-content {
  width: min(980px, calc(100% - 40px));
  margin: -26px auto 0;
  padding: clamp(28px, 5vw, 58px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-content h2 {
  margin: 34px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 17px;
}

.legal-content a {
  color: var(--accent-2);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-grid article:nth-child(2),
.logo-grid a:nth-child(2),
.webdev-grid article:nth-child(2),
.partner-grid a:nth-child(2) {
  transition-delay: .08s;
}

.service-grid article:nth-child(3),
.brand-tile:nth-child(3),
.webdev-grid article:nth-child(3),
.partner-grid a:nth-child(3) {
  transition-delay: .16s;
}

.brand-tile:nth-child(4) {
  transition-delay: .24s;
}

.brand-tile:nth-child(5) {
  transition-delay: .32s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-media img,
  .about-photo:hover img,
  .button:hover,
  .service-grid article:hover,
  .webdev-grid article:hover,
  .logo-grid a:hover,
  .brand-tile:hover,
  .contact-form:hover,
  .quote-card:hover,
  .partner-grid a:hover {
    transform: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: rgba(5, 6, 7, .96);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 124px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 32px;
  }

  .split,
  .consulting,
  .about,
  .contact,
  .service-grid,
  .webdev-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-visual {
    width: min(520px, 100%);
    margin-top: 24px;
  }

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

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

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
  }

  .brand img {
    width: 118px;
  }

  .main-nav {
    top: 68px;
  }

  h1 {
    font-size: 42px;
  }

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

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

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