@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --gd-font-display: "Space Grotesk", sans-serif;
  --gd-font-body: "Inter", sans-serif;
  --gd-font-mono: "JetBrains Mono", monospace;

  /* Лесная палитра:
     хвойный — основной UI-акцент;
     болотный — вторичный акцент и hover;
     matrix — редкий цифровой маркер. */
  --gd-bg: #151b17;
  --gd-surface: rgba(30, 40, 34, 0.88);
  --gd-surface-strong: #26342c;

  --gd-text: #f1f3ed;
  --gd-text-secondary: #b2bbb2;
  --gd-text-muted: #7c887f;

  --gd-accent: #3f7857;
  --gd-accent-hover: #718c59;
  --gd-accent-secondary: #7f8954;

  --gd-accent-soft: rgba(63, 120, 87, 0.18);
  --gd-accent-border: rgba(85, 138, 102, 0.52);
  --gd-accent-glow: rgba(63, 120, 87, 0.30);
  --gd-accent-glow-soft: rgba(63, 120, 87, 0.13);

  --gd-matrix: #62f58a;
  --gd-matrix-soft: rgba(98, 245, 138, 0.16);
  --gd-matrix-glow: rgba(98, 245, 138, 0.26);

  --gd-border: rgba(225, 235, 226, 0.10);
  --gd-shadow: 0 18px 50px rgba(4, 10, 6, 0.22);

  --gd-header-height: 72px;
  --gd-gutter: clamp(22px, 1.7vw, 32px);
  --gd-radius: 12px;

  --gd-sidebar-panel-width: 330px;
  --gd-sidebar-handle-width: 46px;
  --gd-sidebar-closed-gap: 18px;
  --gd-scroll-duration: 1200ms;
  --gd-section-step-height: 30px;
}

html {
  scroll-behavior: auto !important;

  /* Firefox */
  scrollbar-width: none;

  /* Legacy Edge / IE */
  -ms-overflow-style: none;
}

/* Chromium, Safari, modern Edge */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.gd-page::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body,
.gd-page {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gd-page {
  min-height: 100%;
  display: block;
  height: auto;
  margin: 0;
  color: var(--gd-text);
  font-family: var(--gd-font-body);
  line-height: 1.5;
  background:
    linear-gradient(
      rgba(16, 24, 18, 0.52),
      rgba(16, 24, 18, 0.64)
    ),
    url("../images/background.png") center / cover fixed;

  background-color: var(--gd-bg);
}

.gd-page *,
.gd-page *::before,
.gd-page *::after {
  box-sizing: border-box;
}

.gd-page a {
  color: inherit;
}

.gd-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--gd-gutter);
}


.gd-screen {
  transition:
    opacity 300ms ease,
    filter 300ms ease;
}

.gd-page.gd-is-segment-scrolling .gd-screen:not(.is-scroll-target) {
  opacity: 0.94;
  filter: saturate(0.92);
}

.gd-page.gd-is-segment-scrolling .gd-screen.is-scroll-target {
  opacity: 1;
  filter: none;
}

.gd-screen {
  height: calc(100svh - var(--gd-header-height));
  min-height: calc(100svh - var(--gd-header-height));
  overflow: hidden;
}


.gd-side-nav {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 160;

  width: calc(
    var(--gd-sidebar-panel-width) +
    var(--gd-sidebar-handle-width)
  );

  display: grid;
  grid-template-columns:
    var(--gd-sidebar-panel-width)
    var(--gd-sidebar-handle-width);
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: saturate(0.72) brightness(0.88);

  transform:
    translate(
      calc(-1 * var(--gd-sidebar-panel-width)),
      -50%
    );

  transition:
    opacity 240ms ease,
    visibility 240ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 240ms ease;
}

.gd-side-nav.is-visible {
  opacity: 0.68;
  visibility: visible;
  pointer-events: auto;
}

.gd-side-nav.is-visible:hover,
.gd-side-nav.is-visible:focus-within,
.gd-side-nav.is-pinned-open {
  opacity: 1;
  filter: none;

  transform: translate(0, -50%);
}

.gd-side-nav__panel {
  width: var(--gd-sidebar-panel-width);
  padding: 27px 25px;

  border: 1px solid var(--gd-accent-border);
  border-left: 0;
  border-radius: 0 var(--gd-radius) var(--gd-radius) 0;

  /* При раскрытии фон полностью непрозрачный */
  background: #17231b;

  box-shadow:
    16px 18px 48px rgba(3, 9, 5, 0.42),
    0 0 28px var(--gd-accent-glow-soft);
}

.gd-side-nav__handle {
  width: var(--gd-sidebar-handle-width);
  min-width: var(--gd-sidebar-handle-width);
  height: 92px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 1px solid var(--gd-accent-border);
  border-left: 0;
  border-radius: 0 11px 11px 0;

  color: var(--gd-text-secondary);
  background: rgba(23, 35, 27, 0.66);
  box-shadow: 8px 10px 28px rgba(3, 9, 5, 0.18);
  backdrop-filter: blur(10px);

  font-family: var(--gd-font-mono);
  font-size: 1.35rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.gd-side-nav__handle span {
  display: block;
  transition: transform 320ms ease;
}

.gd-side-nav:hover .gd-side-nav__handle,
.gd-side-nav:focus-within .gd-side-nav__handle,
.gd-side-nav.is-pinned-open .gd-side-nav__handle {
  color: var(--gd-matrix);
  background: #17231b;
  box-shadow:
    8px 12px 34px rgba(3, 9, 5, 0.38),
    0 0 18px var(--gd-accent-glow);
}

.gd-side-nav:hover .gd-side-nav__handle span,
.gd-side-nav:focus-within .gd-side-nav__handle span,
.gd-side-nav.is-pinned-open .gd-side-nav__handle span {
  transform: rotate(180deg);
}

.gd-side-nav__title {
  display: block;
  margin: 0 0 19px;

  color: var(--gd-text-muted);
  font-family: var(--gd-font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gd-side-nav nav {
  display: grid;
  gap: 10px;
}

.gd-side-nav a {
  position: relative;

  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;

  min-height: 50px;
  padding: 10px 13px;

  border: 1px solid transparent;
  border-radius: 8px;

  color: var(--gd-text-muted);
  text-decoration: none;

  font-family: var(--gd-font-mono);

  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.gd-side-nav a span {
  color: inherit;
  font-family: inherit;
  font-size: 0.86rem;
}

.gd-side-nav a strong {
  overflow: visible;

  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;

  text-overflow: clip;
  white-space: nowrap;
}

.gd-side-nav a:hover {
  color: var(--gd-text);
  border-color: var(--gd-accent-border);
  background: var(--gd-accent-soft);
  transform: translateX(3px);
}

.gd-side-nav a.is-active {
  color: var(--gd-text);
  border-color: var(--gd-accent);
  background: var(--gd-accent-soft);

  box-shadow:
    0 0 0 1px var(--gd-accent-glow-soft),
    0 0 18px var(--gd-accent-glow);
}

.gd-side-nav a.is-active span {
  color: var(--gd-matrix);
  text-shadow: 0 0 8px var(--gd-matrix-glow);
}

/*
  Сетка учитывает только закрытую кнопку.
  Раскрытая панель находится поверх основного контента.
*/
.gd-screen--with-sidebar.gd-container {
  padding-left: calc(
    var(--gd-gutter) +
    var(--gd-sidebar-handle-width) +
    var(--gd-sidebar-closed-gap)
  );
}

.gd-screen--with-sidebar > .gd-container {
  padding-left: calc(
    var(--gd-gutter) +
    var(--gd-sidebar-handle-width) +
    var(--gd-sidebar-closed-gap)
  );
}

.gd-screen--with-sidebar .gd-project-rail {
  padding-left: calc(
    var(--gd-gutter) +
    var(--gd-sidebar-handle-width) +
    var(--gd-sidebar-closed-gap)
  );
}

.gd-page.gd-is-segment-scrolling {
  cursor: default;
}

/* ---------------------------------------------------------------
   Полосы перехода между полноэкранными секциями
   --------------------------------------------------------------- */

.gd-screen {
  position: relative;
}

.gd-section-step {
  position: absolute;
  left: var(--gd-gutter);
  right: var(--gd-gutter);
  z-index: 70;

  height: var(--gd-section-step-height);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;

  color: var(--gd-text-muted);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(63, 120, 87, 0.05) 18%,
      rgba(63, 120, 87, 0.08) 50%,
      rgba(63, 120, 87, 0.05) 82%,
      transparent
    );

  font-family: var(--gd-font-mono);
  font-size: 1.15rem;

  cursor: pointer;
  opacity: 0.58;

  transition:
    opacity 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    text-shadow 180ms ease;
}

.gd-screen--with-sidebar .gd-section-step {
  left: calc(
    var(--gd-gutter) +
    var(--gd-sidebar-handle-width) +
    var(--gd-sidebar-closed-gap)
  );
}

.gd-section-step--up {
  top: 0;
}

.gd-section-step--down {
  bottom: 0;
}

.gd-section-step:hover,
.gd-section-step:focus-visible {
  opacity: 1;
  color: var(--gd-matrix);

  border-color: var(--gd-accent-border);
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gd-accent-soft) 18%,
      var(--gd-matrix-soft) 50%,
      var(--gd-accent-soft) 82%,
      transparent
    );

  text-shadow: 0 0 10px var(--gd-matrix-glow);
}

.gd-section-step:disabled {
  visibility: hidden;
  pointer-events: none;
}

/*
  У секций уже были внутренние отступы около 24–28 px.
  Поднимаем их немного, чтобы новые полосы ничего не перекрывали.
*/
.gd-hero,
.gd-section,
.gd-section--projects {
  padding-top: max(42px, calc(var(--gd-section-step-height) + 10px));
  padding-bottom: max(42px, calc(var(--gd-section-step-height) + 10px));
}

.gd-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--gd-bg);
  background: var(--gd-text);
  transform: translateY(-150%);
}

.gd-skip-link:focus {
  transform: translateY(0);
}

.gd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--gd-header-height);
  border-bottom: 1px solid var(--gd-border);
  background: rgba(20, 29, 24, 0.88);
  backdrop-filter: blur(12px);
}

