/* Layout: full-bleed 3D workshop hero, then riveted steel-plate sections on a dark shop floor.
   Single deliberate dark look taken from the logo: blackened steel, brushed grey, arc orange. */
:root {
  --bg: #0a0a0b;
  --plate: #141416;
  --plate-2: #1b1b1e;
  --line: rgba(214, 206, 196, 0.13);
  --line-strong: rgba(214, 206, 196, 0.26);
  --fg: #ede9e3;
  --muted: #a39d95;
  --steel: #bfc3c9;
  --ember: #ff6a13;
  --ember-hot: #ffb36b;
  --ember-ink: #160700;

  --font-display: 'Russo One', 'Noto Sans Armenian', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Noto Sans Armenian', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Noto Sans Armenian', ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.1rem, 1.5rem + 3vw, 4.1rem);

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --maxw: 1240px;
  --header-h: 72px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-hot);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn svg {
  flex: none;
}
.btn--ember {
  background: var(--ember);
  color: var(--ember-ink);
  box-shadow: 0 0 0 1px rgba(255, 140, 60, 0.4), 0 8px 30px -8px rgba(255, 106, 19, 0.7);
}
.btn--ember:hover {
  background: var(--ember-hot);
  transform: translateY(-1px);
}
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
  background: rgba(10, 10, 11, 0.4);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: var(--steel);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__name em {
  font-style: normal;
  color: var(--ember);
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  white-space: nowrap;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--fg);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__call {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}
.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.lang__btn:hover {
  color: var(--fg);
}
.lang__btn[aria-pressed='true'] {
  background: var(--ember);
  color: var(--ember-ink);
}

@media (max-width: 1240px) {
  .nav {
    display: none;
  }
  .header__actions {
    margin-left: auto;
  }
}
@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }
  .brand__name {
    display: none;
  }
  .header__call span {
    display: none;
  }
  .header__call {
    width: 40px;
    padding: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, calc(100svh - var(--header-h)), 1120px);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
}
.hero-media__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-media.is-playing .hero-media__video {
  opacity: 1;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, 0.82) 16%, rgba(10, 10, 11, 0.35) 36%, rgba(10, 10, 11, 0) 52%),
    radial-gradient(120% 75% at 0% 100%, rgba(10, 10, 11, 0.72), rgba(10, 10, 11, 0) 62%),
    linear-gradient(180deg, rgba(10, 10, 11, 0.35) 0%, rgba(10, 10, 11, 0) 14%);
}
.hero__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-block: 32px clamp(48px, 7vh, 80px);
  min-height: inherit;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 38rem) minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: 32px;
}
.hero__copy {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  min-width: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 1.9vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #d9dce0 45%, #8f949b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-lang='hy'] .hero__title {
  font-family: 'Noto Sans Armenian', var(--font-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
}
html[data-lang='hy'] .eyebrow {
  text-transform: none;
  letter-spacing: 0.06em;
}
.hero__lead {
  margin: 16px 0 0;
  max-width: 33rem;
  color: #d8d2ca;
  font-size: var(--step-0);
  line-height: 1.55;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Narrow screens: copy first, then a dedicated 3D stage below it with the readout on top. */
@media (max-width: 860px) {
  .hero {
    min-height: 0;
  }
  .hero-media {
    top: auto;
    height: clamp(480px, 90vw + 180px, 720px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  }
  .hero__shade {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, 0) 14%);
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto clamp(320px, 74vw + 60px, 540px);
    padding-block: 36px 28px;
    gap: 0;
  }
  .hero__copy {
    align-self: start;
  }

}
@media (max-width: 520px) {
  .hero__ctas .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(72px, 10vw, 128px);
  position: relative;
}
.section__head {
  max-width: 44rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section__lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: var(--step-1);
  max-width: 40rem;
}
.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.12;
  text-transform: uppercase;
  text-wrap: balance;
}
html[data-lang='hy'] .section__title {
  font-family: 'Noto Sans Armenian', var(--font-display);
  font-weight: 800;
  font-stretch: 80%;
  text-transform: none;
}

