:root {
  --ink: #f6f8f7;
  --muted: rgba(246, 248, 247, 0.72);
  --line: rgba(255, 255, 255, 0.18);
  --bg: #070909;
  --bg-soft: #101514;
  --green: #67c988;
  --cyan: #7cc7d7;
  --blue: #6ea8ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(103, 201, 136, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(124, 199, 215, 0.12), transparent 30rem),
    linear-gradient(145deg, #070909 0%, #111716 58%, #090c0c 100%);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-shell {
  width: min(1500px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 26px 0 34px;
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 4px 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: clamp(150px, 18vw, 220px);
  height: auto;
  display: block;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.language-switcher {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  margin-left: auto;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: #fff;
}

.masthead .site-nav + .language-switcher {
  margin-left: 0;
}

.language-switcher button {
  min-width: 42px;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 220ms ease, color 220ms ease;
}

.language-switcher button:hover,
.language-switcher button.is-active {
  background: #fff;
  color: #08100f;
}

.hero {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto minmax(420px, 1fr);
  gap: 22px;
  padding: clamp(22px, 4vw, 50px) 0 0;
}

.hero-copy {
  max-width: 820px;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 4.5vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 670px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.domain-choice-header {
  margin-top: clamp(10px, 2.2vw, 24px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.domain-choice-header::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), transparent);
}

.domain-choice-header p {
  margin: 0;
  color: rgba(246, 248, 247, 0.78);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-height: 430px;
}

.domain-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  text-decoration: none;
  isolation: isolate;
}

.domain-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) saturate(0.25) brightness(0.68);
  transform: scale(1.02);
  transition: filter 550ms ease, transform 650ms ease;
}

.domain-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 8, 8, 0.05), rgba(5, 8, 8, 0.46) 62%, rgba(5, 8, 8, 0.88)),
    linear-gradient(90deg, rgba(5, 8, 8, 0.74), rgba(5, 8, 8, 0.1) 58%);
  transition: opacity 500ms ease;
}

.domain-overlay {
  position: absolute;
  inset: auto 20px 20px 20px;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.78), transparent);
  opacity: 0.52;
  transform-origin: left;
  transition: transform 500ms ease, opacity 500ms ease;
}

.domain-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: grid;
  gap: 13px;
  padding: clamp(24px, 3vw, 38px);
}

.domain-title {
  max-width: 580px;
  font-size: clamp(1.8rem, 3.4vw, 3.45rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.domain-text {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.55;
}

.domain-action {
  width: fit-content;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 9px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    background 300ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease,
    transform 300ms ease;
}

.domain-action::after {
  content: "";
  width: 22px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 42%, 74% 42%, 52% 0, 100% 50%, 52% 100%, 74% 58%, 0 58%);
  transition: transform 300ms ease;
}

.domain-card:hover img,
.domain-card:focus-visible img {
  filter: grayscale(0) saturate(1.08) brightness(0.92);
  transform: scale(1.07);
}

.domain-card:hover::before,
.domain-card:focus-visible::before {
  opacity: 0.82;
}

.domain-card:hover .domain-overlay,
.domain-card:focus-visible .domain-overlay {
  opacity: 0.85;
  transform: scaleX(0.72);
}

.domain-card:hover .domain-action::after,
.domain-card:focus-visible .domain-action::after {
  transform: translateX(6px);
}

.domain-card:hover .domain-action,
.domain-card:focus-visible .domain-action {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 12px 28px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.domain-card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

.domain-card-engineering:hover .domain-action,
.domain-card-engineering:focus-visible .domain-action {
  border-color: rgba(110, 168, 255, 0.82);
  background: rgba(110, 168, 255, 0.18);
}

.domain-card-visuals:hover .domain-action,
.domain-card-visuals:focus-visible .domain-action {
  border-color: rgba(103, 201, 136, 0.82);
  background: rgba(103, 201, 136, 0.18);
}

.is-keyboard-user .domain-card:focus {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}

.operator-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(54px, 7vw, 92px) 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.about-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(54px, 7vw, 92px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.about-copy {
  max-width: none;
}

.about-copy h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.about-copy p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-copy .about-lead {
  color: rgba(246, 248, 247, 0.86);
  font-size: clamp(1.05rem, 1.55vw, 1.32rem);
  font-weight: 700;
  line-height: 1.55;
}

.linkedin-link {
  width: fit-content;
  min-height: 42px;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.linkedin-link:hover {
  color: var(--cyan);
}

.linkedin-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.9);
  color: #08100f;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.about-media {
  position: relative;
  width: min(100%, 680px);
  min-height: clamp(240px, 32vw, 420px);
  margin: 26px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}

@media (min-width: 981px) {
  .about-copy {
    display: grid;
    grid-template-columns: minmax(0, 0.56fr) minmax(300px, 0.44fr);
    column-gap: clamp(32px, 6vw, 92px);
    align-items: start;
  }

  .about-copy h2,
  .about-copy p,
  .linkedin-link {
    grid-column: 1;
  }

  .about-media {
    grid-column: 2;
    grid-row: 1 / span 5;
    justify-self: end;
    width: min(100%, 520px);
    min-height: clamp(260px, 26vw, 360px);
    margin: 0;
  }
}

.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 44%;
  filter: grayscale(1) saturate(0.3) brightness(0.78);
}

.operator-section h2 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.operator-section p {
  max-width: 480px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.operator-card {
  display: grid;
  gap: 12px;
  width: min(100%, 840px);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-style: normal;
}

.operator-card strong {
  color: #fff;
  font-size: 1.2rem;
}

.company-details {
  display: grid;
  gap: 10px;
  margin: 8px 0 4px;
}

.company-details div {
  display: grid;
  grid-template-columns: minmax(118px, 0.34fr) 1fr;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-details dt,
.company-details dd {
  margin: 0;
}

.company-details dt {
  color: rgba(246, 248, 247, 0.52);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.company-details dd {
  color: rgba(246, 248, 247, 0.86);
  line-height: 1.45;
}

.operator-card a {
  width: fit-content;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.operator-card a:hover {
  color: var(--green);
}

@media (max-width: 900px) {
  .site-shell {
    width: min(100% - 24px, 720px);
    min-height: auto;
  }

  .hero {
    grid-template-rows: auto auto auto;
  }

  .domain-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .domain-card {
    min-height: 390px;
  }

  .operator-section {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell {
    padding-top: 16px;
  }

  .brand-logo {
    width: min(176px, 56vw);
  }
}

@media (max-width: 540px) {
  .site-shell {
    width: calc(100% - 24px);
    padding-top: 16px;
  }

  .brand-logo {
    width: min(176px, 56vw);
    padding: 7px 10px;
  }

  .language-switcher button {
    min-width: 38px;
    min-height: 32px;
    padding: 6px 8px;
  }

  .masthead {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .domain-choice-header {
    gap: 12px;
  }

  .domain-choice-header p {
    font-size: 0.98rem;
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

  .domain-card {
    min-height: 360px;
  }

  .about-media {
    min-height: 300px;
  }

  .domain-content {
    padding: 22px;
  }

  .domain-title {
    font-size: clamp(1.65rem, 10vw, 2.55rem);
  }

  .company-details div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

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