:root {
  /* ---- Blueprint palette ---- */
  --bg: #0e1c2e;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.12);
  --border-amber: rgba(242, 169, 59, 0.45);
  --grid-line: rgba(255, 255, 255, 0.05);

  --text: #f4f1e8;
  --muted: rgba(244, 241, 232, 0.66);
  --muted-2: rgba(244, 241, 232, 0.46);

  --accent: #f2a93b;
  --accent-ink: #171006;
  --accent-soft: rgba(242, 169, 59, 0.14);
  --stamp-red: #c1502e;

  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.35);

  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  position: relative;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

/* ---------- blueprint grid backdrop ---------- */
.gridOverlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(120% 90% at 50% 0%, black 40%, transparent 100%);
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 10px;
}

.section__title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.2px;
  margin: 0 0 16px;
}

.section__lead {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 28px;
  line-height: 1.6;
}

.editNote {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted-2);
  font-style: italic;
  margin-top: 12px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, filter 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: rgba(0, 0, 0, 0.15);
}

.btn--primary:hover {
  filter: brightness(1.06);
  background: var(--accent);
}

.btn--ghost {
  background: transparent;
}

.btn--block {
  width: 100%;
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(14, 28, 46, 0.78);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-amber);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 13px;
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__name {
  font-weight: 800;
}

.brand__role {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

.brand--footer {
  gap: 10px;
}

.navToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.navToggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--text);
  border-radius: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav__link {
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 120ms ease, background 120ms ease;
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav__cta {
  margin-left: 8px;
}

.langSwitch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-left: 8px;
}

.langBtn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.langBtn:hover {
  color: var(--text);
}

.langBtn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.hero__title {
  margin: 6px 0 18px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(26px, 4.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  min-height: 2.4em;
}

.hero__titleType {
  white-space: pre-wrap;
}

.hero__cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero__subtitle {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 0 22px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  font-size: 12.5px;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ---------- stamp (hero panel) ---------- */
.hero__panel {
  display: flex;
  justify-content: center;
}

.stamp {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-amber);
  background: linear-gradient(180deg, rgba(242, 169, 59, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  padding: 18px;
}

.stamp__row--head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stamp__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.stamp__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--stamp-red);
  border: 1px solid rgba(193, 80, 46, 0.5);
  border-radius: 999px;
  padding: 3px 8px;
}

.stamp__value--big {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  margin-top: 6px;
}

.stamp__divider {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-amber) 0 6px, transparent 6px 12px);
  margin: 16px 0;
}

.stamp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0;
}

.stamp__cell dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.stamp__cell dd {
  margin: 0;
  font-weight: 700;
  font-size: 14.5px;
}

.stamp__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #6bd08a;
  box-shadow: 0 0 0 3px rgba(107, 208, 138, 0.2);
}

/* ---------- sections ---------- */
.section {
  padding: 54px 0;
  border-top: 1px solid var(--border);
}

/* ---------- about ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: start;
}

.about__text p {
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  margin: 0;
}

.factsCard {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.factsCard__brace {
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.factsCard__brace--close {
  margin-top: 6px;
}

.facts {
  margin: 10px 0;
  padding-left: 14px;
  display: grid;
  gap: 10px;
}

.facts__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.facts__row dt {
  color: var(--accent);
}

.facts__row dt::after {
  content: ":";
  color: var(--muted-2);
}

.facts__row dd {
  margin: 0;
  color: var(--muted);
}

/* ---------- services ---------- */
.cardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.serviceCard {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 18px;
}

.serviceCard h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.serviceCard p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- skills ---------- */
.skillsTier__heading {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.1px;
  margin: 0 0 8px;
}

.skillsTier__desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 62ch;
  margin: 0 0 18px;
}

.tagRow--boxed {
  padding: 18px;
  border: 1px dashed var(--border-amber);
  border-radius: var(--radius);
  background: var(--surface);
}

.skillsDivider {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border-amber) 0 6px, transparent 6px 12px);
  margin: 34px 0 30px;
}

.skillGroups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.skillGroup__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 10px;
}

.tagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

/* ---------- process / timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 1px dashed var(--border-amber);
  padding-left: 26px;
}

.timeline__item {
  position: relative;
  padding: 0 0 30px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.18);
}

.timeline__rev {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  border: 1px solid var(--border-amber);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 8px;
}

.timeline__item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.timeline__item p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}

/* ---------- work / empty state ---------- */
.emptyState {
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-amber);
  background: var(--surface);
  padding: 46px 24px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.emptyState__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.emptyState h3 {
  margin: 0;
  font-size: 18px;
}

.emptyState p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
  line-height: 1.55;
}

/* ---------- contact ---------- */
.contactGrid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.contactInfo {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 20px;
  display: grid;
  gap: 14px;
  height: fit-content;
}

.contactInfo__row {
  display: grid;
  gap: 4px;
}

.contactInfo__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.contactInfo__value {
  font-weight: 700;
}

a.contactInfo__value:hover {
  color: var(--accent);
}

.socialRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.socialLink {
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.socialLink:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.24);
}

.contactForm {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 22px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.field__input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 11px 12px;
  font-family: var(--font-sans);
  font-size: 14.5px;
}

.field__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea.field__input {
  resize: vertical;
}

.formNote {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: center;
}

.formNote--success {
  color: #6bd08a;
}

.formNote--error {
  color: var(--stamp-red);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */
.footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer__text {
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  font-family: var(--font-mono);
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
  .contactGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .navToggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 28, 46, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 16px;
    display: none;
    gap: 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 12px 10px;
  }

  .langSwitch {
    margin: 8px 0 0;
    align-self: flex-start;
  }

  .nav__cta {
    margin: 8px 0 0;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .stamp__grid {
    grid-template-columns: 1fr;
  }
}