.gd-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.gd-header__brand {
  margin-right: auto;

  color: var(--gd-text-muted);
  font-family: var(--gd-font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;

  opacity: 0.76;

  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.gd-header__brand:hover,
.gd-header__brand:focus-visible {
  color: var(--gd-text-secondary);
  opacity: 1;
}

.gd-header__nav {
  display: flex;
  gap: 22px;
}

.gd-header__nav a,
.gd-footer a {
  color: var(--gd-text-secondary);
  text-decoration: none;
  transition: color 180ms ease;
}

.gd-header__nav a:hover,
.gd-footer a:hover {
  color: var(--gd-text);
}

.gd-main {
  overflow: visible;
}

.gd-hero {
  display: grid;
  grid-template-columns:
    minmax(260px, 0.46fr)
    minmax(0, 1.54fr);
  align-items: stretch;
  gap: clamp(24px, 2.2vw, 42px);
  padding-block: 28px;
}

.gd-eyebrow,
.gd-section-index,
.gd-label,
.gd-project-card__type,
.gd-project-card__stack,
.gd-skill-card__cases {
  font-family: var(--gd-font-mono);
  letter-spacing: 0.05em;
}

.gd-eyebrow,
.gd-label,
.gd-project-card__type {
  color: var(--gd-accent-hover);
  text-transform: uppercase;
}

.gd-section-index {
  color: var(--gd-matrix);
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--gd-matrix-glow);
}

.gd-hero__stage {
  position: relative;

  min-width: 0;
  min-height: clamp(500px, 64vh, 650px);

  display: grid;
  grid-template-columns:
    minmax(500px, 1.22fr)
    minmax(360px, 0.78fr);
  align-items: stretch;

  overflow: hidden;

  border: 1px solid rgba(85, 138, 102, 0.40);
  border-radius: 14px;

  background:
    linear-gradient(
      108deg,
      rgba(24, 37, 28, 0.55),
      rgba(14, 23, 17, 0.30)
    );

  box-shadow:
    inset 0 0 38px rgba(4, 11, 6, 0.22),
    0 18px 46px rgba(3, 9, 5, 0.14);
}

.gd-hero__stage::before,
.gd-hero__stage::after {
  content: "";
  position: absolute;
  z-index: 3;

  width: 54px;
  height: 54px;

  pointer-events: none;
}

.gd-hero__stage::before {
  top: 12px;
  left: 12px;

  border-top: 1px solid var(--gd-accent-hover);
  border-left: 1px solid var(--gd-accent-hover);
}

.gd-hero__stage::after {
  right: 12px;
  bottom: 12px;

  border-right: 1px solid var(--gd-accent-hover);
  border-bottom: 1px solid var(--gd-accent-hover);
}

.gd-hero__content {
  position: relative;
  z-index: 2;

  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding:
    clamp(34px, 3.2vw, 56px)
    clamp(32px, 3.6vw, 64px);
}

.gd-hero .gd-eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 2px;

  color: var(--gd-accent-hover);

  font-size: clamp(1.08rem, 1.18vw, 1.34rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.055em;

  text-wrap: balance;
}

.gd-hero h1 {
  max-width: 19ch;
  margin: 14px 0 20px;

  font-family: var(--gd-font-display);
  font-size: clamp(2rem, 2.55vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.gd-hero__lead {
  max-width: 68ch;
  margin: 0;

  color: var(--gd-text-secondary);
  font-size: clamp(0.98rem, 1.02vw, 1.1rem);
}

.gd-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 23px;
}

.gd-hero__meta span {
  padding: 6px 10px;

  border: 1px solid var(--gd-border);
  border-radius: 999px;

  color: var(--gd-text-secondary);
  background: rgba(26, 38, 30, 0.66);

  font-family: var(--gd-font-mono);
  font-size: 0.7rem;
}

.gd-profile-card,
.gd-skill-card,
.gd-info-card,
.gd-tool-grid article {
  background: var(--gd-surface);
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius);
  box-shadow: var(--gd-shadow);
}

.gd-hero__profile {
  align-self: stretch;
  width: 100%;
  min-height: 100%;

  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-items: stretch;

  padding-block: 0;
}

.gd-profile-card {
  padding: 0 22px;
}

.gd-profile-card__item {
  min-height: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-block: clamp(14px, 1.45vw, 22px);

  border-bottom: 1px solid var(--gd-border);
}

.gd-profile-card__item:last-child {
  border-bottom: 0;
}

.gd-profile-card strong {
  display: block;
  margin-top: 6px;
  line-height: 1.32;
}

.gd-hero__visual {
  position: relative;

  align-self: stretch;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  overflow: hidden;

  border-left: 1px solid rgba(85, 138, 102, 0.20);
}

.gd-hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 0 0;

  z-index: 0;

  background:
    radial-gradient(
      circle at 58% 46%,
      rgba(63, 120, 87, 0.18),
      transparent 62%
    );
}

.gd-hero__visual::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: 0;

  z-index: 2;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(98, 245, 138, 0.36),
      transparent
    );

  box-shadow: 0 0 14px rgba(63, 120, 87, 0.30);
}

.gd-hero__avatar {
  position: relative;
  z-index: 1;

  display: block;
  flex: none;

  width: auto;
  height: 96%;

  max-width: none;
  max-height: none;

  transform: translateX(5%);
}

.gd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 26px;
}

.gd-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--gd-accent);
  border-radius: 8px;
  color: #fff;
  background: var(--gd-accent);
  font-family: var(--gd-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.gd-button:hover {
  transform: translateY(-2px);
  background: var(--gd-accent-hover);
  border-color: var(--gd-accent-hover);
}

.gd-button--ghost {
  color: var(--gd-text);
  background: transparent;
  border-color: var(--gd-border);
}

.gd-button--ghost:hover {
  background: var(--gd-accent-soft);
  border-color: var(--gd-accent-border);
}

.gd-button--small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.68rem;
}

.gd-button--disabled {
  color: var(--gd-text-muted);
  background: transparent;
  border-color: var(--gd-border);
  cursor: default;
}

.gd-button--disabled:hover {
  transform: none;
  color: var(--gd-text-muted);
  background: transparent;
  border-color: var(--gd-border);
}

.gd-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 26px;
}

.gd-section__header {
  max-width: 980px;
  margin-bottom: 28px;
}

.gd-section__header--compact {
  margin-bottom: 20px;
}

.gd-section__header--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.gd-section__header h2,
.gd-contact h2 {
  margin: 7px 0 0;
  font-family: var(--gd-font-display);
  font-size: clamp(1.55rem, 2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.gd-section-index {
  margin: 0;
  font-size: 0.72rem;
}

.gd-skill-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gd-skill-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 1.7vw, 26px);
}

.gd-skill-card__index {
  color: var(--gd-accent-secondary);
  font-family: var(--gd-font-mono);
}

.gd-skill-card h3,
.gd-info-card h3 {
  margin: 11px 0 7px;
  font-family: var(--gd-font-display);
  font-size: clamp(1.16rem, 1.34vw, 1.5rem);
}

.gd-skill-card p,
.gd-info-card p,
.gd-tool-grid p {
  margin-top: 0;
  color: var(--gd-text-secondary);
}

.gd-skill-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;

  gap: 12px 26px;
  margin: 20px 0 18px;
  padding-left: 20px;

  font-size: 0.94rem;
  line-height: 1.4;
}

.gd-skill-card li {
  padding-left: 2px;
}

.gd-skill-card__cases {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--gd-border);
  font-size: 0.72rem;
}

.gd-skill-card__cases span {
  margin-right: 2px;
  color: var(--gd-text-muted);
  text-transform: uppercase;
}

.gd-skill-card__cases a {
  display: inline-flex;
  align-items: center;

  min-height: 30px;
  padding: 5px 10px;

  border: 1px solid var(--gd-accent);
  border-radius: 7px;

  color: var(--gd-matrix);
  background: transparent;

  font-weight: 600;
  text-decoration: none;

  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.gd-skill-card__cases a:hover,
.gd-skill-card__cases a:focus-visible {
  transform: translateY(-1px);

  color: var(--gd-text);
  background: var(--gd-matrix-soft);
  border-color: var(--gd-matrix);

  box-shadow: 0 0 10px var(--gd-matrix-glow);
}

.gd-section--projects {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 24px;
}

.gd-project-controls {
  display: flex;
  gap: 9px;
}

.gd-rail-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gd-border);
  border-radius: 8px;
  color: var(--gd-text);
  background: rgba(34, 41, 49, 0.8);
  font-size: 1.1rem;
  cursor: pointer;
}

.gd-project-rail {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(330px, 27vw, 500px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;

  /* Полоса скрыта, но горизонтальная прокрутка сохраняется */
  scrollbar-width: none;
  -ms-overflow-style: none;

  padding: 6px var(--gd-gutter) 18px;
}

.gd-project-rail::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.gd-project-card {
  position: relative;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: end;
  overflow: hidden;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius);
  background-color: var(--gd-surface-strong);
  background-position: center;
  background-size: cover;
  box-shadow: var(--gd-shadow);
  scroll-snap-align: start;
  isolation: isolate;
}

.gd-project-card--legend {
  background-image: url("../images/projects/project-legend.jpg");
}

.gd-project-card--agents {
  background-image: url("../images/projects/tactical-agents.jpg");
}

.gd-project-card--bonfire {
  background-image: url("../images/projects/project-bonfire.jpg");
}

.gd-project-card--maze {
  background-image: url("../images/projects/project-maze.jpg");
}

.gd-project-card--balance {
  background-image: url("../images/projects/balance-craft.jpg");
}

.gd-project-card__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 16, 21, 0.98) 0%, rgba(12, 16, 21, 0.82) 48%, rgba(12, 16, 21, 0.18) 100%),
    linear-gradient(
      rgba(44, 92, 62, 0.08),
      rgba(92, 105, 61, 0.06)
    );
}

.gd-project-card__content {
  width: 100%;
  padding: clamp(20px, 1.8vw, 28px);
}

.gd-project-card__type,
.gd-project-card__stack {
  font-size: 0.68rem;
}

.gd-project-card h3 {
  margin: 8px 0;
  font-family: var(--gd-font-display);
  font-size: clamp(1.4rem, 1.8vw, 2rem);
}

.gd-project-card p {
  max-width: 54ch;
  margin-block: 7px;
  color: var(--gd-text-secondary);
}

.gd-project-card__stack {
  color: var(--gd-text-muted) !important;
}

.gd-project-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--gd-accent-hover);
  font-family: var(--gd-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
}

.gd-copy {
  max-width: 84ch;
  color: var(--gd-text-secondary);
  font-size: clamp(1rem, 1.05vw, 1.1rem);
}

.gd-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  padding: 0;
  list-style: none;
}

.gd-workflow li {
  min-height: 205px;
  padding: 22px;
  border: 1px solid var(--gd-border);
  border-radius: var(--gd-radius);
  background: rgba(34, 41, 49, 0.68);
}

.gd-workflow span {
  color: var(--gd-accent);
  font-family: var(--gd-font-mono);
}

.gd-workflow strong {
  display: block;
  margin-top: 21px;
  font-family: var(--gd-font-display);
  font-size: 1.05rem;
}

.gd-workflow p {
  color: var(--gd-text-secondary);
  font-size: 0.88rem;
}

.gd-tool-grid,
.gd-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gd-tool-grid article,
.gd-info-card {
  min-height: 175px;
  padding: 25px;
}

.gd-contact-screen {
  display: flex;
  align-items: center;
}

.gd-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.gd-contact > div:first-child {
  padding: 38px;
  border: 1px solid var(--gd-accent-border);
  border-radius: var(--gd-radius);
  background:
    linear-gradient(120deg, var(--gd-accent-soft), rgba(29, 40, 33, 0.82));
}

.gd-contact p {
  max-width: 66ch;
  color: var(--gd-text-secondary);
}

.gd-actions--contact {
  justify-content: flex-end;
  margin-top: 0;
}

.gd-footer {
  border-top: 1px solid var(--gd-border);
  color: var(--gd-text-muted);
}

.gd-footer__inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gd-page :focus-visible {
  outline: 2px solid var(--gd-accent-hover);
  outline-offset: 4px;
}


/* =================================================================
   FINAL HARD-SKILLS CARD LAYOUT
   Расположен после прежних правил, чтобы CSS-каскад их не перебивал.
   ================================================================= */

.gd-skill-card {
  min-height: 0;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows:
    auto
    minmax(0, 1fr)
    auto;

  column-gap: 14px;
  row-gap: 10px;

  padding: clamp(18px, 1.7vw, 26px);
}

