:root {
  color-scheme: dark;
  --color-void: #080705;
  --color-panel: #11100d;
  --color-panel-soft: #17130f;
  --color-line: rgba(238, 190, 105, 0.18);
  --color-line-strong: rgba(238, 190, 105, 0.34);
  --color-text: #f6efe1;
  --color-muted: #c9baa0;
  --color-dim: #927f62;
  --color-gold: #f1b955;
  --color-amber: #d88432;
  --color-rust: #8e3f2f;
  --color-green: #77c98b;
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 44px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 132, 50, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 18%, rgba(119, 201, 139, 0.08), transparent 28rem),
    var(--color-void);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(241, 185, 85, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 185, 85, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 80%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 4px;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
  z-index: 20;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--color-gold);
  color: #17100a;
  border-radius: 6px;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(238, 190, 105, 0.12);
  background: rgba(8, 7, 5, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand img {
  width: 54px;
  height: 46px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 180ms ease;
}

.nav-menu a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--color-gold);
  box-shadow: 0 0 12px rgba(241, 185, 85, 0.55);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-menu a:hover {
  color: var(--color-text);
}

.nav-menu a.is-active,
.nav-menu a[aria-current="page"] {
  color: var(--color-text);
  text-shadow: 0 0 14px rgba(241, 185, 85, 0.38);
}

.nav-menu a.is-active::after,
.nav-menu a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines::before {
  transform: translateY(-7px);
}

.nav-toggle-lines::after {
  transform: translateY(5px);
}

.nav-open .nav-toggle-lines {
  transform: rotate(45deg);
}

.nav-open .nav-toggle-lines::before {
  opacity: 0;
}

.nav-open .nav-toggle-lines::after {
  transform: translateY(-2px) rotate(90deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(780px, calc(100svh - 40px));
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("img/hero-dercetech-1600.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 7, 5, 0.98) 0%, rgba(8, 7, 5, 0.82) 38%, rgba(8, 7, 5, 0.25) 72%, rgba(8, 7, 5, 0.56) 100%),
    linear-gradient(180deg, rgba(8, 7, 5, 0.44) 0%, rgba(8, 7, 5, 0.12) 48%, rgba(8, 7, 5, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-block: clamp(5rem, 11vw, 9rem);
}

.eyebrow {
  color: var(--color-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin-top: var(--space-3);
  font-size: clamp(2.6rem, 6.4vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin-top: var(--space-4);
  color: var(--color-muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.05rem;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border: 1px solid rgba(241, 185, 85, 0.75);
  background: linear-gradient(135deg, var(--color-gold), var(--color-amber));
  color: #191007;
  box-shadow: 0 16px 48px rgba(216, 132, 50, 0.24);
}

.button-secondary {
  border: 1px solid var(--color-line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text);
}

.button-secondary:hover {
  border-color: rgba(241, 185, 85, 0.72);
  background: rgba(241, 185, 85, 0.1);
}

.button-gold {
  border: 1px solid rgba(241, 185, 85, 0.65);
  background: rgba(241, 185, 85, 0.1);
  color: var(--color-gold);
}

.button-gold:hover {
  border-color: rgba(241, 185, 85, 0.9);
  background: rgba(241, 185, 85, 0.16);
  color: var(--color-text);
}

.button-steam {
  border: 1px solid rgba(119, 201, 139, 0.7);
  background: rgba(119, 201, 139, 0.12);
  color: #a7f0b7;
}

.button-steam:hover {
  border-color: rgba(119, 201, 139, 0.95);
  background: rgba(119, 201, 139, 0.18);
  color: var(--color-text);
}

.button-icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button.compact {
  min-height: 42px;
  width: fit-content;
  margin-top: var(--space-3);
  padding-inline: 0.9rem;
  font-size: 0.9rem;
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: var(--space-6);
}

.section-heading.narrow {
  max-width: 830px;
  text-align: center;
  margin-inline: auto;
}

.section-heading h2,
.about-layout h2,
.contact-panel h2 {
  margin-top: var(--space-2);
  color: var(--color-text);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.about-copy,
.contact-panel p {
  margin-top: var(--space-3);
  color: var(--color-muted);
  font-size: 1.04rem;
}

.service-grid,
.brand-grid,
.project-grid,
.feature-grid {
  display: grid;
  gap: var(--space-4);
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.mini-card,
.project-card {
  position: relative;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.service-card {
  min-height: 100%;
  padding: var(--space-5);
}

.card-index,
.status,
.role {
  display: block;
  margin-top: 0;
  color: var(--color-green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-card h3,
.brand-copy h3,
.mini-card h3,
.project-card h3 {
  margin-top: var(--space-2);
  color: var(--color-text);
  font-size: 1.45rem;
  line-height: 1.1;
}

.service-card p,
.brand-copy p,
.mini-card p,
.project-card p {
  margin-top: var(--space-3);
  color: var(--color-muted);
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin-top: var(--space-4);
  list-style: none;
  color: var(--color-text);
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
}

.check-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--color-gold);
  content: "";
}

.split-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.72), rgba(8, 7, 5, 0.84)),
    linear-gradient(110deg, rgba(8, 7, 5, 0.92), rgba(8, 7, 5, 0.54) 52%, rgba(8, 7, 5, 0.86)),
    url("img/scribe-god-thoth-80s-2.webp") center / cover no-repeat;
  border-block: 1px solid rgba(238, 190, 105, 0.09);
}

.split-section::before,
.split-section::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.split-section::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 62% 42%, rgba(216, 132, 50, 0.08), transparent 26rem);
  mix-blend-mode: screen;
  opacity: 0.28;
}

.split-section::after {
  background:
    linear-gradient(90deg, rgba(8, 7, 5, 0.7), transparent 48%, rgba(8, 7, 5, 0.76)),
    radial-gradient(circle at 50% 50%, transparent, rgba(8, 7, 5, 0.52) 74%);
}

.split-section > .shell {
  position: relative;
  z-index: 1;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-6);
  align-items: start;
}

.split-layout .section-heading {
  margin-bottom: 0;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card {
  min-height: 190px;
  padding: var(--space-4);
}

.band-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.7), rgba(8, 7, 5, 0.84)),
    linear-gradient(135deg, rgba(241, 185, 85, 0.14), rgba(119, 201, 139, 0.06)),
    url("img/sphin-cpp.webp") center / cover no-repeat,
    #0d0b09;
}

.band-section::before,
.band-section::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.band-section::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 48% 42%, rgba(241, 185, 85, 0.08), transparent 28rem);
  mix-blend-mode: screen;
  opacity: 0.3;
}

