:root {
  color-scheme: dark;
  --ink: #fff9eb;
  --muted: #d1d7de;
  --line: rgba(255, 255, 255, .24);
  --panel: rgba(37, 52, 68, .82);
  --accent: #e5bd61;
  --accent-2: #a8d5e7;
  --bg: #263747;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(38, 55, 71, .68), rgba(27, 39, 52, .84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 72px),
    radial-gradient(circle at 80% 10%, rgba(168, 213, 231, .34), transparent 32rem),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow: visible;
  min-height: 74px;
  padding: 6px clamp(14px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(28, 40, 54, .9);
  backdrop-filter: blur(16px);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 120px;
  min-height: 74px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  height: 78px;
  max-width: 165px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand span {
  margin-left: 90px;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(201, 162, 77, .42);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(229, 189, 97, .16);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

nav a[aria-current="page"] {
  background: rgba(229, 189, 97, .3);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 64px;
}

.simple-cases {
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

.simple-card {
  position: relative;
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(37, 52, 68, .72);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.card-logo {
  width: auto;
  height: 95px;
  max-width: 143px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35));
  pointer-events: none;
}

.case-image {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(168, 213, 231, .18), rgba(229, 189, 97, .1)),
    rgba(20, 32, 44, .8);
  color: rgba(255, 249, 235, .72);
  font-weight: 800;
}

.simple-card img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: rgba(20, 32, 44, .8);
}

.simple-card img.card-logo {
  width: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}

.case-content {
  padding: 22px;
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr 143px;
  align-items: start;
  min-height: 24px;
  padding: 0 0 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.case-meta .card-logo {
  justify-self: end;
  margin-top: -3px;
}

.case-title {
  display: grid;
  gap: 2px;
  align-content: start;
}

.case-title h2 {
  margin-bottom: 0;
}

.case-updated {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.case-text {
  display: block;
}

.simple-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
  text-transform: none;
}

.simple-card p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.simple-card p:last-child {
  margin-bottom: 0;
}

.hero {
  max-width: 780px;
  padding: clamp(26px, 5vw, 48px) 0;
}

.classification,
.label {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 8vw, 86px);
  line-height: .95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

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

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

.case-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(37, 52, 68, .72);
}

.case-id {
  display: inline-flex;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-card p {
  color: var(--muted);
  line-height: 1.5;
}

.case-card strong {
  color: var(--accent-2);
}

.case-panel > div {
  min-height: 112px;
  padding: 22px;
  background: var(--panel);
}

.case-panel strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin-bottom: 14px;
  font-size: 34px;
  text-transform: uppercase;
}

.team-page {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.team-subtitle {
  margin: -10px 0 10px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}

.team-list {
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
}

.agent-card {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: 22px;
  align-items: center;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(37, 52, 68, .72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
}

.agent-card .agent-photo {
  justify-self: center;
}

.agent-photo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 220px;
  border: 1px solid rgba(229, 189, 97, .32);
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.agent-info h2 {
  margin-bottom: 10px;
  font-size: 24px;
  text-transform: none;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 30px;
  border: 1px solid rgba(141, 182, 201, .5);
  border-radius: 50%;
  color: var(--accent-2);
  font-weight: 900;
}

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

.agent-info p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .topbar {
    gap: 22px;
    min-height: 66px;
  }

  .brand img {
    height: 66px;
    max-width: 140px;
  }

  .brand span {
    margin-left: 78px;
    font-size: 18px;
  }

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

  .agent-card {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 44px;
  }
}