.gd-skill-card__index {
  grid-column: 1;
  grid-row: 1;

  align-self: baseline;

  color: var(--gd-accent-secondary);
  font-family: var(--gd-font-mono);
  font-size: 0.94rem;
  line-height: 1.15;
}

.gd-skill-card h3 {
  grid-column: 2;
  grid-row: 1;

  align-self: baseline;
  margin: 0;

  font-family: var(--gd-font-display);
  font-size: clamp(1.24rem, 1.42vw, 1.58rem);
  font-weight: 600;
  line-height: 1.15;
}

.gd-skill-card h3::after {
  content: "";

  display: block;

  width: 64px;
  height: 1px;
  margin-top: 13px;

  background: var(--gd-accent-border);
}

.gd-skill-card ul {
  grid-column: 1 / -1;
  grid-row: 2;

  align-self: stretch;
  align-content: center;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);

  column-gap: 28px;
  row-gap: 22px;

  margin: 4px 0;
  padding-left: 0;

  list-style: none;

  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.32;
}

.gd-skill-card li {
  position: relative;

  min-width: 0;
  padding-left: 19px;
}

.gd-skill-card li::before {
  content: "›";

  position: absolute;
  top: -0.02em;
  left: 0;

  color: var(--gd-accent-secondary);

  font-family: var(--gd-font-mono);
  font-size: 1.05em;
  font-weight: 600;
}

.gd-skill-card__cases {
  grid-column: 1 / -1;
  grid-row: 3;

  margin-top: 0;
}

@media (max-width: 1250px) {
  .gd-hero {
    grid-template-columns:
      minmax(240px, 0.44fr)
      minmax(0, 1.56fr);
  }

  .gd-hero__stage {
    grid-template-columns:
      minmax(440px, 1.16fr)
      minmax(310px, 0.84fr);
  }

  .gd-header__nav {
    display: none;
  }
}