.band-section::after {
  background:
    linear-gradient(90deg, rgba(8, 7, 5, 0.74), rgba(8, 7, 5, 0.32) 50%, rgba(8, 7, 5, 0.78)),
    radial-gradient(circle at 50% 48%, transparent, rgba(8, 7, 5, 0.54) 72%);
}

.band-section > .shell {
  position: relative;
  z-index: 1;
}

.capability-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.capability-row span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.34rem 0.62rem;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.brand-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 0.62fr);
  overflow: hidden;
}

.brand-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 0.64fr);
}

.brand-card-umbrella {
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
}

.brand-art {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: var(--space-4);
  background:
    radial-gradient(circle, rgba(241, 185, 85, 0.18), transparent 62%),
    #070606;
  border-right: 1px solid var(--color-line);
}

.brand-art img {
  max-height: 220px;
  object-fit: contain;
}

.brand-card-wide .brand-art img {
  max-height: 250px;
}

.brand-card-arborea .brand-art {
  background: #000;
}

.brand-card-procurement .brand-art {
  background: #000;
}

.brand-card-bad-sector {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(8, 7, 5, 0.68) 42%, rgba(8, 7, 5, 0.58)),
    url("img/bad-sector-hero-sfw.webp") center / cover no-repeat;
}

.brand-card-bad-sector::before,
.brand-card-bad-sector::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.brand-card-bad-sector::before {
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px),
    linear-gradient(45deg, rgba(255, 108, 37, 0.08) 25%, transparent 25% 75%, rgba(255, 108, 37, 0.08) 75%),
    linear-gradient(45deg, rgba(255, 108, 37, 0.08) 25%, transparent 25% 75%, rgba(255, 108, 37, 0.08) 75%);
  background-position: 0 0, 0 0, 8px 8px;
  background-size: auto, 16px 16px, 16px 16px;
  mix-blend-mode: screen;
  opacity: 0.28;
}

