/* Getsadze redesign 2026 — match original .container (1860 / 80px) */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk/SpaceGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk/SpaceGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk/SpaceGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ng-bg: #000000;
  --ng-ink: #ffffff;
  --ng-muted: #555555;
  --ng-soft: #f5f5f5;
  --ng-accent: #ff3d00;
  --ng-font: "Space Grotesk", sans-serif;
  /* Exact match for theme .container */
  --ng-pad: 80px;
  --ng-max: 1860px;
  --ng-row: 45px;
}

@media (max-width: 1100px) {
  :root { --ng-pad: 40px; }
}

@media (max-width: 768px) {
  :root { --ng-pad: 24px; }
}

html.getsadze-redesign body,
html.getsadze-redesign body .main {
  background: var(--ng-bg) !important;
  color: var(--ng-ink);
}

html.getsadze-redesign body .ng-top,
html.getsadze-redesign body .ng-top *,
html.getsadze-redesign body .header__lets-talk,
html.getsadze-redesign body .footer__lets-talk,
html.getsadze-redesign body .ng-logo {
  font-family: var(--ng-font) !important;
}

/* ---- Header: same width/gutters as .container / gallery ---- */
html.getsadze-redesign body .header,
html.getsadze-redesign body .header *,
html.getsadze-redesign body .header__logo,
html.getsadze-redesign body .header__logo *,
html.getsadze-redesign body .ng-logo,
html.getsadze-redesign body .ng-logo * {
  animation: none !important;
  transition: none !important;
}

html.getsadze-redesign body .header {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: none !important;
  opacity: 1;
  visibility: visible;
}

/* Kill theme header-prelouder (translateY slide) completely */
html.getsadze-redesign body.load-content .header,
html.getsadze-redesign body.load-content-late .header,
html.getsadze-redesign body.load-content .header__logo,
html.getsadze-redesign body.load-content-late .header__logo,
html.getsadze-redesign body.load-content .ng-logo,
html.getsadze-redesign body.load-content-late .ng-logo {
  animation: none !important;
  animation-name: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
  transform: none !important;
}

/*
  Do NOT opacity-hide the header during splash.
  Orange prelouder (z-index 9999) covers it; hiding via opacity caused
  a fixed-header paint bug (logo only appeared after scroll).
*/
html.getsadze-redesign.ng-splash-pending body .header {
  z-index: 100 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

html.getsadze-redesign.ng-splash-done body .header {
  z-index: 300 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

html.getsadze-redesign body .header__container.container,
html.getsadze-redesign body .header__container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: var(--ng-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--ng-pad) !important;
  padding-right: var(--ng-pad) !important;
  padding-top: 28px;
  box-sizing: border-box;
  position: relative;
}

html.getsadze-redesign body .header__social,
html.getsadze-redesign body .header__contact {
  display: none !important;
}

html.getsadze-redesign body .header__burger {
  display: flex !important;
  position: relative;
  z-index: 101;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

html.getsadze-redesign body .header__burger-open {
  display: none !important;
}

html.getsadze-redesign body .header__burger-close {
  display: none !important;
}

html.getsadze-redesign body .header__burger-close.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 102;
}

html.getsadze-redesign body .header__burger-close.active svg,
html.getsadze-redesign body .header__burger-close.active svg rect {
  fill: #ffffff !important;
}

/* Stacked Space Grotesk wordmark (Figma) */
html.getsadze-redesign body .header__logo,
html.getsadze-redesign body .footer__logo {
  position: relative;
  z-index: 101;
}

html.getsadze-redesign body .header__logo svg,
html.getsadze-redesign body .footer__logo svg {
  display: none !important;
}

html.getsadze-redesign body .ng-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-decoration: none;
  color: #ffffff !important;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-size: 22px;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

html.getsadze-redesign body .ng-logo__line {
  display: block;
  color: inherit;
}

html.getsadze-redesign body.black .header {
  background: #000000;
  z-index: 200;
}

html.getsadze-redesign body.black .header__lets-talk {
  display: none !important;
}

html.getsadze-redesign body .header__lets-talk {
  color: var(--ng-soft);
  font-size: 16px;
  line-height: 40px;
  letter-spacing: -0.32px;
  text-decoration: none;
  border-bottom: 1px solid var(--ng-accent);
  padding: 0;
  margin-top: -6px;
  align-self: flex-start;
  position: relative;
  z-index: 101;
}

html.getsadze-redesign body .header__lets-talk:hover {
  opacity: 0.75;
}

/* ---- Intro + Case studies ---- */
.ng-top {
  background: var(--ng-bg);
  color: var(--ng-ink);
  font-family: var(--ng-font) !important;
  padding: 98px var(--ng-pad) 0;
  max-width: var(--ng-max);
  margin: 0 auto;
  box-sizing: border-box;
}

.ng-top__intro {
  margin: 0 0 14px;
  max-width: 1184px;
  font-size: 42px;
  line-height: 44px;
  letter-spacing: -0.84px;
  font-weight: 400;
  color: var(--ng-ink);
}

.ng-top__label {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 40px;
  letter-spacing: -0.32px;
  color: var(--ng-soft);
  font-weight: 400;
}

.ng-case-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #333;
}