/* Riveted steel plate: shared by service tiles and the contact card. */
.service,
.contact__card {
  position: relative;
  background:
    radial-gradient(circle at 12px 12px, #5b5f66 0 2.2px, #1f2023 2.6px 3.2px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 12px) 12px, #5b5f66 0 2.2px, #1f2023 2.6px 3.2px, transparent 3.6px),
    radial-gradient(circle at 12px calc(100% - 12px), #5b5f66 0 2.2px, #1f2023 2.6px 3.2px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #5b5f66 0 2.2px, #1f2023 2.6px 3.2px, transparent 3.6px),
    linear-gradient(160deg, var(--plate-2), var(--plate) 60%);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.services > li {
  display: flex;
  min-width: 0;
}
.service {
  appearance: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service:hover {
  border-color: rgba(255, 106, 19, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(255, 106, 19, 0.55);
}
.service__preview {
  display: block;
  border-bottom: 1px solid var(--line);
}
.service__preview .dv {
  border-radius: 0;
  border: 0;
}
.service__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 24px;
  flex: 1;
}
.service__title {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
}
.service__text {
  color: var(--muted);
}
.service__cta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ember-hot);
  font-weight: 600;
}
.service__n {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px 8px;
}
.service__cta svg {
  margin-left: auto;
  transition: transform 0.25s;
}
.service:hover .service__cta svg {
  transform: translateX(4px);
}
@media (max-width: 960px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .services {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section--plate {
  background: linear-gradient(180deg, var(--bg), #0f0f11 30%, #0f0f11 70%, var(--bg));
  border-block: 1px solid var(--line);
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
}
/* A weld seam runs through the four steps. */
.steps::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 21px;
  height: 4px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 140, 60, 0.85) 0 6px, rgba(150, 60, 10, 0.9) 6px 9px);
  box-shadow: 0 0 14px rgba(255, 106, 19, 0.35);
  opacity: 0.85;
}
.step {
  position: relative;
  padding-right: 28px;
  min-width: 0;
}
.step__num {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ember-hot);
  font-variant-numeric: tabular-nums;
}
.step__title {
  margin: 22px 0 8px;
  font-size: var(--step-1);
  font-weight: 600;
}
.step__text {
  margin: 0;
  color: var(--muted);
  max-width: 22rem;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .steps::before {
    left: 21px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 4px;
    height: auto;
    background: repeating-linear-gradient(180deg, rgba(255, 140, 60, 0.85) 0 6px, rgba(150, 60, 10, 0.9) 6px 9px);
  }
  .step {
    padding: 0 0 0 68px;
  }
  .step__num {
    position: absolute;
    left: 0;
    top: 0;
  }
  .step__title {
    margin-top: 8px;
  }
}

/* ---------- Contact ---------- */
.contact {
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  right: -10%;
  top: 10%;
  width: 60%;
  aspect-ratio: 1;
  max-width: 100%;
  background: radial-gradient(circle, rgba(255, 106, 19, 0.16), transparent 62%);
  pointer-events: none;
}
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.contact__lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: var(--step-1);
  max-width: 30rem;
}
.contact__card {
  padding: 12px 32px;
}
.contact__row {
  display: grid;
  gap: 6px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.contact__row:last-child {
  border-bottom: 0;
}
.contact__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__label svg {
  color: var(--ember);
}
.contact__value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem);
  text-decoration: none;
  overflow-wrap: anywhere;
}
html[data-lang='hy'] .contact__value:not(.contact__email) {
  font-family: 'Noto Sans Armenian', var(--font-display);
  font-weight: 700;
}
.contact__email {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  user-select: all;
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--ember-hot);
  text-decoration: none;
  font-weight: 500;
}
.contact__link:hover {
  text-decoration: underline;
}
.contact__cta {
  margin-top: 10px;
  width: fit-content;
}
@media (max-width: 860px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact__card {
    padding: 8px 22px;
  }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.footer__brand div {
  display: grid;
}
.footer__brand strong {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer__brand span,
.footer__legal {
  color: var(--muted);
  font-size: var(--step--1);
}
.footer__legal {
  margin: 0;
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Drawings & design visuals ---------- */
.dv {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(214, 206, 196, 0.045) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(214, 206, 196, 0.045) 1px, transparent 1px) 0 0 / 20px 20px,
    radial-gradient(120% 90% at 50% 0%, #1d1e22, #121214 70%);
  color: var(--steel);
}
.dv .dw {
  position: absolute;
  inset: 6% 5% 4%;
  width: 90%;
  height: 90%;
}
.dv--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dw {
  --wood: #a0704a;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dw .dw-bold { stroke-width: 2.6; }
.dw .dw-thin { stroke-width: 1.1; }
.dw .dw-solid { fill: #3a3d43; stroke: currentColor; stroke-width: 1.4; }
.dw .dw-fill { fill: #3a3d43; stroke-width: 1; }
.dw .dw-fill-soft { fill: rgba(191, 195, 201, 0.08); }
.dw .dw-wall { fill: rgba(191, 195, 201, 0.06); stroke-width: 1; stroke-dasharray: 3 3; }
.dw .dw-handle { stroke-width: 4.5; stroke: #d9dce0; }
.dw .dw-tread { stroke-width: 5; stroke: var(--wood); }
.dw .dw-louver { stroke-width: 2.4; stroke: #8b9097; }
.dw .dw-led { stroke: var(--ember-hot); stroke-width: 2; filter: drop-shadow(0 0 3px var(--ember)); }
.dw .dw-ghost { stroke: rgba(191, 195, 201, 0.35); stroke-dasharray: 4 4; }
.dw .dw-accent { stroke: var(--ember); stroke-width: 2; }
.dw .dw-cross { stroke: #d9dce0; stroke-width: 7; stroke-linecap: butt; }
.dw .dw-vine { stroke: #6f8f4e; stroke-width: 2.2; }
.dw .dw-ground { stroke: rgba(191, 195, 201, 0.35); stroke-width: 1; }
.dw .dw-dim line { stroke: var(--ember); stroke-width: 1; }
.dw .dw-dim text {
  fill: var(--ember-hot);
  stroke: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ember-hot);
  border: 1px solid rgba(255, 106, 19, 0.45);
  border-radius: 3px;
  padding: 2px 7px;
}

/* ---------- Catalogue ---------- */
.catalog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  animation: cat-in 0.28s ease both;
  padding-top: env(safe-area-inset-top, 0px);
}
@keyframes cat-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.catalog__bar {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.9);
}
.catalog__head,
.tabs,
.catalog__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.catalog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px 6px;
}
.catalog__head .eyebrow { margin: 0; }
.icon-btn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { border-color: var(--steel); background: rgba(255, 255, 255, 0.04); }
.icon-btn--sm { width: 32px; height: 32px; }
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 8px 12px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected='true'] {
  color: var(--ember-ink);
  background: var(--ember);
  border-color: var(--ember);
}
.tab__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.75;
}
.catalog__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.catalog__inner {
  padding-block: 28px 140px;
}
.catalog__intro {
  margin-bottom: 24px;
  max-width: 44rem;
}
.catalog__intro p {
  margin: 10px 0 0;
  color: var(--muted);
}
.designs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 22px 18px;
}
.design {
  position: relative;
  min-width: 0;
}
.design__open {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.design__open .dv { transition: border-color 0.25s, transform 0.25s; }
.design__open:hover .dv {
  border-color: rgba(255, 106, 19, 0.5);
  transform: translateY(-2px);
}
.design__text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.design__name {
  font-weight: 600;
  line-height: 1.35;
}
.pick {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(4px);
  color: var(--fg);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.pick:hover { border-color: var(--steel); }
.pick.is-on {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--ember-ink);
}

/* Detail view */
.detail__back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 18px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.detail__back:hover { color: var(--fg); }
.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.detail__visual { min-width: 0; }
.detail__frame { position: relative; }
.detail__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 11, 0.7);
  color: var(--fg);
  cursor: pointer;
}
.detail__nav:hover { border-color: var(--ember); }
.detail__nav--prev { left: 12px; }
.detail__nav--next { right: 12px; }
.detail__count {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.detail__meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}
.detail__title {
  margin: 14px 0 10px;
  font-size: var(--step-2);
  line-height: 1.15;
  font-weight: 600;
  text-wrap: balance;
}
.detail__desc {
  margin: 0;
  color: #cfc9c1;
  font-size: var(--step-1);
  max-width: 34rem;
}
.detail__specs {
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.detail__specs div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 12px;
}
.detail__specs dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.detail__specs dd { margin: 0; }
.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.btn.is-on { border-color: var(--ember); color: var(--ember-hot); }
@media (max-width: 860px) {
  .detail__grid { grid-template-columns: minmax(0, 1fr); }
  .detail__actions .btn { flex: 1 1 100%; }
}

/* ---------- Floating selection bar & mail notice ---------- */
.floating {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.floating > * { pointer-events: auto; }
.selbar,
.notice {
  width: min(100%, 860px);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(20, 20, 22, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  animation: cat-in 0.25s ease both;
}
.selbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 18px;
  border-color: rgba(255, 106, 19, 0.45);
}
.selbar__list {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.selbar__label {
  flex: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.selbar__label b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--ember-ink);
  font-size: 0.78rem;
}
.selbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.selbar ul::-webkit-scrollbar { display: none; }
.selbar li {
  flex: none;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.selbar__item,
.selbar__x {
  appearance: none;
  border: 0;
  background: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  cursor: pointer;
}
.selbar__item { padding: 5px 4px 5px 10px; }
.selbar__x {
  display: grid;
  place-items: center;
  padding: 5px 8px 5px 4px;
  color: var(--muted);
}
.selbar__x:hover { color: var(--fg); }
.selbar__actions {
  display: flex;
  gap: 8px;
  flex: none;
}
.btn--sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 14px 12px 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.notice__mail {
  color: var(--fg);
  font-family: var(--font-mono);
  user-select: all;
}
.notice .icon-btn { margin-left: auto; }
@media (max-width: 640px) {
  .selbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .selbar__actions .btn { flex: 1; }
}

/* ---------- Social ---------- */
.social {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
a.social__link:hover {
  border-color: var(--ember);
  color: var(--ember-hot);
  background: rgba(255, 106, 19, 0.06);
}
.social__link.is-soon {
  color: var(--muted);
  border-style: dashed;
}
.social__link em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.social--compact { margin: 0; gap: 8px; }
.social--compact .social__link {
  width: 40px;
  min-height: 40px;
  padding: 0;
  justify-content: center;
}

body.has-selection .footer { padding-bottom: 120px; }
@media (max-width: 640px) {
  .designs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .design__text {
    flex-direction: column;
    gap: 6px;
  }
  .design__name { font-size: 0.9rem; }
  .pick {
    top: 6px;
    right: 6px;
    padding: 6px;
  }
  .pick span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  body.has-selection .footer { padding-bottom: 170px; }
}

/* Style filter */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 22px;
}
.filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.filter span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.7;
}
.filter:hover { color: var(--fg); border-color: var(--steel); }
.filter[aria-pressed='true'] {
  color: var(--fg);
  border-color: var(--ember);
  background: rgba(255, 106, 19, 0.1);
}
.catalog__empty { color: var(--muted); }

/* Visualization / Sketch */
.dv__tag {
  position: absolute;
  left: 10px;
  bottom: 9px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.8;
}
html[data-lang='hy'] .dv__tag { text-transform: none; letter-spacing: 0.04em; }
.viewswitch {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(6px);
}
.viewswitch button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.viewswitch button[aria-pressed='true'] {
  background: var(--ember);
  color: var(--ember-ink);
}
.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.thumb {
  appearance: none;
  flex: none;
  width: 84px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.7;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb[aria-pressed='true'] { border-color: var(--ember); opacity: 1; }

/* Picture + sketch shown together */
.dv__inset {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34%;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  border: 1px solid rgba(214, 206, 196, 0.35);
  background:
    linear-gradient(rgba(214, 206, 196, 0.05) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(90deg, rgba(214, 206, 196, 0.05) 1px, transparent 1px) 0 0 / 10px 10px,
    rgba(14, 14, 16, 0.88);
  color: var(--steel);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.dv__inset .dw {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
}
.dv__inset .dw-dim text { display: none; }
.detail__sketch {
  appearance: none;
  position: relative;
  display: block;
  width: 100%;
  max-width: 340px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
.detail__sketch .dv { transition: border-color 0.2s; }
.detail__sketch:hover .dv { border-color: var(--ember); }
.detail__sketch-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
html[data-lang='hy'] .detail__sketch-label { text-transform: none; letter-spacing: 0.04em; }
@media (max-width: 640px) {
  .dv__inset { width: 40%; right: 6px; bottom: 6px; }
}

.detail__sketch .dv__tag { display: none; }

/* Two email addresses in the contact card */
.contact__emails { display: flex; flex-direction: column; gap: 2px; }
.contact__emails a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.contact__emails a:hover { color: var(--ember, #ff6a1a); }
.contact__email--2 { margin-top: 10px; }
.contact__note { font-size: 0.8rem; opacity: 0.6; letter-spacing: 0.04em; }

/* ---------- Our finished work (real projects) ---------- */
.projects__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.project {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--plate);
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.project img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project:hover img, .project:focus-visible img { transform: scale(1.035); }
.project:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.project__badge, .project__count {
  position: absolute;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.project__badge { left: 12px; background: var(--ember); color: var(--ember-ink); font-weight: 500; }
.project__count { right: 12px; background: rgba(10, 10, 11, 0.6); color: var(--fg); border: 1px solid var(--line-strong); }
.project__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 4px;
  padding: 44px 16px 14px;
  padding-right: 22%;
  background: linear-gradient(to top, rgba(8, 8, 9, 0.92), rgba(8, 8, 9, 0));
}
.project__cat { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ember-hot); letter-spacing: 0.08em; text-transform: uppercase; }
.project__name { font-weight: 600; font-size: var(--step-0); line-height: 1.3; }
.project__open { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); color: var(--muted); }
.project__open svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .projects__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .project__caption { padding: 34px 10px 10px; padding-right: 10px; }
  .project__open, .project__count { display: none; }
  .project__name { font-size: 0.86rem; }
}

/* Large view: show the whole photo (portrait job photos keep their logo corner). */
.dv--large.dv--photo { background: radial-gradient(circle at 50% 40%, #1b1b1e, #0b0b0c); }
.dv--large.dv--photo img { object-fit: contain; }

/* Laptop widths: keep the header on one line. */
@media (max-width: 1460px) {
  .nav { gap: 18px; }
  .nav a { font-size: 0.88rem; }
  .nav a[href="#process"] { display: none; }
}

/* Contact card: one clean sans-serif for all details */
.contact__label {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.contact__value,
.contact__email,
html[data-lang='hy'] .contact__value:not(.contact__email) {
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.contact__emails { gap: 1px; }
.contact__email--2 { margin-top: 12px; }
.contact__note { font-size: 0.82rem; opacity: 1; color: var(--muted); letter-spacing: 0; }
.contact__emails a:hover { color: var(--ember-hot); }