.brand-card-bad-sector::after {
  z-index: 1;
  background:
    radial-gradient(circle at 22% 48%, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66) 58%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.64) 46%, rgba(0, 0, 0, 0.48));
}

.brand-card-bad-sector .brand-art,
.brand-card-bad-sector .brand-copy {
  position: relative;
  z-index: 2;
}

.brand-card-bad-sector .brand-art {
  background: rgba(0, 0, 0, 0.24);
}

.brand-card-bad-sector .brand-copy {
  background: linear-gradient(90deg, rgba(8, 7, 5, 0.5), rgba(8, 7, 5, 0.34));
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.82);
}

.brand-copy {
  padding: var(--space-5);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-4);
}

.text-link {
  display: inline-flex;
  margin-top: var(--space-4);
  color: var(--color-gold);
  font-weight: 900;
}

.text-link:hover {
  color: var(--color-text);
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 0;
    padding: var(--space-2);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(8, 7, 5, 0.96);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    width: 100%;
    min-height: 48px;
    padding-inline: var(--space-3);
    border-radius: 6px;
  }

  .nav-menu a:hover {
    background: rgba(241, 185, 85, 0.08);
  }
}

.section-selected {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.68), rgba(8, 7, 5, 0.82)),
    linear-gradient(90deg, rgba(8, 7, 5, 0.9), rgba(8, 7, 5, 0.58) 46%, rgba(8, 7, 5, 0.86)),
    url("img/dercetech-logo-illustration-80s.webp") center / cover no-repeat;
  border-block: 1px solid rgba(238, 190, 105, 0.09);
}

.section-selected::before,
.section-selected::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.section-selected::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 58% 42%, rgba(119, 201, 139, 0.1), transparent 25rem);
  mix-blend-mode: screen;
  opacity: 0.38;
}

.section-selected::after {
  background:
    linear-gradient(90deg, rgba(8, 7, 5, 0.58), transparent 44%, rgba(8, 7, 5, 0.68)),
    radial-gradient(circle at 50% 50%, transparent, rgba(8, 7, 5, 0.48) 72%);
}

.section-selected > .shell {
  position: relative;
  z-index: 1;
}

.project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-card {
  min-height: 245px;
  padding: var(--space-4);
}

.project-card-blackthorn {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.36), rgba(8, 7, 5, 0.88) 54%, rgba(8, 7, 5, 0.95)),
    linear-gradient(90deg, rgba(8, 7, 5, 0.88), rgba(8, 7, 5, 0.2) 50%, rgba(8, 7, 5, 0.88)),
    url("img/store_capsule_vertical_v2.jpg") center / cover no-repeat;
}

.project-card-blackthorn::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  content: "";
  opacity: 0.32;
}

.project-card-blackthorn > * {
  position: relative;
  z-index: 1;
}

.project-card-intruding {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.42), rgba(8, 7, 5, 0.86) 52%, rgba(8, 7, 5, 0.95)),
    linear-gradient(90deg, rgba(8, 7, 5, 0.82), rgba(8, 7, 5, 0.2) 46%, rgba(8, 7, 5, 0.92)),
    url("img/sorry_for_intruding.jpg") left center / cover no-repeat;
}

.project-card-intruding::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  content: "";
  opacity: 0.3;
}

.project-card-intruding > * {
  position: relative;
  z-index: 1;
}

.project-card-reactor {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.48), rgba(8, 7, 5, 0.88) 52%, rgba(8, 7, 5, 0.97)),
    linear-gradient(90deg, rgba(8, 7, 5, 0.9), rgba(8, 7, 5, 0.34) 50%, rgba(8, 7, 5, 0.92)),
    url("img/reactor4.jpg") center / cover no-repeat;
}

.project-card-reactor::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  content: "";
  opacity: 0.22;
}

.project-card-reactor > * {
  position: relative;
  z-index: 1;
}