@media (max-width: 960px), (max-height: 760px) {

  .gd-side-nav {
    display: none;
  }

  .gd-screen--with-sidebar.gd-container,
  .gd-screen--with-sidebar > .gd-container,
  .gd-screen--with-sidebar .gd-project-rail {
    padding-left: var(--gd-gutter);
  }

  .gd-section-step,
  .gd-screen--with-sidebar .gd-section-step {
    left: var(--gd-gutter);
    right: var(--gd-gutter);
  }
  .gd-screen {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .gd-hero {
    grid-template-columns: 1fr;
    padding-block: 54px;
  }

  .gd-hero__stage {
    order: 1;

    min-height: 0;

    grid-template-columns: 1fr;
  }

  .gd-hero__profile {
    order: 2;
  }

  .gd-hero__content {
    padding: 34px 28px;
  }

  .gd-hero__visual {
    min-height: 480px;

    border-top: 1px solid rgba(85, 138, 102, 0.20);
    border-left: 0;
  }

  .gd-hero__avatar {
    width: 100%;
    height: 480px;
    max-height: 480px;

    object-position: center bottom;
    transform: none;
  }

  .gd-section {
    padding-block: 68px;
  }

  .gd-skill-grid,
  .gd-tool-grid,
  .gd-two-column {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gd-workflow {
    grid-template-columns: 1fr;
  }

  .gd-project-rail {
    min-height: 520px;
    grid-auto-columns: minmax(300px, 78vw);
  }

  .gd-contact {
    grid-template-columns: 1fr;
  }

  .gd-actions--contact {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --gd-header-height: 64px;
    --gd-gutter: 16px;
  }

  .gd-header .gd-button {
    display: none;
  }

  .gd-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .gd-section__header--row {
    align-items: center;
  }

  .gd-project-rail {
    grid-auto-columns: 88vw;
  }

  .gd-skill-card ul {
    grid-template-columns: 1fr;
  }

  .gd-contact > div:first-child {
    padding: 26px 21px;
  }

  .gd-footer__inner {
    min-height: 120px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

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


/* =================================================================
   FULLSCREEN PROJECT CAROUSEL
   ================================================================= */

.gd-section--projects {
  position: relative;

  display: block;
  justify-content: initial;

  padding: 0 !important;
  overflow: hidden;
}

.gd-project-carousel {
  position: relative;

  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  padding-left: calc(
    var(--gd-sidebar-handle-width) +
    var(--gd-sidebar-closed-gap)
  );

  isolation: isolate;
}

.gd-project-viewport {
  position: relative;
  z-index: 1;

  width: var(--gd-carousel-width, min(82vw, 1600px));
  height: var(--gd-carousel-height, auto);
  aspect-ratio: 16 / 9;

  overflow: hidden;

  border: 1px solid var(--gd-accent-border);
  border-radius: var(--gd-radius);

  background: var(--gd-surface-strong);
  box-shadow:
    0 24px 66px rgba(3, 9, 5, 0.36),
    0 0 0 1px rgba(98, 245, 138, 0.035);

  outline: none;
}

.gd-project-viewport:focus-visible {
  border-color: var(--gd-matrix);
  box-shadow:
    0 24px 66px rgba(3, 9, 5, 0.36),
    0 0 0 2px var(--gd-matrix-soft),
    0 0 20px var(--gd-matrix-glow);
}

.gd-project-track {
  width: 100%;
  height: 100%;

  display: flex;
  gap: 0;

  will-change: transform;
  transform: translate3d(-100%, 0, 0);

  transition:
    transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gd-project-track.is-jumping {
  transition: none;
}

.gd-project-card {
  position: relative;

  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;

  display: flex;
  align-items: flex-end;

  overflow: hidden;

  border: 0;
  border-radius: 0;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  box-shadow: none;
  scroll-snap-align: none;

  isolation: isolate;
}

.gd-project-card__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(8, 14, 10, 0.96) 0%,
      rgba(8, 14, 10, 0.78) 34%,
      rgba(8, 14, 10, 0.22) 68%,
      rgba(8, 14, 10, 0.08) 100%
    ),
    linear-gradient(
      to top,
      rgba(8, 13, 10, 0.94) 0%,
      rgba(8, 13, 10, 0.34) 44%,
      rgba(8, 13, 10, 0.16) 100%
    );
}

.gd-project-card__content {
  width: min(720px, 62%);
  padding:
    clamp(30px, 4vw, 68px)
    clamp(28px, 4.2vw, 72px)
    clamp(54px, 5vw, 82px);
}

.gd-project-card__type {
  margin: 0;

  color: var(--gd-matrix);
  text-shadow: 0 0 10px var(--gd-matrix-glow);
}

.gd-project-card h3 {
  margin: 10px 0 12px;

  font-size: clamp(2rem, 3.35vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.gd-project-card p {
  max-width: 58ch;
  margin-block: 9px;

  font-size: clamp(0.92rem, 1.05vw, 1.12rem);
  line-height: 1.48;
}

.gd-project-card__stack {
  margin-top: 17px !important;
}

.gd-project-card a {
  margin-top: 14px;

  color: var(--gd-matrix);

  font-size: 0.78rem;
  text-shadow: 0 0 8px var(--gd-matrix-glow);

  transition:
    color 180ms ease,
    transform 180ms ease,
    text-shadow 180ms ease;
}

.gd-project-card a:hover,
.gd-project-card a:focus-visible {
  color: var(--gd-text);
  transform: translateX(4px);
  text-shadow: 0 0 12px var(--gd-matrix-glow);
}

.gd-project-heading {
  position: absolute;
  top: clamp(28px, 4vh, 48px);
  left: calc(
    var(--gd-sidebar-handle-width) +
    var(--gd-sidebar-closed-gap) +
    var(--gd-gutter) +
    clamp(26px, 3vw, 52px)
  );
  z-index: 5;

  pointer-events: none;
}

.gd-project-heading::before {
  content: "";

  position: absolute;
  inset: -18px -30px -22px -24px;
  z-index: -1;

  background:
    radial-gradient(
      ellipse at left top,
      rgba(7, 13, 9, 0.88),
      rgba(7, 13, 9, 0.42) 54%,
      transparent 76%
    );
}

.gd-project-heading h2 {
  margin: 7px 0 0;

  font-family: var(--gd-font-display);
  font-size: clamp(1.75rem, 2.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.gd-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 6;

  width: clamp(46px, 3.4vw, 62px);
  height: clamp(70px, 8vh, 104px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 1px solid var(--gd-accent-border);
  border-radius: 11px;

  color: var(--gd-text-secondary);
  background: rgba(17, 29, 21, 0.68);

  box-shadow:
    0 12px 34px rgba(3, 9, 5, 0.25);

  backdrop-filter: blur(12px);

  font-family: var(--gd-font-mono);
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
  line-height: 1;

  cursor: pointer;
  opacity: 0.72;

  transform: translateY(-50%);

  transition:
    opacity 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.gd-carousel-button--prev {
  left: calc(
    var(--gd-sidebar-handle-width) +
    var(--gd-sidebar-closed-gap) +
    var(--gd-gutter)
  );
}

.gd-carousel-button--next {
  right: var(--gd-gutter);
}

.gd-carousel-button:hover,
.gd-carousel-button:focus-visible {
  opacity: 1;

  color: var(--gd-matrix);
  border-color: var(--gd-matrix);
  background: rgba(17, 29, 21, 0.96);

  box-shadow:
    0 12px 34px rgba(3, 9, 5, 0.34),
    0 0 18px var(--gd-matrix-glow);
}

.gd-carousel-button--prev:hover,
.gd-carousel-button--prev:focus-visible {
  transform: translate(-3px, -50%);
}

.gd-carousel-button--next:hover,
.gd-carousel-button--next:focus-visible {
  transform: translate(3px, -50%);
}

.gd-project-pagination {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 3.6vh, 38px);
  z-index: 7;

  display: flex;
  align-items: center;
  gap: 11px;

  padding: 8px 13px;

  border: 1px solid rgba(225, 235, 226, 0.08);
  border-radius: 999px;

  background: rgba(12, 22, 16, 0.72);
  backdrop-filter: blur(10px);

  transform: translateX(
    calc(
      -50% +
      (var(--gd-sidebar-handle-width) + var(--gd-sidebar-closed-gap)) / 2
    )
  );
}

.gd-project-dot {
  width: 9px;
  height: 9px;

  padding: 0;

  border: 1px solid var(--gd-text-muted);
  border-radius: 50%;

  background: transparent;

  cursor: pointer;

  transition:
    width 220ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.gd-project-dot:hover,
.gd-project-dot:focus-visible {
  border-color: var(--gd-matrix);
}

.gd-project-dot.is-active {
  width: 26px;

  border-color: var(--gd-matrix);
  border-radius: 999px;

  background: var(--gd-matrix);

  box-shadow: 0 0 12px var(--gd-matrix-glow);
}

.gd-carousel-status {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);

  white-space: nowrap;
}

.gd-project-carousel.is-paused .gd-project-pagination {
  border-color: var(--gd-accent-border);
}

/* Small screens keep 16:9, but reduce the amount of text. */
@media (max-width: 960px), (max-height: 760px) {
  .gd-section--projects {
    min-height: auto;
    padding: 54px var(--gd-gutter) !important;
  }

  .gd-project-carousel {
    height: auto;
    min-height: 0;

    padding-left: 0;
  }

  .gd-project-viewport {
    width: 100% !important;
    height: auto !important;
  }

  .gd-project-heading {
    top: 18px;
    left: 24px;
  }

  .gd-carousel-button {
    width: 42px;
    height: 70px;
  }

  .gd-carousel-button--prev {
    left: 10px;
  }

  .gd-carousel-button--next {
    right: 10px;
  }

  .gd-project-pagination {
    bottom: 15px;
    transform: translateX(-50%);
  }

  .gd-project-card__content {
    width: min(78%, 620px);
    padding: 24px 62px 48px;
  }

  .gd-project-card h3 {
    font-size: clamp(1.55rem, 5vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .gd-section--projects {
    padding-inline: 0 !important;
  }

  .gd-project-viewport {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .gd-project-heading {
    top: 12px;
    left: 18px;
  }

  .gd-project-heading h2 {
    font-size: 1.45rem;
  }

  .gd-project-card__content {
    width: 78%;
    padding: 18px 48px 38px 18px;
  }

  .gd-project-card__content > p:not(
    .gd-project-card__type,
    .gd-project-card__stack
  ) {
    display: none;
  }

  .gd-project-card__stack {
    display: none;
  }

  .gd-project-card h3 {
    margin-block: 6px;
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .gd-project-card a {
    margin-top: 5px;
  }

  .gd-carousel-button {
    width: 36px;
    height: 56px;
    border-radius: 8px;
  }

  .gd-project-dot {
    width: 8px;
    height: 8px;
  }

  .gd-project-dot.is-active {
    width: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gd-project-track {
    transition-duration: 1ms;
  }
}


/* =================================================================
   PROJECT CAROUSEL V2
   Full-bleed slide, side previews, borderless navigation
   ================================================================= */

.gd-section--projects {
  background:
    linear-gradient(
      90deg,
      rgba(8, 15, 10, 0.74),
      transparent 8%,
      transparent 92%,
      rgba(8, 15, 10, 0.74)
    );
}

.gd-project-carousel {
  padding-left: 0;
  overflow: hidden;
}

/*
  The viewport itself is deliberately borderless and allows the
  neighboring slides to remain visible outside the active 16:9 frame.
*/
.gd-project-viewport {
  width: var(--gd-carousel-width, calc(100vw - 140px));
  height: var(--gd-carousel-height, auto);

  overflow: visible;

  border: 0;
  border-radius: 0;

  background: transparent;
  box-shadow: none;
}

.gd-project-viewport:focus-visible {
  border: 0;
  box-shadow: none;
}

.gd-project-track {
  gap: 0;
}

.gd-project-card {
  overflow: hidden;

  border: 0;
  border-radius: 0;

  opacity: 0.34;
  filter:
    brightness(0.46)
    saturate(0.66);

  transform: scale(0.985);

  transition:
    opacity 520ms ease,
    filter 520ms ease,
    transform 520ms ease;
}

.gd-project-card.is-active {
  z-index: 2;

  opacity: 1;
  filter: none;

  transform: scale(1);
}

.gd-project-card__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(8, 14, 10, 0.95) 0%,
      rgba(8, 14, 10, 0.73) 32%,
      rgba(8, 14, 10, 0.18) 66%,
      rgba(8, 14, 10, 0.04) 100%
    ),
    linear-gradient(
      to top,
      rgba(8, 13, 10, 0.91) 0%,
      rgba(8, 13, 10, 0.30) 42%,
      rgba(8, 13, 10, 0.10) 100%
    );
}

.gd-project-card__content {
  width: min(760px, 58%);
  padding:
    clamp(44px, 5.3vh, 76px)
    clamp(40px, 5vw, 84px)
    clamp(58px, 7vh, 96px);
}

/*
  Only the title is the project link now.
*/
.gd-project-card h3 {
  margin: 10px 0 12px;
}

.gd-project-card__title-link {
  display: inline-block;

  color: var(--gd-text);
  text-decoration: none;

  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    transform 180ms ease;
}

.gd-project-card__title-link:hover,
.gd-project-card__title-link:focus-visible {
  color: var(--gd-matrix);

  text-shadow:
    0 0 12px var(--gd-matrix-glow),
    0 0 24px rgba(98, 245, 138, 0.10);

  transform: translateX(4px);
}

/*
  Borderless side navigation, visually matching the page's
  full-width up/down section controls.
*/
.gd-carousel-button {
  top: 50%;
  z-index: 8;

  width: clamp(62px, 5vw, 88px);
  height: clamp(150px, 24vh, 240px);

  border: 0;
  border-radius: 0;

  color: var(--gd-text-muted);
  background: transparent;

  box-shadow: none;
  backdrop-filter: none;

  opacity: 0.64;

  transform: translateY(-50%);
}

.gd-carousel-button::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  opacity: 0.72;

  transition:
    opacity 180ms ease,
    background-color 180ms ease;
}

.gd-carousel-button--prev {
  left: 0;
}

.gd-carousel-button--next {
  right: 0;
}

.gd-carousel-button--prev::before {
  background:
    linear-gradient(
      90deg,
      rgba(11, 23, 15, 0.82),
      rgba(63, 120, 87, 0.10) 58%,
      transparent
    );
}

.gd-carousel-button--next::before {
  background:
    linear-gradient(
      270deg,
      rgba(11, 23, 15, 0.82),
      rgba(63, 120, 87, 0.10) 58%,
      transparent
    );
}

.gd-carousel-button::after {
  content: "";

  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gd-accent-border),
      transparent
    );

  opacity: 0.66;
}

.gd-carousel-button:hover,
.gd-carousel-button:focus-visible {
  opacity: 1;

  color: var(--gd-matrix);
  border: 0;
  background: transparent;

  box-shadow: none;
  text-shadow: 0 0 13px var(--gd-matrix-glow);
}

.gd-carousel-button:hover::before,
.gd-carousel-button:focus-visible::before {
  opacity: 1;
}

.gd-carousel-button--prev:hover,
.gd-carousel-button--prev:focus-visible {
  transform: translate(-4px, -50%);
}

.gd-carousel-button--next:hover,
.gd-carousel-button--next:focus-visible {
  transform: translate(4px, -50%);
}

.gd-project-heading {
  left: clamp(88px, 7vw, 128px);
}

.gd-project-pagination {
  transform: translateX(-50%);
}

/*
  The side preview is produced by the viewport being narrower than
  the section, while overflow remains visible. The active slide stays
  16:9; the neighboring slides are dimmed by default.
*/
@media (min-width: 961px) and (min-height: 761px) {
  .gd-project-viewport {
    max-width: calc(100vw - 140px);
    max-height: calc(100% - 2px);
  }
}

@media (max-width: 960px), (max-height: 760px) {
  .gd-project-carousel {
    overflow: hidden;
  }

  .gd-project-viewport {
    overflow: hidden;
  }

  .gd-project-card {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .gd-project-heading {
    left: 24px;
  }

  .gd-carousel-button {
    width: 44px;
    height: 100px;
  }
}

@media (max-width: 640px) {
  .gd-carousel-button {
    width: 36px;
    height: 78px;
  }

  .gd-project-card__content {
    width: 82%;
    padding: 18px 48px 38px 18px;
  }
}


/* =================================================================
   EDGE SECTION DOT NAVIGATION
   ================================================================= */

:root {
  --gd-section-nav-width: 248px;
  --gd-section-nav-strip: 36px;
}

.gd-side-nav {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 170;

  width: var(--gd-section-nav-width);
  height: auto;

  display: block;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: none;

  transform: translateY(-50%) !important;

  transition:
    opacity 220ms ease,
    visibility 220ms ease;
}

.gd-side-nav.is-visible {
  opacity: 0.78;
  visibility: visible;
  pointer-events: none;
}

.gd-side-nav.is-visible:hover,
.gd-side-nav.is-visible:focus-within {
  opacity: 1;
  filter: none;
  transform: translateY(-50%) !important;
}

.gd-side-nav__panel {
  position: relative;

  width: var(--gd-section-nav-width);

  display: grid;
  gap: 6px;

  padding: 14px 7px 14px 0;

  border: 0;
  border-radius: 0 12px 12px 0;

  background: transparent;
  box-shadow: none;

  pointer-events: auto;

  transform:
    translateX(
      calc(-100% + var(--gd-section-nav-strip))
    );

  transition:
    transform 330ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.gd-side-nav__panel::after {
  content: "";

  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;

  width: var(--gd-section-nav-strip);

  border-radius: 0 10px 10px 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(12, 23, 16, 0.46)
    );

  pointer-events: none;
}

.gd-side-nav__panel:hover,
.gd-side-nav__panel:focus-within {
  background: #17231b;

  box-shadow:
    14px 18px 42px rgba(3, 9, 5, 0.40),
    0 0 24px var(--gd-accent-glow-soft);

  transform: translateX(0);
}

.gd-side-nav a {
  position: relative;
  z-index: 1;

  min-height: 38px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;

  padding: 6px 4px 6px 17px;

  border: 0;
  border-radius: 7px;

  color: var(--gd-text-muted);
  background: transparent;

  font-family: var(--gd-font-mono);
  text-decoration: none;

  transition:
    color 170ms ease,
    background-color 170ms ease;
}

.gd-side-nav a:hover {
  color: var(--gd-text);
  border: 0;
  background: var(--gd-accent-soft);
  transform: none;
}

.gd-side-nav a strong {
  min-width: 0;
  overflow: visible;

  opacity: 0;

  font-family: var(--gd-font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-overflow: clip;
  white-space: nowrap;

  transform: translateX(-8px);

  transition:
    opacity 180ms ease 40ms,
    transform 220ms ease 40ms;
}

.gd-side-nav__panel:hover a strong,
.gd-side-nav__panel:focus-within a strong {
  opacity: 1;
  transform: translateX(0);
}

.gd-side-nav__marker {
  justify-self: center;

  width: 9px;
  height: 9px;

  display: block;

  border: 1px solid rgba(235, 242, 236, 0.78);
  border-radius: 50%;

  background: transparent;

  box-shadow: none;

  transition:
    width 190ms ease,
    height 190ms ease,
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease;
}

.gd-side-nav a.is-active {
  color: var(--gd-text);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gd-side-nav__panel:hover a.is-active,
.gd-side-nav__panel:focus-within a.is-active {
  color: var(--gd-matrix);
  background: var(--gd-matrix-soft);
}

.gd-side-nav a.is-active .gd-side-nav__marker {
  width: 9px;
  height: 27px;

  border-color: var(--gd-matrix);
  border-radius: 999px;

  background: var(--gd-matrix);

  box-shadow:
    0 0 10px var(--gd-matrix-glow);
}

.gd-screen--with-sidebar.gd-container,
.gd-screen--with-sidebar > .gd-container,
.gd-screen--with-sidebar .gd-project-rail {
  padding-left: var(--gd-gutter);
}

.gd-screen--with-sidebar .gd-section-step {
  left: var(--gd-gutter);
}

/* =================================================================
   RESTORE PROJECT TITLE TYPOGRAPHY
   ================================================================= */

.gd-project-card h3 .gd-project-card__title-link {
  display: inline-block;

  margin: 0;
  padding: 0;

  color: inherit;

  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;

  text-decoration: none;
  text-shadow: none;
}

.gd-project-card h3 .gd-project-card__title-link:hover,
.gd-project-card h3 .gd-project-card__title-link:focus-visible {
  color: var(--gd-matrix);

  text-shadow:
    0 0 12px var(--gd-matrix-glow),
    0 0 24px rgba(98, 245, 138, 0.10);

  transform: translateX(4px);
}



/* =================================================================
   SECTION NAV SAFE AREA + BACKDROP
   ================================================================= */

:root {
  --gd-section-nav-safe-space: 44px;
  --gd-section-nav-backdrop-width: 72px;
}

/*
  A fixed-height visual backing for the collapsed section dots.
  It exists only while the section navigator itself is visible.
*/
.gd-side-nav::before {
  content: "";

  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;

  width: var(--gd-section-nav-backdrop-width);
  height: 100vh;

  background:
    linear-gradient(
      90deg,
      rgba(4, 10, 6, 0.62) 0%,
      rgba(8, 17, 11, 0.34) 46%,
      rgba(8, 17, 11, 0.12) 72%,
      transparent 100%
    );

  pointer-events: none;

  transform: translateY(-50%);
}

.gd-side-nav__panel {
  z-index: 1;
}

/*
  Every full-screen block except Hero receives a small safe area.
  The shift is deliberately smaller than the opened navigation panel:
  only the collapsed dots need permanent clearance.
*/
.gd-screen--with-sidebar.gd-container,
.gd-screen--with-sidebar > .gd-container {
  padding-left:
    calc(
      var(--gd-gutter) +
      var(--gd-section-nav-safe-space)
    );
}

.gd-screen--with-sidebar .gd-section-step {
  left:
    calc(
      var(--gd-gutter) +
      var(--gd-section-nav-safe-space)
    );
}

/* The carousel is full-bleed, so only its readable content shifts. */
.gd-section--projects .gd-project-heading {
  left:
    calc(
      clamp(88px, 7vw, 128px) +
      var(--gd-section-nav-safe-space)
    );
}

.gd-section--projects .gd-project-card__content {
  margin-left: var(--gd-section-nav-safe-space);
}

/* =================================================================
   CAROUSEL LOOP STABILITY
   ================================================================= */

/*
  During the invisible clone-to-original correction, card opacity and
  scale must jump instantly together with the track.
*/
.gd-project-track.is-loop-jumping .gd-project-card,
.gd-project-track.is-loop-jumping .gd-project-card.is-active {
  transition: none !important;
}

/* =================================================================
   AUTOPLAY PROGRESS
   ================================================================= */

.gd-project-progress {
  position: absolute;
  top: 7px;
  right: 14px;
  left: 14px;
  z-index: 14;

  height: 4px;

  overflow: hidden;

  border-radius: 999px;

  background: rgba(228, 238, 230, 0.12);

  box-shadow:
    inset 0 0 0 1px rgba(228, 238, 230, 0.04);

  pointer-events: none;
}

.gd-project-progress__fill {
  width: 100%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--gd-matrix),
      rgba(98, 245, 138, 0.98)
    );

  box-shadow:
    0 0 9px var(--gd-matrix-glow),
    0 0 20px rgba(98, 245, 138, 0.38);

  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* Disable obsolete pseudo-element implementation from older patches. */
.gd-project-viewport::before,
.gd-project-viewport::after {
  content: none !important;
  display: none !important;
}


/* =================================================================
   PROJECT TITLE SIZE — EXPLICIT FINAL OVERRIDE
   ================================================================= */

.gd-project-card h3 {
  font-size: clamp(2rem, 3.35vw, 4.25rem);
}

.gd-project-card h3 > .gd-project-card__title-link {
  font-size: inherit !important;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* Keep mobile behavior predictable despite the final desktop overrides. */
@media (max-width: 960px), (max-height: 760px) {
  .gd-screen--with-sidebar.gd-container,
  .gd-screen--with-sidebar > .gd-container {
    padding-left: var(--gd-gutter);
  }

  .gd-screen--with-sidebar .gd-section-step {
    left: var(--gd-gutter);
  }

  .gd-section--projects .gd-project-heading {
    left: 24px;
  }

  .gd-section--projects .gd-project-card__content {
    margin-left: 0;
  }
}

@media (max-width: 960px) {
  .gd-side-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gd-project-viewport::after {
    display: none;
  }
}


/* =================================================================
   LAST SECTIONS ARCHITECTURE
   03 BACKGROUND · 04 WORKFLOW · 05 CONTACTS
   ================================================================= */

/* -----------------------------
   03 / BACKGROUND
   ----------------------------- */

.gd-section--background {
  align-content: center;
}

.gd-background-layout {
  min-height: 0;

  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.42fr);
  gap: clamp(18px, 1.8vw, 30px);

  flex: 1;
}

.gd-background-stack {
  min-height: 0;

  display: grid;
  grid-template-rows: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(18px, 1.8vw, 30px);
}

.gd-background-card {
  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;

  padding: clamp(24px, 2.6vw, 42px);

  border: 1px solid var(--gd-accent-border);
  border-radius: var(--gd-radius);

  background:
    linear-gradient(
      145deg,
      rgba(27, 43, 32, 0.93),
      rgba(18, 31, 23, 0.91)
    );

  box-shadow: var(--gd-shadow);
}

.gd-background-card--education {
  position: relative;

  justify-content: space-between;

  overflow: hidden;

  background:
    linear-gradient(
      155deg,
      rgba(39, 62, 46, 0.96),
      rgba(19, 33, 24, 0.94)
    );
}

.gd-background-card--education::before {
  content: "2026";

  position: absolute;
  right: -0.04em;
  bottom: -0.19em;

  color: rgba(150, 196, 164, 0.055);

  font-family: var(--gd-font-display);
  font-size: clamp(7rem, 14vw, 14rem);
  font-weight: 700;
  line-height: 1;

  pointer-events: none;
}

.gd-background-card h3 {
  position: relative;

  margin: 9px 0 0;

  font-family: var(--gd-font-display);
  font-size: clamp(1.45rem, 2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.gd-background-card p {
  position: relative;

  max-width: 68ch;
  margin: 0;

  color: var(--gd-text-secondary);

  line-height: 1.52;
}

.gd-background-card__lead {
  max-width: 32ch !important;

  color: var(--gd-text) !important;

  font-family: var(--gd-font-display);
  font-size: clamp(1.15rem, 1.55vw, 1.65rem);
  font-weight: 500;
  line-height: 1.32 !important;
}

.gd-background-card__facts {
  position: relative;

  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.gd-background-card__facts span {
  padding: 7px 10px;

  border: 1px solid var(--gd-accent-border);
  border-radius: 999px;

  color: var(--gd-text-secondary);
  background: rgba(12, 23, 16, 0.42);

  font-family: var(--gd-font-mono);
  font-size: 0.74rem;
}

.gd-background-card--compact {
  padding-block: clamp(22px, 2vw, 32px);
}

/* -----------------------------
   04 / WORKFLOW + TOOLS
   ----------------------------- */

.gd-section--workflow-tools {
  align-content: center;
}

.gd-workflow-tools-layout {
  min-height: 0;

  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(300px, 0.82fr);
  gap: clamp(22px, 2.2vw, 38px);

  flex: 1;
}

.gd-workflow--integrated {
  min-height: 0;

  display: grid;
  grid-template-columns: 1fr;
  gap: 0;

  margin: 0;
  padding: 0;

  list-style: none;

  border-top: 1px solid var(--gd-accent-border);
  border-bottom: 1px solid var(--gd-accent-border);
}

.gd-workflow--integrated li {
  min-width: 0;

  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 18px;

  padding: clamp(13px, 1.35vh, 20px) 4px;

  border: 0;
  border-bottom: 1px solid rgba(150, 196, 164, 0.13);
  border-radius: 0;

  background: transparent;
  box-shadow: none;
}

.gd-workflow--integrated li:last-child {
  border-bottom: 0;
}

.gd-workflow--integrated li > span {
  color: var(--gd-accent-secondary);

  font-family: var(--gd-font-mono);
  font-size: 0.9rem;
}

.gd-workflow--integrated li > div {
  min-width: 0;

  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;
}

.gd-workflow--integrated strong {
  font-family: var(--gd-font-display);
  font-size: clamp(1.05rem, 1.25vw, 1.35rem);
  font-weight: 600;
}

.gd-workflow--integrated p {
  margin: 0;

  color: var(--gd-text-secondary);

  line-height: 1.42;
}

.gd-workflow-tools {
  min-height: 0;

  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gd-workflow-tools article {
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;

  padding: clamp(16px, 1.6vw, 24px);

  border: 1px solid var(--gd-accent-border);
  border-radius: var(--gd-radius);

  background:
    linear-gradient(
      145deg,
      rgba(26, 42, 31, 0.91),
      rgba(18, 30, 22, 0.88)
    );

  box-shadow: var(--gd-shadow);
}

.gd-workflow-tools p {
  margin: 0;

  color: var(--gd-text-secondary);

  font-size: 0.9rem;
  line-height: 1.44;
}

/* -----------------------------
   05 / CONTACTS
   ----------------------------- */

.gd-contact-screen .gd-contact {
  width: min(100%, 1400px);

  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto;
  align-items: center;
  gap: clamp(34px, 6vw, 110px);
}

.gd-contact-screen .gd-contact > div:first-child {
  max-width: 760px;
}

.gd-contact-screen h2 {
  margin: 10px 0 16px;

  font-size: clamp(2.8rem, 5.2vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.gd-contact-screen .gd-contact > div:first-child > p:last-child {
  max-width: 56ch;

  color: var(--gd-text-secondary);

  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.55;
}

.gd-actions--contact {
  min-width: min(360px, 30vw);

  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gd-actions--contact .gd-button {
  justify-content: center;
}

/* -----------------------------
   Responsive compaction
   ----------------------------- */

@media (max-width: 1100px) {
  .gd-background-layout,
  .gd-workflow-tools-layout {
    grid-template-columns: 1fr;
  }

  .gd-background-layout {
    grid-template-rows: auto auto;
  }

  .gd-background-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

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

  .gd-contact-screen .gd-contact {
    grid-template-columns: 1fr;
  }

  .gd-actions--contact {
    min-width: 0;

    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gd-background-stack,
  .gd-workflow-tools,
  .gd-actions--contact {
    grid-template-columns: 1fr;
  }

  .gd-workflow--integrated li > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gd-background-card--education::before {
    font-size: 7rem;
  }
}

@media (max-height: 760px) and (min-width: 961px) {
  .gd-background-card {
    gap: 9px;
    padding: 20px 24px;
  }

  .gd-background-card p {
    font-size: 0.88rem;
  }

  .gd-background-card__facts span {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .gd-workflow--integrated li {
    padding-block: 9px;
  }

  .gd-workflow-tools article {
    padding: 12px 16px;
  }
}


/* =================================================================
   BACKGROUND REVISION
   ================================================================= */

.gd-background-stack {
  grid-template-rows: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.gd-background-secondary-grid {
  min-height: 0;

  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(18px, 1.8vw, 30px);
}

.gd-education-heading {
  position: relative;
}

.gd-background-card__school-link {
  display: inline-block;

  color: var(--gd-text);
  text-decoration: none;

  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    transform 180ms ease;
}

.gd-background-card__school-link:hover,
.gd-background-card__school-link:focus-visible {
  color: var(--gd-matrix);

  text-shadow:
    0 0 12px var(--gd-matrix-glow),
    0 0 24px rgba(98, 245, 138, 0.10);

  transform: translateX(3px);
}

.gd-background-card__degree {
  max-width: 28ch !important;

  color: var(--gd-text) !important;

  font-family: var(--gd-font-display);
  font-size: clamp(1.12rem, 1.48vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3 !important;
}

.gd-education-details {
  position: relative;

  display: grid;
  gap: 13px;
}

.gd-education-details p {
  display: grid;
  gap: 5px;
}

.gd-education-details p > span {
  color: var(--gd-accent-secondary);

  font-family: var(--gd-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.gd-background-card--education {
  gap: clamp(16px, 2vh, 27px);
}

.gd-background-card--education .gd-background-card__facts {
  gap: 8px;
}

.gd-background-card--education .gd-background-card__facts span {
  max-width: 100%;

  padding: 6px 9px;

  font-size: clamp(0.63rem, 0.66vw, 0.72rem);
  line-height: 1.25;
  white-space: normal;
}

.gd-background-card--profile {
  justify-content: center;
}

.gd-background-card--reading,
.gd-background-card--tabletop {
  justify-content: center;

  padding: clamp(20px, 2vw, 30px);
}

.gd-background-card--reading h3,
.gd-background-card--tabletop h3 {
  font-size: clamp(1.2rem, 1.5vw, 1.72rem);
}

.gd-reading-list {
  display: grid;
  gap: 10px;
}

.gd-reading-list > div {
  display: grid;
  gap: 3px;

  padding: 10px 12px;

  border-left: 2px solid var(--gd-accent-secondary);

  background: rgba(10, 19, 13, 0.32);
}

.gd-reading-list strong {
  color: var(--gd-text);

  font-family: var(--gd-font-display);
  font-size: 0.96rem;
  font-weight: 600;
}

.gd-reading-list span {
  color: var(--gd-text-muted);

  font-family: var(--gd-font-mono);
  font-size: 0.72rem;
}

.gd-background-card--tabletop p {
  font-size: 0.9rem;
  line-height: 1.46;
}

@media (max-width: 1180px) {
  .gd-background-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .gd-background-secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gd-background-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) and (min-width: 961px) {
  .gd-background-card--education {
    gap: 10px;
  }

  .gd-education-details {
    gap: 8px;
  }

  .gd-background-card--education .gd-background-card__facts span {
    padding: 4px 7px;
    font-size: 0.62rem;
  }

  .gd-background-card--reading,
  .gd-background-card--tabletop {
    padding: 14px 18px;
  }

  .gd-reading-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gd-reading-list > div {
    padding: 7px 9px;
  }
}


/* =================================================================
   BACKGROUND PROJECT LINK
   ================================================================= */

.gd-background-card__project-link {
  display: inline-block;

  color: var(--gd-text);
  text-decoration: none;

  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    transform 180ms ease;
}

.gd-background-card__project-link:hover,
.gd-background-card__project-link:focus-visible {
  color: var(--gd-matrix);

  text-shadow:
    0 0 12px var(--gd-matrix-glow),
    0 0 24px rgba(98, 245, 138, 0.10);

  transform: translateX(3px);
}

/* =================================================================
   WORKFLOW REVISION
   ================================================================= */

.gd-section--workflow-tools {
  align-content: center;
}

.gd-workflow-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  align-items: end;
  gap: clamp(32px, 5vw, 86px);

  margin-bottom: clamp(26px, 3vh, 44px);
}

.gd-workflow-heading h2 {
  max-width: 12ch;
  margin: 8px 0 0;

  font-size: clamp(2rem, 3.15vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.gd-workflow-heading__lead {
  max-width: 70ch;
  margin: 0 0 3px;

  color: var(--gd-text-secondary);

  font-size: clamp(0.92rem, 1vw, 1.06rem);
  line-height: 1.55;
}

.gd-workflow-pipeline {
  position: relative;

  min-height: 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;

  flex: 1;

  border-top: 1px solid var(--gd-accent-border);
  border-bottom: 1px solid var(--gd-accent-border);
}

/* Shared process line connecting the four stages. */
.gd-workflow-pipeline::before {
  content: "";

  position: absolute;
  top: 31px;
  right: 0;
  left: 0;
  z-index: 0;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gd-accent-border) 6%,
      var(--gd-accent-border) 94%,
      transparent
    );

  pointer-events: none;
}

.gd-workflow-stage {
  position: relative;
  z-index: 1;

  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;

  padding:
    clamp(20px, 2.2vw, 34px)
    clamp(18px, 2vw, 31px)
    clamp(22px, 2.4vw, 38px);

  border-right: 1px solid rgba(150, 196, 164, 0.15);

  background:
    linear-gradient(
      180deg,
      rgba(25, 40, 30, 0.28),
      rgba(13, 24, 17, 0.20)
    );

  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.gd-workflow-stage:last-child {
  border-right: 0;
}

.gd-workflow-stage:hover {
  background:
    linear-gradient(
      180deg,
      rgba(34, 54, 40, 0.53),
      rgba(15, 28, 20, 0.34)
    );

  box-shadow:
    inset 0 2px 0 rgba(98, 245, 138, 0.42);
}

.gd-workflow-stage__header {
  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 24px;
}

.gd-workflow-stage__number {
  position: relative;

  min-width: 32px;

  color: var(--gd-matrix);

  font-family: var(--gd-font-mono);
  font-size: 0.78rem;
  font-weight: 600;

  text-shadow: 0 0 9px var(--gd-matrix-glow);
}

.gd-workflow-stage__number::before {
  content: "";

  position: absolute;
  top: 50%;
  left: -7px;

  width: 5px;
  height: 5px;

  border: 1px solid var(--gd-matrix);
  border-radius: 50%;

  background: var(--gd-background);

  box-shadow: 0 0 8px var(--gd-matrix-glow);

  transform: translate(-50%, -50%);
}

.gd-workflow-stage__header p {
  margin: 0;

  color: var(--gd-accent-secondary);

  font-family: var(--gd-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.gd-workflow-stage h3 {
  margin: clamp(24px, 3vh, 38px) 0 13px;

  font-family: var(--gd-font-display);
  font-size: clamp(1.35rem, 1.75vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.gd-workflow-stage__description {
  margin: 0;

  color: var(--gd-text-secondary);

  font-size: clamp(0.84rem, 0.88vw, 0.96rem);
  line-height: 1.5;
}

.gd-workflow-stage__result {
  display: grid;
  gap: 6px;

  margin-top: auto;
  padding-top: clamp(22px, 3.2vh, 38px);
}

.gd-workflow-stage__result span,
.gd-workflow-principle > span {
  color: var(--gd-accent-secondary);

  font-family: var(--gd-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gd-workflow-stage__result strong {
  color: var(--gd-text);

  font-family: var(--gd-font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.gd-workflow-stage__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin-top: 17px;
}

.gd-workflow-stage__tags span {
  padding: 5px 8px;

  border: 1px solid var(--gd-accent-border);
  border-radius: 999px;

  color: var(--gd-text-muted);
  background: rgba(9, 18, 12, 0.28);

  font-family: var(--gd-font-mono);
  font-size: 0.64rem;
  line-height: 1.2;
}

.gd-workflow-principle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;

  padding-top: clamp(18px, 2.3vh, 28px);
}

.gd-workflow-principle strong {
  max-width: 84ch;

  color: var(--gd-text-secondary);

  font-family: var(--gd-font-display);
  font-size: clamp(0.93rem, 1vw, 1.08rem);
  font-weight: 500;
  line-height: 1.45;
}

/* Hide obsolete two-column workflow structures if old styles leak. */
.gd-workflow-tools-layout,
.gd-workflow-tools,
.gd-workflow--integrated {
  display: none;
}

@media (max-width: 1180px) {
  .gd-workflow-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gd-workflow-heading h2 {
    max-width: none;
  }

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

  .gd-workflow-pipeline::before {
    display: none;
  }

  .gd-workflow-stage {
    border-bottom: 1px solid rgba(150, 196, 164, 0.15);
  }

  .gd-workflow-stage:nth-child(2) {
    border-right: 0;
  }

  .gd-workflow-stage:nth-child(n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .gd-workflow-pipeline {
    grid-template-columns: 1fr;
  }

  .gd-workflow-stage {
    border-right: 0;
    border-bottom: 1px solid rgba(150, 196, 164, 0.15) !important;
  }

  .gd-workflow-stage:last-child {
    border-bottom: 0 !important;
  }

  .gd-workflow-principle {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-height: 760px) and (min-width: 1181px) {
  .gd-workflow-heading {
    margin-bottom: 18px;
  }

  .gd-workflow-heading h2 {
    font-size: clamp(1.8rem, 2.7vw, 3.35rem);
  }

  .gd-workflow-stage {
    padding: 16px 18px 19px;
  }

  .gd-workflow-stage h3 {
    margin-top: 19px;
    margin-bottom: 9px;
  }

  .gd-workflow-stage__description {
    font-size: 0.79rem;
    line-height: 1.4;
  }

  .gd-workflow-stage__result {
    padding-top: 14px;
  }

  .gd-workflow-stage__tags {
    margin-top: 10px;
    gap: 5px;
  }

  .gd-workflow-stage__tags span {
    padding: 4px 6px;
    font-size: 0.59rem;
  }

  .gd-workflow-principle {
    padding-top: 13px;
  }
}


/* =================================================================
   WORKFLOW POLISH + INLINE TABLETOP LINK
   ================================================================= */

/* The tabletop card title is no longer a link. */
.gd-background-card__project-link {
  display: none;
}

.gd-background-card__inline-link {
  display: inline-block;

  color: var(--gd-text);
  text-decoration: none;

  font-weight: 650;

  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    transform 180ms ease;
}

.gd-background-card__inline-link:hover,
.gd-background-card__inline-link:focus-visible {
  color: var(--gd-matrix);

  text-shadow:
    0 0 10px var(--gd-matrix-glow),
    0 0 20px rgba(98, 245, 138, 0.10);

  transform: translateY(-1px);
}

/* -----------------------------
   Workflow heading
   ----------------------------- */

.gd-workflow-heading {
  grid-template-columns: minmax(450px, 0.9fr) minmax(460px, 1.1fr);
  align-items: center;

  margin-bottom: clamp(24px, 2.6vh, 38px);
}

.gd-workflow-heading > div {
  align-self: center;
}

.gd-workflow-heading h2 {
  max-width: none;
  margin: 8px 0 0;

  font-family: var(--gd-font-display);
  font-size: clamp(2.25rem, 3.05vw, 3.65rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.gd-workflow-heading__lead {
  align-self: center;

  max-width: 64ch;
  margin: 22px 0 0;

  font-size: clamp(0.96rem, 1vw, 1.08rem);
  line-height: 1.52;
}

/* -----------------------------
   Workflow stage density
   ----------------------------- */

.gd-workflow-stage {
  justify-content: flex-start;

  padding:
    clamp(20px, 2vw, 30px)
    clamp(20px, 1.9vw, 29px)
    clamp(22px, 2vw, 31px);
}

.gd-workflow-stage h3 {
  margin:
    clamp(24px, 2.7vh, 34px)
    0
    13px;
}

.gd-workflow-stage__description {
  min-height: 7.1em;

  font-size: clamp(0.86rem, 0.91vw, 0.98rem);
  line-height: 1.48;
}

.gd-workflow-stage__result {
  gap: 8px;

  margin-top: clamp(24px, 3vh, 38px);
  padding-top: 0;
}

.gd-workflow-stage__result span,
.gd-workflow-principle > span {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.055em;
}

.gd-workflow-stage__result strong {
  font-size: clamp(1rem, 1.02vw, 1.13rem);
  line-height: 1.3;
}

.gd-workflow-stage__tags {
  gap: 8px;

  margin-top: 15px;
}

.gd-workflow-stage__tags span {
  padding: 6px 9px;

  font-size: 0.69rem;
  line-height: 1.15;
}

.gd-workflow-principle {
  padding-top: clamp(15px, 1.8vh, 22px);
}

.gd-workflow-principle strong {
  font-size: clamp(0.98rem, 1.03vw, 1.12rem);
}

/* -----------------------------
   Responsive corrections
   ----------------------------- */

@media (max-width: 1180px) {
  .gd-workflow-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gd-workflow-heading__lead {
    margin-top: 0;
  }

  .gd-workflow-heading h2 {
    font-size: clamp(2rem, 4.6vw, 3.35rem);
  }

  .gd-workflow-stage__description {
    min-height: 0;
  }
}

@media (max-height: 760px) and (min-width: 1181px) {
  .gd-workflow-heading {
    margin-bottom: 15px;
  }

  .gd-workflow-heading h2 {
    font-size: clamp(2rem, 2.7vw, 3.1rem);
  }

  .gd-workflow-heading__lead {
    margin-top: 15px;
    font-size: 0.9rem;
  }

  .gd-workflow-stage {
    padding: 14px 17px 17px;
  }

  .gd-workflow-stage h3 {
    margin-top: 17px;
    margin-bottom: 8px;
  }

  .gd-workflow-stage__description {
    min-height: 6.2em;

    font-size: 0.8rem;
    line-height: 1.38;
  }

  .gd-workflow-stage__result {
    margin-top: 15px;
  }

  .gd-workflow-stage__result strong {
    font-size: 0.94rem;
  }

  .gd-workflow-stage__tags {
    margin-top: 9px;
  }

  .gd-workflow-stage__tags span {
    padding: 4px 7px;
    font-size: 0.62rem;
  }
}


/* =================================================================
   WORKFLOW TYPOGRAPHY SCALE FIX
   Preserve aligned result/tool rows; only increase type scale.
   ================================================================= */

/*
  Keep the previous flex layout and the shared description height.
  Only add the requested 5px of breathing room at the top.
*/
.gd-workflow-stage {
  padding-top:
    calc(clamp(20px, 2vw, 30px) + 5px);
}

/* Main stage description: roughly +2–3px. */
.gd-workflow-stage__description {
  min-height: 7.1em;

  font-size: clamp(1rem, 1.04vw, 1.12rem);
  line-height: 1.5;
}

/*
  Keep result blocks aligned by retaining the same minimum description
  height and the same margin structure from the previous version.
*/
.gd-workflow-stage__result {
  margin-top: clamp(24px, 3vh, 38px);
  padding-top: 0;
}

.gd-workflow-stage__result span,
.gd-workflow-principle > span {
  font-size: 0.84rem;
  font-weight: 600;
}

/* Result text: roughly +2–3px. */
.gd-workflow-stage__result strong {
  font-size: clamp(1.16rem, 1.2vw, 1.34rem);
  line-height: 1.3;
}

/* Tool tags: roughly +2–3px in text, with matching padding. */
.gd-workflow-stage__tags {
  margin-top: 16px;
}

.gd-workflow-stage__tags span {
  padding: 7px 10px;

  font-size: 0.79rem;
  line-height: 1.15;
}

/*
  Compact desktop-height mode keeps alignment, but scales the new
  typography down enough to remain inside one screen.
*/
@media (max-height: 760px) and (min-width: 1181px) {
  .gd-workflow-stage {
    padding-top: 19px;
  }

  .gd-workflow-stage__description {
    min-height: 6.2em;

    font-size: 0.88rem;
    line-height: 1.4;
  }

  .gd-workflow-stage__result {
    margin-top: 15px;
  }

  .gd-workflow-stage__result span,
  .gd-workflow-principle > span {
    font-size: 0.73rem;
  }

  .gd-workflow-stage__result strong {
    font-size: 1.03rem;
  }

  .gd-workflow-stage__tags {
    margin-top: 10px;
  }

  .gd-workflow-stage__tags span {
    padding: 5px 8px;

    font-size: 0.68rem;
  }
}

@media (max-width: 1180px) {
  .gd-workflow-stage__description {
    min-height: 0;
  }
}


/* =================================================================
   CONTACTS REVISION
   ================================================================= */

.gd-contact-screen {
  position: relative;

  align-items: stretch;
  justify-content: stretch;

  padding:
    clamp(42px, 6vh, 76px)
    var(--gd-gutter);
}

.gd-contact-screen .gd-contact {
  width: 100%;
  max-width: none;
  min-height: 0;

  display: grid;
  grid-template-columns: minmax(340px, 0.76fr) minmax(620px, 1.24fr);
  align-items: stretch;
  gap: clamp(34px, 4.4vw, 76px);

  padding-left:
    calc(
      var(--gd-gutter) +
      var(--gd-section-nav-safe-space)
    );
}

.gd-contact-intro {
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding:
    clamp(34px, 4vw, 68px)
    clamp(22px, 2.7vw, 46px)
    clamp(34px, 4vw, 68px)
    0;

  border-right: 1px solid var(--gd-accent-border);
}

.gd-contact-screen .gd-contact-intro h2 {
  max-width: 8ch;
  margin: 12px 0 24px;

  font-family: var(--gd-font-display);
  font-size: clamp(3.2rem, 5.8vw, 7rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.gd-contact-intro > p:last-child {
  max-width: 48ch;
  margin: 0;

  color: var(--gd-text-secondary);

  font-size: clamp(1rem, 1.16vw, 1.2rem);
  line-height: 1.58;
}

.gd-contact-grid {
  min-width: 0;
  min-height: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows:
    minmax(0, 1fr)
    minmax(0, 0.88fr)
    minmax(0, 1fr);
  gap: clamp(12px, 1.3vw, 20px);
}

.gd-contact-card {
  position: relative;

  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;

  padding: clamp(22px, 2.3vw, 36px);

  overflow: hidden;

  border: 1px solid var(--gd-accent-border);
  border-radius: var(--gd-radius);

  color: var(--gd-text);
  background:
    linear-gradient(
      145deg,
      rgba(28, 45, 33, 0.92),
      rgba(16, 29, 21, 0.90)
    );

  box-shadow:
    0 18px 42px rgba(3, 9, 5, 0.22);

  font: inherit;
  text-align: left;
  text-decoration: none;

  cursor: pointer;

  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

button.gd-contact-card {
  width: 100%;

  appearance: none;
}

.gd-contact-card::before {
  content: "";

  position: absolute;
  top: 0;
  right: 0;

  width: 80px;
  height: 80px;

  border-top: 1px solid rgba(98, 245, 138, 0.26);
  border-right: 1px solid rgba(98, 245, 138, 0.26);

  opacity: 0.55;

  transform:
    translate(24px, -24px)
    rotate(45deg);

  pointer-events: none;
}

.gd-contact-card:hover,
.gd-contact-card:focus-visible {
  border-color: var(--gd-matrix);

  background:
    linear-gradient(
      145deg,
      rgba(34, 55, 40, 0.97),
      rgba(17, 32, 23, 0.95)
    );

  box-shadow:
    0 20px 48px rgba(3, 9, 5, 0.30),
    0 0 18px var(--gd-matrix-glow);

  transform: translateY(-3px);
}

.gd-contact-card:focus-visible {
  outline: 2px solid var(--gd-matrix);
  outline-offset: 3px;
}

.gd-contact-card--phone {
  grid-column: 1 / -1;

  flex-direction: row;
  align-items: center;

  background:
    linear-gradient(
      100deg,
      rgba(41, 67, 49, 0.97),
      rgba(18, 34, 24, 0.93)
    );
}

.gd-contact-card--phone .gd-contact-card__service {
  min-width: 90px;
}

.gd-contact-card--phone .gd-contact-card__value {
  margin-right: auto;

  font-size: clamp(1.65rem, 2.5vw, 3.1rem);
}

.gd-contact-card__service {
  position: relative;

  color: var(--gd-accent-secondary);

  font-family: var(--gd-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gd-contact-card__value {
  position: relative;

  max-width: 100%;

  overflow-wrap: anywhere;

  color: var(--gd-text);

  font-family: var(--gd-font-display);
  font-size: clamp(1.28rem, 1.65vw, 2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;

  transition:
    color 180ms ease,
    text-shadow 180ms ease;
}

.gd-contact-card:hover .gd-contact-card__value,
.gd-contact-card:focus-visible .gd-contact-card__value {
  color: var(--gd-matrix);

  text-shadow: 0 0 12px var(--gd-matrix-glow);
}

.gd-contact-card__action {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--gd-text-muted);

  font-family: var(--gd-font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.025em;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.gd-contact-card:hover .gd-contact-card__action,
.gd-contact-card:focus-visible .gd-contact-card__action {
  color: var(--gd-matrix);
  transform: translateX(3px);
}

.gd-contact-card__toast {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;

  padding: 7px 10px;

  border: 1px solid var(--gd-matrix);
  border-radius: 7px;

  color: var(--gd-matrix);
  background: rgba(8, 17, 11, 0.96);

  box-shadow:
    0 0 16px var(--gd-matrix-glow);

  font-family: var(--gd-font-mono);
  font-size: 0.72rem;
  font-weight: 600;

  opacity: 0;
  pointer-events: none;

  transform: translateY(5px);

  transition:
    opacity 50ms linear,
    transform 120ms ease;
}

.gd-contact-card--copy.is-copied .gd-contact-card__toast {
  opacity: 1;
  transform: translateY(0);
}

.gd-contact-card--copy.is-copy-failed .gd-contact-card__toast {
  border-color: var(--gd-text-secondary);
  color: var(--gd-text);
}

.gd-contact-card--copy.is-copy-failed .gd-contact-card__toast::before {
  content: "Не удалось скопировать";
  font-size: 0;
}

.gd-contact-card--copy.is-copy-failed .gd-contact-card__toast {
  font-size: 0;
}

.gd-contact-card--copy.is-copy-failed .gd-contact-card__toast::after {
  content: "Не удалось скопировать";

  font-size: 0.72rem;
}

@media (max-width: 1100px) {
  .gd-contact-screen {
    padding-block: 54px;
  }

  .gd-contact-screen .gd-contact {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gd-contact-intro {
    padding: 0 0 28px;

    border-right: 0;
    border-bottom: 1px solid var(--gd-accent-border);
  }

  .gd-contact-screen .gd-contact-intro h2 {
    max-width: none;
  }

  .gd-contact-grid {
    grid-template-rows: repeat(3, minmax(150px, auto));
  }
}

@media (max-width: 720px) {
  .gd-contact-screen .gd-contact {
    padding-left: var(--gd-gutter);
  }

  .gd-contact-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gd-contact-card,
  .gd-contact-card--phone {
    grid-column: auto;

    min-height: 150px;

    flex-direction: column;
    align-items: flex-start;
  }

  .gd-contact-card--phone .gd-contact-card__value {
    font-size: clamp(1.45rem, 7vw, 2.2rem);
  }

  .gd-contact-screen .gd-contact-intro h2 {
    font-size: clamp(2.8rem, 13vw, 4.6rem);
  }
}

@media (max-height: 760px) and (min-width: 1101px) {
  .gd-contact-screen {
    padding-block: 36px;
  }

  .gd-contact-intro {
    padding-block: 24px;
  }

  .gd-contact-screen .gd-contact-intro h2 {
    margin-block: 8px 16px;

    font-size: clamp(2.8rem, 4.6vw, 5.2rem);
  }

  .gd-contact-card {
    gap: 11px;

    padding: 18px 22px;
  }

  .gd-contact-card__value {
    font-size: clamp(1.1rem, 1.35vw, 1.55rem);
  }

  .gd-contact-card--phone .gd-contact-card__value {
    font-size: clamp(1.45rem, 2vw, 2.25rem);
  }
}


/* =================================================================
   FINAL PAGE NAVIGATION POLISH
   ================================================================= */

:root {
  --gd-section-step-height: 46px;
}

/* Exact anchor positioning outside desktop segmented-scroll mode. */
.gd-screen {
  scroll-margin-top: var(--gd-header-height);
}

/* Hero now participates in the same left-side navigation layout. */
.gd-hero.gd-screen--with-sidebar {
  padding-left:
    calc(
      var(--gd-gutter) +
      var(--gd-section-nav-safe-space)
    );
}

/* =================================================================
   FIXED UP / DOWN PAGE CONTROLS
   ================================================================= */

.gd-page-step-controls {
  position: fixed;
  top: var(--gd-header-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;

  pointer-events: none;
}

.gd-page-step-controls .gd-section-step {
  position: absolute;
  right: 0;
  left: var(--gd-section-nav-safe-space);

  width: auto;
  height: var(--gd-section-step-height);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: 0;
  border-radius: 0;

  color: var(--gd-text-muted);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(63, 120, 87, 0.035) 18%,
      rgba(63, 120, 87, 0.085) 50%,
      rgba(63, 120, 87, 0.035) 82%,
      transparent 100%
    );

  box-shadow: none;

  font-family: var(--gd-font-mono);
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  line-height: 1;

  cursor: pointer;
  opacity: 0.34;
  pointer-events: auto;

  transition:
    opacity 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    text-shadow 180ms ease,
    transform 180ms ease;
}

.gd-page-step-controls .gd-section-step::before {
  content: "";

  position: absolute;
  top: 50%;
  right: 11%;
  left: 11%;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gd-accent-border),
      transparent
    );

  opacity: 0.58;

  pointer-events: none;
}

.gd-page-step-controls .gd-section-step > span {
  position: relative;
  z-index: 1;

  display: block;

  text-shadow: 0 0 7px rgba(98, 245, 138, 0.08);
}

.gd-page-step-controls .gd-section-step--up {
  top: 0;
}

.gd-page-step-controls .gd-section-step--down {
  bottom: 0;
}

.gd-page-step-controls .gd-section-step--up > span {
  transform: rotate(90deg);
}

.gd-page-step-controls .gd-section-step--down > span {
  transform: rotate(90deg);
}

.gd-page-step-controls .gd-section-step:hover,
.gd-page-step-controls .gd-section-step:focus-visible {
  opacity: 1;

  color: var(--gd-matrix);
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(63, 120, 87, 0.07) 18%,
      var(--gd-matrix-soft) 50%,
      rgba(63, 120, 87, 0.07) 82%,
      transparent 100%
    );

  text-shadow: 0 0 13px var(--gd-matrix-glow);
}

.gd-page-step-controls .gd-section-step--up:hover,
.gd-page-step-controls .gd-section-step--up:focus-visible {
  transform: translateY(-2px);
}

.gd-page-step-controls .gd-section-step--down:hover,
.gd-page-step-controls .gd-section-step--down:focus-visible {
  transform: translateY(2px);
}

.gd-page-step-controls .gd-section-step:disabled {
  visibility: hidden;
  pointer-events: none;
}

/*
  Old per-section positioning rules remain in the historical stylesheet,
  but only the controls inside this fixed wrapper are now created.
*/
.gd-screen > .gd-section-step {
  display: none !important;
}

/* =================================================================
   BACKGROUND EXTERNAL LINKS
   ================================================================= */

.gd-background-card__school-link,
.gd-background-card__inline-link {
  position: relative;

  color: var(--gd-text);

  text-decoration: none;

  box-shadow:
    inset 0 -0.16em 0 rgba(98, 245, 138, 0.16);

  transition:
    color 180ms ease,
    box-shadow 180ms ease,
    text-shadow 180ms ease,
    transform 180ms ease;
}

.gd-background-card__school-link {
  padding-right: 0.88em;
}

.gd-background-card__school-link::after {
  content: "↗";

  position: absolute;
  top: 0.04em;
  right: 0;

  color: var(--gd-matrix);

  font-family: var(--gd-font-mono);
  font-size: 0.48em;
  font-weight: 600;

  opacity: 0.86;
}

.gd-background-card__inline-link {
  padding-inline: 0.08em;

  font-weight: 650;
}

.gd-background-card__inline-link::after {
  content: " ↗";

  color: var(--gd-matrix);

  font-family: var(--gd-font-mono);
  font-size: 0.72em;
  font-weight: 600;

  opacity: 0.82;
}

.gd-background-card__school-link:hover,
.gd-background-card__school-link:focus-visible,
.gd-background-card__inline-link:hover,
.gd-background-card__inline-link:focus-visible {
  color: var(--gd-matrix);

  box-shadow:
    inset 0 -0.24em 0 rgba(98, 245, 138, 0.24);

  text-shadow:
    0 0 11px var(--gd-matrix-glow),
    0 0 22px rgba(98, 245, 138, 0.10);
}

/* =================================================================
   WORKFLOW INTRO BALANCE
   ================================================================= */

.gd-workflow-heading__lead {
  font-size: clamp(1.08rem, 1.16vw, 1.24rem);
  line-height: 1.5;
}

@media (max-width: 960px), (max-height: 760px) {
  .gd-page-step-controls {
    display: none;
  }

  .gd-hero.gd-screen--with-sidebar {
    padding-left: var(--gd-gutter);
  }
}


/* =================================================================
   GLOBAL HEADER + EMBEDDED CONTACT FOOTER
   ================================================================= */

/* -----------------------------
   Header structure
   ----------------------------- */

.gd-header__inner {
  display: grid;
  grid-template-columns:
    minmax(190px, 0.9fr)
    minmax(240px, 1fr)
    minmax(430px, 1.45fr);
  align-items: center;
  gap: clamp(20px, 2.4vw, 42px);
}

.gd-header__brand {
  min-width: 0;
  margin-right: 0;

  display: grid;
  gap: 2px;

  opacity: 0.88;
}

.gd-header__brand strong {
  overflow: hidden;

  color: var(--gd-text-secondary);

  font-family: var(--gd-font-display);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gd-header__brand span {
  color: var(--gd-accent-secondary);

  font-family: var(--gd-font-mono);
  font-size: 0.59rem;
  font-weight: 500;
  letter-spacing: 0.075em;
  line-height: 1.1;
  text-transform: uppercase;
}

.gd-header__brand:hover strong,
.gd-header__brand:focus-visible strong {
  color: var(--gd-text);
}

.gd-header__context {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  color: var(--gd-text-muted);

  font-family: var(--gd-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gd-header__context a {
  color: var(--gd-text-muted);
  text-decoration: none;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.gd-header__context a:hover,
.gd-header__context a:focus-visible {
  color: var(--gd-matrix);
  transform: translateX(-2px);
}

.gd-header__context strong {
  overflow: hidden;

  color: var(--gd-text-secondary);

  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gd-header__actions {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 1.5vw, 24px);
}

.gd-header__contacts {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -----------------------------
   Header contact icons
   ----------------------------- */

.gd-header-contact {
  position: relative;

  width: 38px;
  height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;

  padding: 0;

  border: 1px solid rgba(150, 196, 164, 0.16);
  border-radius: 9px;

  color: var(--gd-text-muted);
  background: rgba(12, 23, 16, 0.26);

  font: inherit;
  text-decoration: none;

  cursor: pointer;
  opacity: 0.78;

  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

button.gd-header-contact {
  appearance: none;
}

.gd-header-contact svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.gd-header-contact svg.gd-header-contact__icon--fill {
  fill: currentColor;
  stroke: none;
}

.gd-header-contact:hover,
.gd-header-contact:focus-visible {
  color: var(--gd-matrix);

  border-color: rgba(98, 245, 138, 0.62);
  background: var(--gd-matrix-soft);

  box-shadow:
    0 0 15px var(--gd-matrix-glow);

  opacity: 1;
  transform: translateY(-2px);
}

.gd-header-contact__toast {
  position: absolute;
  top: calc(100% + 10px);
  right: -4px;
  z-index: 220;

  width: max-content;

  padding: 7px 10px;

  border: 1px solid var(--gd-matrix);
  border-radius: 7px;

  color: var(--gd-matrix);
  background: rgba(8, 17, 11, 0.98);

  box-shadow:
    0 0 16px var(--gd-matrix-glow);

  font-family: var(--gd-font-mono);
  font-size: 0.7rem;
  font-weight: 600;

  opacity: 0;
  pointer-events: none;

  transform: translateY(-4px);

  transition:
    opacity 50ms linear,
    transform 120ms ease;
}

.gd-header-contact--copy.is-copied .gd-header-contact__toast {
  opacity: 1;
  transform: translateY(0);
}

.gd-header-contact--copy.is-copy-failed .gd-header-contact__toast {
  border-color: var(--gd-text-secondary);
  color: var(--gd-text);
}

/* The old page-section nav is no longer used in the header. */
.gd-header__nav {
  display: none !important;
}

/* -----------------------------
   Footer inside Contacts
   ----------------------------- */

.gd-contact-screen {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: clamp(16px, 2vh, 26px);
}

.gd-contact-footer {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding-top: 15px;
  padding-left:
    calc(
      var(--gd-gutter) +
      var(--gd-section-nav-safe-space)
    );

  border-top: 1px solid var(--gd-accent-border);

  color: var(--gd-text-muted);

  font-family: var(--gd-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.025em;
}

.gd-contact-footer a {
  color: var(--gd-text-muted);
  text-decoration: none;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.gd-contact-footer a:hover,
.gd-contact-footer a:focus-visible {
  color: var(--gd-matrix);
  transform: translateX(-3px);
}

/* The standalone layout footer has been removed. */
.gd-footer {
  display: none;
}

/* -----------------------------
   Responsive header/footer
   ----------------------------- */

@media (max-width: 1180px) {
  .gd-header__inner {
    grid-template-columns:
      minmax(170px, 1fr)
      auto;
  }

  .gd-header__context {
    display: none;
  }

  .gd-header__actions {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .gd-header__inner {
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 12px;
  }

  .gd-header__brand span {
    display: none;
  }

  .gd-header__contacts {
    gap: 5px;
  }

  .gd-header-contact {
    width: 34px;
    height: 34px;

    border-color: transparent;
    background: transparent;
  }

  .gd-header-contact svg {
    width: 17px;
    height: 17px;
  }

  .gd-header__actions {
    gap: 8px;
  }

  .gd-contact-footer {
    padding-left: var(--gd-gutter);

    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .gd-header__brand strong {
    font-size: 0.78rem;
  }

  .gd-header-contact {
    width: 30px;
  }
}
