:root {
  --surface: #fdf8f8;
  --text: #111111;
  --secondary: #444748;
  --hairline: rgba(196, 199, 199, 0.42);
  --max-width: 1540px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--surface);
  color: var(--text);
  font-family: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

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

.page-shell {
  width: 100%;
  max-width: 1600px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 96px 30px 56px;
}

.hero {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding-left: clamp(0px, 8.6vw, 132px);
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  white-space: nowrap;
}

.title-rule {
  width: 80px;
  height: 1px;
  margin-top: 24px;
  background: var(--text);
}

.hero p {
  margin: 40px 0 0;
  color: var(--secondary);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, var(--max-width));
  height: 344px;
  margin: 58px auto 0;
}

.service-item {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 90px 42px 52px;
  border-left: 1px solid var(--hairline);
  transition: background-color 300ms ease, border-color 300ms ease, transform 300ms ease;
}

.service-item:hover,
.service-item:focus-visible,
.service-item:focus-within {
  border-color: rgba(17, 17, 17, 0.86);
  background: #f1edec;
  outline: none;
  transform: translateY(-2px);
}

.service-item:hover .service-pip,
.service-item:focus-visible .service-pip,
.service-item:focus-within .service-pip,
.service-item:hover .service-action,
.service-item:focus-visible .service-action,
.service-item:focus-within .service-action {
  opacity: 1;
}

.service-item:hover .service-action,
.service-item:focus-visible .service-action,
.service-item:focus-within .service-action {
  transform: translateX(0);
}

.service-item h2 {
  margin: 0;
  color: #000000;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.service-item p {
  max-width: 390px;
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  word-break: keep-all;
}

.service-pip {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 300ms ease;
}

.service-action {
  position: absolute;
  bottom: 52px;
  left: 42px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0;
  outline-offset: 6px;
  transform: translateX(-10px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.service-action-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-action-lock svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.education-pip {
  background: #60a5fa;
}

.chemical-pip {
  background: #047857;
}

.trpg-pip {
  background: #4f46e5;
}


.visual-panel {
  position: relative;
  width: min(100%, var(--max-width));
  height: clamp(520px, 40.5vw, 624px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 4px;
  background: #090b0c;
}

.visual-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: grayscale(1) contrast(1.04);
  image-rendering: auto;
  transition: filter 700ms ease;
}

.visual-panel:hover img {
  filter: grayscale(0.15) contrast(1.08);
}

.visual-footer {
  position: absolute;
  right: 50px;
  bottom: 34px;
  left: 50px;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: rgba(253, 248, 248, 0.82);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
}

.visual-footer a {
  justify-self: end;
  border-bottom: 1px solid rgba(253, 248, 248, 0.42);
  color: rgba(253, 248, 248, 0.72);
  letter-spacing: 0.08em;
  transition: color 300ms ease, border-color 300ms ease;
}

.visual-footer a:hover {
  border-color: rgba(253, 248, 248, 0.9);
  color: var(--surface);
}

@media (max-width: 1180px) {
  .page-shell {
    padding-top: 72px;
  }

  .hero {
    padding-left: 0;
  }

  .hero p {
    white-space: normal;
  }

  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
  }

  .service-item {
    padding: 54px 28px;
  }

  .service-item h2 {
    font-size: 32px;
  }

  .service-item p {
    font-size: 18px;
  }
}

@media (min-width: 1181px) and (min-height: 1000px) {
  body {
    overflow-y: hidden;
  }

  .page-shell {
    height: 100vh;
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 48px 20px 32px;
  }

  .hero h1 {
    font-size: 42px;
    white-space: normal;
  }

  .hero p {
    font-size: 18px;
  }

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

  .service-item {
    min-height: 220px;
    border-top: 1px solid var(--hairline);
  }

  .visual-panel {
    height: 420px;
  }

  .visual-footer {
    right: 24px;
    left: 24px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .visual-footer span:nth-child(2),
  .visual-footer a {
    justify-self: start;
  }
}