.project-card-blocky {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.34), rgba(8, 7, 5, 0.84) 50%, rgba(8, 7, 5, 0.95)),
    linear-gradient(90deg, rgba(8, 7, 5, 0.84), rgba(8, 7, 5, 0.16) 50%, rgba(8, 7, 5, 0.86)),
    url("img/blocky_lion_2019.jpg") center / cover no-repeat;
}

.project-card-blocky::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  content: "";
  opacity: 0.24;
}

.project-card-blocky > * {
  position: relative;
  z-index: 1;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-3);
}

.project-actions .button.compact {
  margin-top: 0;
}

.project-card-featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(142, 63, 47, 0.42), rgba(255, 255, 255, 0.03)),
    var(--color-panel);
}

.project-card-image {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}

.project-card-image img {
  width: 150px;
  border-radius: 6px;
}

.about-section {
  background:
    linear-gradient(120deg, rgba(119, 201, 139, 0.055), transparent 42%),
    var(--color-void);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-6);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: var(--space-3);
  max-width: 700px;
  margin-top: 0;
}

.contact-section {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.logo-explanation {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid rgba(238, 190, 105, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.72), rgba(8, 7, 5, 0.82)),
    linear-gradient(90deg, rgba(8, 7, 5, 0.4), rgba(8, 7, 5, 0.18) 50%, rgba(8, 7, 5, 0.4)),
    url("img/dercetech-logo-illustration-no-logo.webp") center / cover no-repeat;
}

.logo-explanation-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  text-align: center;
}

.logo-explanation img {
  width: min(360px, 78vw);
  opacity: 0.82;
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.52));
}

.logo-explanation-copy {
  display: grid;
  gap: var(--space-4);
  max-width: 720px;
  padding: 1.15rem 1.35rem;
  border: 1px solid rgba(238, 190, 105, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 7, 5, 0.52);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  color: var(--color-muted);
  font-size: clamp(0.82rem, 1.4vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.55;
  text-transform: uppercase;
}

.logo-explanation-copy strong {
  color: var(--color-text);
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(241, 185, 85, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(241, 185, 85, 0.14), rgba(142, 63, 47, 0.16)),
    var(--color-panel-soft);
  box-shadow: var(--shadow-strong);
}

.contact-panel > div {
  max-width: 760px;
}

.site-footer {
  padding-block: var(--space-5);
  border-top: 1px solid var(--color-line);
  background: #070604;
  color: var(--color-muted);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: start;
}

.site-footer h2 {
  color: var(--color-text);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p {
  margin-top: 0.35rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--color-gold);
}

.legal {
  grid-column: 1 / -1;
  color: var(--color-dim);
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-grid,
  .split-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .brand-card,
  .brand-card-wide {
    grid-template-columns: 0.42fr 0.58fr;
  }
}

@media (max-width: 768px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 68px;
  }

  .brand span {
    font-size: 0.78rem;
  }

  .brand img {
    width: 48px;
    height: 41px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: var(--space-2);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: rgba(8, 7, 5, 0.96);
    box-shadow: var(--shadow-strong);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu a {
    width: 100%;
    min-height: 48px;
    padding-inline: var(--space-3);
    border-radius: 6px;
  }

  .nav-menu a:hover {
    background: rgba(241, 185, 85, 0.08);
  }

  .hero {
    min-height: min(780px, calc(100svh - 20px));
  }

  .hero-bg {
    background-image: url("img/hero-dercetech-900.jpg");
    background-position: 54% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 7, 5, 0.9) 0%, rgba(8, 7, 5, 0.66) 34%, rgba(8, 7, 5, 0.93) 100%),
      linear-gradient(90deg, rgba(8, 7, 5, 0.8), rgba(8, 7, 5, 0.24));
  }

  .hero-content {
    padding-block: 5rem 4.5rem;
  }

  .section {
    padding-block: 4rem;
  }

  .service-card,
  .brand-copy {
    padding: var(--space-4);
  }

  .brand-card,
  .brand-card-wide,
  .project-card-image {
    grid-template-columns: 1fr;
  }

  .brand-art {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .project-card-featured,
  .project-card-image {
    grid-column: auto;
  }

  .contact-panel,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    display: grid;
  }

  .footer-layout,
  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 4rem);
  }

  .hero-actions,
  .contact-panel .button {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .capability-row {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
