:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --panel: #fffdf7;
  --ink: #25312c;
  --muted: #687068;
  --line: #d8d2c3;
  --field: #52734d;
  --sea: #2e7280;
  --harvest: #b77b2a;
  --berry: #7d5a61;
  --shadow: 0 24px 60px rgba(37, 49, 44, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(46, 114, 128, 0.16) 0 28%, transparent 28%),
    linear-gradient(135deg, rgba(82, 115, 77, 0.16) 0 18%, transparent 18% 100%),
    linear-gradient(160deg, #fbfaf4 0%, var(--bg) 46%, #e8f0ed 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
}

.site-header {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0;
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #21342d;
  font-size: 5.4rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.intro {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
}

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

.service-card {
  position: relative;
  display: grid;
  grid-template-rows: 48% 1fr;
  aspect-ratio: 1 / 1;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(37, 49, 44, 0.08);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(46, 114, 128, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card:focus-visible {
  outline: 4px solid rgba(183, 123, 42, 0.28);
  outline-offset: 4px;
}

.service-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #e8e3d6;
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--field);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.card-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--field);
}

.service-card-passwords .card-kicker {
  color: var(--sea);
}

.service-card-passwords .card-kicker::before {
  background: var(--sea);
}

.service-card-drive .card-kicker {
  color: var(--harvest);
}

.service-card-drive .card-kicker::before {
  background: var(--harvest);
}

.service-card-photos .card-kicker {
  color: var(--berry);
}

.service-card-photos .card-kicker::before {
  background: var(--berry);
}

.card-title {
  color: #21342d;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.08;
}

.card-copy {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.card-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  color: var(--sea);
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.card-link::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(46, 114, 128, 0.86), rgba(37, 49, 44, 0.9)),
    linear-gradient(160deg, #fbfaf4 0%, var(--bg) 46%, #e8f0ed 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.loading-screen.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.loading-panel {
  display: grid;
  justify-items: center;
  width: min(100%, 360px);
  padding: 34px 28px;
  border: 1px solid rgba(255, 253, 247, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.loading-mark {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  align-items: end;
  gap: 7px;
  height: 42px;
  margin-bottom: 18px;
}

.loading-mark span {
  display: block;
  width: 16px;
  border-radius: 8px 8px 2px 2px;
  animation: loading-pulse 900ms ease-in-out infinite;
}

.loading-mark span:nth-child(1) {
  height: 24px;
  background: var(--field);
}

.loading-mark span:nth-child(2) {
  height: 36px;
  background: var(--harvest);
  animation-delay: 120ms;
}

.loading-mark span:nth-child(3) {
  height: 28px;
  background: var(--sea);
  animation-delay: 240ms;
}

.loading-kicker,
.loading-title,
.loading-copy {
  margin: 0;
}

.loading-kicker {
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.loading-title {
  margin-top: 10px;
  color: #21342d;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.loading-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

@keyframes loading-pulse {
  0%,
  100% {
    transform: scaleY(0.7);
    opacity: 0.62;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .loading-screen,
  .loading-mark span {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1080px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    aspect-ratio: auto;
    grid-template-rows: auto 1fr;
  }

  .service-card img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 540px);
    padding: 34px 0;
  }

  .site-header {
    margin-bottom: 24px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .intro {
    font-size: 1rem;
  }

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

  .card-body {
    padding: 20px;
  }

  .card-title {
    font-size: 1.35rem;
  }
}