.ng-case-list__item {
  border-bottom: 1px solid #333;
  height: var(--ng-row);
}

.ng-case-list__link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 36px;
  align-items: center;
  height: 100%;
  padding: 0;
  text-decoration: none;
  color: var(--ng-ink);
  box-sizing: border-box;
}

.ng-case-list__num {
  font-size: 20px;
  line-height: 40px;
  letter-spacing: -0.4px;
  color: var(--ng-muted);
  font-weight: 500;
}

.ng-case-list__title {
  font-size: 22px;
  line-height: 27px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ng-case-list__arrow {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: var(--ng-accent);
}

.ng-case-list__arrow svg {
  width: 22px;
  height: 17px;
  display: block;
}

.ng-case-list__link:hover .ng-case-list__title {
  opacity: 0.8;
}

.ng-top__all-work {
  margin: 42px 0 0;
  padding: 0;
  font-size: 16px;
  line-height: 40px;
  letter-spacing: -0.32px;
  color: var(--ng-soft);
  font-weight: 400;
}

html.getsadze-redesign body .portfolio {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Gallery uses theme .container — keep identical gutters */
html.getsadze-redesign body .portfolio__container.container,
html.getsadze-redesign body .portfolio__container {
  max-width: var(--ng-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--ng-pad) !important;
  padding-right: var(--ng-pad) !important;
  box-sizing: border-box;
}

/* Project open */
html.getsadze-redesign body.black .ng-top,
html.getsadze-redesign body.black .footer {
  display: none !important;
}

html.getsadze-redesign body .project.active {
  display: block !important;
  z-index: 40;
}

/* Same gutters as header/gallery — no extra transform inset */
html.getsadze-redesign body .project {
  width: 100%;
  max-width: var(--ng-max);
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  transform: none;
  padding-left: var(--ng-pad);
  padding-right: var(--ng-pad);
  box-sizing: border-box;
}

html.getsadze-redesign body .project__title {
  margin-left: 0;
}

/* No orange flash when entering a project */
html.getsadze-redesign body.black .prelouder,
html.getsadze-redesign body.black .overlay-circle,
html.getsadze-redesign body.black .start-overlay-circle,
html.getsadze-redesign body.black .overlay-close,
html.getsadze-redesign body .overlay-circle.active,
html.getsadze-redesign body .start-overlay-circle.active {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
}

/* ---- Footer ---- */
html.getsadze-redesign body .footer {
  background: var(--ng-bg);
}

html.getsadze-redesign body .footer__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px var(--ng-pad) 48px;
  max-width: var(--ng-max);
  margin: 0 auto;
  box-sizing: border-box;
}

html.getsadze-redesign body .footer__copy {
  display: none !important;
}

html.getsadze-redesign body .footer__lets-talk {
  color: var(--ng-soft);
  font-size: 16px;
  line-height: 40px;
  letter-spacing: -0.32px;
  text-decoration: none;
  border-bottom: 1px solid var(--ng-accent);
}

html.getsadze-redesign body .footer__to-top svg path {
  fill: var(--ng-accent);
}

/* During splash keep orange above everything */
html.getsadze-redesign.ng-splash-pending body .prelouder {
  z-index: 9999;
}

/* After splash: kill prelouder layer — it stays at z-index 9999 and covers the header logo */
html.getsadze-redesign.ng-splash-done body .prelouder,
html.getsadze-redesign.ng-splash-done body .prelouder__wrapper,
html.getsadze-redesign.ng-splash-done body .prelouder__logo {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

html.getsadze-redesign.ng-splash-done body .header {
  z-index: 300 !important;
}

html.getsadze-redesign body .prelouder__wrapper {
  background: #ff3d00 !important;
}

html.getsadze-redesign body.load-content .prelouder__wrapper,
html.getsadze-redesign body.load-content-late .prelouder__wrapper {
  animation-name: prelouder-wrapper-anim !important;
  animation-duration: 4s !important;
  animation-delay: 1s !important;
  animation-fill-mode: forwards !important;
  animation-timing-function: ease !important;
}

html.getsadze-redesign body .prelouder__logo svg {
  display: none !important;
}

html.getsadze-redesign body .ng-splash-logo {
  display: block;
  color: #ffffff;
  font-family: var(--ng-font) !important;
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 900px) {
  .ng-top__intro {
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.56px;
    margin-bottom: 40px;
  }

  .ng-case-list__title {
    font-size: 16px;
    white-space: normal;
  }

  .ng-case-list__item {
    height: auto;
    min-height: var(--ng-row);
  }

  .ng-case-list__link {
    grid-template-columns: 40px minmax(0, 1fr) 28px;
    padding: 10px 0;
    height: auto;
  }

  html.getsadze-redesign body .ng-logo {
    font-size: 18px;
  }
}
