/* ============================================================
   TESSART — цифровое ателье
   Оформление воспроизводит «бумажное» ателье tessartatelier.com
   ============================================================ */

:root {
  --paper: #f4ead2;
  --paper-2: #f8f2e6;
  --paper-3: #faf6ee;
  --paper-deep: #efe4d1;
  --paper-shadow: #e7dac1;

  --ink: #2b241c;
  --ink-soft: #5f584e;
  --brown: #8b7358;

  --gold: #caa34a;
  --gold-deep: #b08a37;
  --gold-pale: #dec27d;

  --green: #173a34;
  --green-soft: #1f4a43;

  --line: #d8c7a2;
  --line-soft: #e4d9c2;

  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --phosphor: #2fbf71;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  background-image:
    linear-gradient(rgba(31, 74, 67, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 74, 67, 0.028) 1px, transparent 1px),
    radial-gradient(rgba(139, 115, 88, 0.05) 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px, 22px 22px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1em; }

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

img, svg { display: block; max-width: 100%; }

/* Общий «кикер» — надзаголовок */
.atelier-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.9rem;
}

/* ══════════════════ ИНТРО-ЗАСТАВКА ══════════════════ */
.intro-cover-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  background-image:
    linear-gradient(rgba(31, 74, 67, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 74, 67, 0.028) 1px, transparent 1px),
    radial-gradient(rgba(139, 115, 88, 0.05) 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px, 22px 22px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-cover-shell.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
}

.intro-cover__card {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 56px 40px;
}

/* рамка с линиями и уголками */
.intro-cover__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-cover__line {
  position: absolute;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.intro-cover__line--top, .intro-cover__line--bottom {
  left: 0; right: 0; height: 1px;
}
.intro-cover__line--top { top: 0; }
.intro-cover__line--bottom { bottom: 0; }
.intro-cover__line--left, .intro-cover__line--right {
  top: 0; bottom: 0; width: 1px;
}
.intro-cover__line--left { left: 0; }
.intro-cover__line--right { right: 0; }

.intro-cover__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 0 solid var(--gold);
  opacity: 0;
}
.intro-cover__corner--tl { top: -3px; left: -3px; border-top-width: 2px; border-left-width: 2px; }
.intro-cover__corner--tr { top: -3px; right: -3px; border-top-width: 2px; border-right-width: 2px; }
.intro-cover__corner--br { bottom: -3px; right: -3px; border-bottom-width: 2px; border-right-width: 2px; }
.intro-cover__corner--bl { bottom: -3px; left: -3px; border-bottom-width: 2px; border-left-width: 2px; }

.intro-cover__art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateY(58px);
}

.intro-cover__center-panel {
  width: 148px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  position: relative;
  opacity: 0;
  animation: introPanel 0.9s ease 0.6s forwards;
}
.intro-cover__center-panel::before,
.intro-cover__center-panel::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: 0 solid var(--gold);
}
.intro-cover__center-panel::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.intro-cover__center-panel::after { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.intro-cover__monogram {
  font-family: var(--serif);
  font-size: 4.6rem;
  font-weight: 500;
  color: var(--gold-deep);
  line-height: 1;
  transform: translateY(0.04em);
}

.intro-cover__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: introContent 0.8s ease 1.1s forwards;
}

.intro-cover__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brown);
  margin: 0;
}

.intro-cover__enter {
  appearance: none;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.8em 2.4em;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.intro-cover__enter:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper-3);
}

/* появление рамки на интро */
.intro-cover-shell.is-ready .intro-cover__line { opacity: 0.85; }
.intro-cover-shell.is-ready .intro-cover__corner { opacity: 1; }

@keyframes introPanel {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes introContent {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════ ОСНОВНОЙ САЙТ ══════════════════ */
.site-underlay {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.site-underlay.is-visible { opacity: 1; }

.site-shell {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.site-shell--framed {
  margin: clamp(24px, 4vw, 48px) auto;
}

/* рамка вокруг всего сайта */
.site-shell__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.site-shell__line {
  position: absolute;
  background: var(--line);
}
.site-shell__line--top, .site-shell__line--bottom { left: 0; right: 0; height: 1px; }
.site-shell__line--top { top: 0; }
.site-shell__line--bottom { bottom: 0; }
.site-shell__line--left, .site-shell__line--right { top: 0; bottom: 0; width: 1px; }
.site-shell__line--left { left: 0; }
.site-shell__line--right { right: 0; }

.site-shell__corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 0 solid var(--gold);
}
.site-shell__corner--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.site-shell__corner--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.site-shell__corner--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.site-shell__corner--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }

.site-shell__content {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px);
}

/* Шапка */
.atelier-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--line-soft);
}
.atelier-topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.atelier-topbar__monogram {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-deep);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  line-height: 1;
}
.atelier-topbar__wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.34em;
  color: var(--ink);
}
.atelier-topbar__tag {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brown);
}

/* ══════════════════ HERO ══════════════════ */
.atelier-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
}
.atelier-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
.atelier-hero__lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 30em;
  margin: 0 0 0.7em;
}
.atelier-hero__text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 34em;
}
.atelier-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2em;
}
.atelier-hero__graphic {
  display: flex;
  justify-content: center;
}
.hero-ornament {
  width: min(280px, 100%);
  height: auto;
}

/* Кнопки-«бирки» */
.action-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-3);
  background: var(--green);
  border: 1px solid var(--green);
  padding: 0.9em 1.8em;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.action-tag:hover {
  background: var(--green-soft);
  border-color: var(--green-soft);
}
.action-tag--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--gold);
}
.action-tag--ghost:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper-3);
}
.action-tag--solid {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper-3);
}
.action-tag--solid:hover {
  background: var(--green-soft);
  border-color: var(--green-soft);
}

/* ══════════════════ СЕКЦИИ ══════════════════ */
.paper-section {
  padding: clamp(40px, 6vw, 84px) 0;
}
.paper-section__inner {
  max-width: 1060px;
  margin: 0 auto;
}
.paper-section__inner--details { max-width: 780px; }
.paper-section__inner--narrow { max-width: 720px; }

.paper-section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}
.paper-section__lead {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.paper-section__lead--details { margin-bottom: 2em; }
.paper-section__lead--center { text-align: center; margin: 0 auto 1.4em; }

.paper-section__list {
  list-style: none;
  margin: 0.6em 0 0;
  padding: 0;
}
.paper-section__list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
}
.paper-section__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
}
.paper-section__list--compact li { margin-bottom: 0.35em; }

/* ПРОЦЕСС */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 2em;
}
.process-card {
  border: 1px solid var(--line-soft);
  padding: 24px 22px;
  background: var(--paper-3);
  position: relative;
}
.process-card::after {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}
.process-card__num {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  margin-bottom: 0.8em;
}
.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}
.process-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Разделитель-орнамент */
.section-callout {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}
.section-divider { width: 300px; height: auto; }

/* ══════════════════ АККОРДЕОНЫ ══════════════════ */
.format-glossary {
  border-top: 1px solid var(--line-soft);
  margin-bottom: 1.4em;
}
.format-glossary__item { border-bottom: 1px solid var(--line-soft); }

.format-glossary__button,
.atelier-accordion__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  text-align: left;
  padding: 0.9em 0;
}
.format-glossary__mark,
.atelier-accordion__mark {
  flex: none;
  font-family: var(--sans);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--gold-deep);
  transition: color 0.3s ease;
}

.format-glossary__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.format-glossary__answer > p {
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.format-glossary__item.is-open .format-glossary__answer { grid-template-rows: 1fr; }
.format-glossary__item.is-open .format-glossary__answer > p { padding: 0 0 1.2em; }

.atelier-accordion { border-bottom: 1px solid var(--line-soft); }
.atelier-accordion__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.atelier-accordion__content > * {
  overflow: hidden;
}
.atelier-accordion.is-open .atelier-accordion__content { grid-template-rows: 1fr; }
.atelier-accordion__content p {
  margin: 0 0 0.6em;
  color: var(--ink-soft);
}
.atelier-accordion.is-open .atelier-accordion__content > * { padding-bottom: 1.2em; }

/* ══════════════════ ПРОДУКТЫ ══════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 2em;
}
.pricing-card {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 2px;
  background: var(--gold);
}
.pricing-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.35em;
}
.pricing-card__lead {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.1em;
}
.pricing-card__list {
  list-style: none;
  margin: 0 0 1.4em;
  padding: 0;
}
.pricing-card__list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
  font-size: 0.92rem;
}
.pricing-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--gold);
}
.pricing-card__link {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  transition: color 0.3s ease;
}
.pricing-card__link:hover { color: var(--green); }

.pricing-note {
  margin-top: 34px;
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  align-items: start;
}
.pricing-note h3 {
  font-size: 1.4rem;
  grid-column: 1 / -1;
  margin-bottom: -10px;
}
.pricing-note p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}
.pricing-note__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pricing-note__list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.5em;
  font-size: 0.92rem;
}
.pricing-note__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  transform: rotate(45deg);
  background: var(--green-soft);
}

/* ОБ АТЕЛЬЕ */
.paper-section--about { text-align: center; }
.paper-section__contacts {
  display: flex;
  justify-content: center;
  margin-top: 1.6em;
}

/* ══════════════════ ФУТЕР ══════════════════ */
.atelier-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line-soft);
  margin-top: clamp(40px, 6vw, 80px);
  padding: 34px 20px 10px;
}
.atelier-footer__corner {
  position: absolute;
  bottom: 0;
  width: 26px; height: 26px;
  border: 0 solid var(--gold);
}
.atelier-footer__corner--bl { left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.atelier-footer__corner--br { right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.atelier-footer p {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: var(--brown);
  margin: 0;
}

/* ══════════════════ РЕСПОНСИВ ══════════════════ */
@media (max-width: 900px) {
  .atelier-hero { grid-template-columns: 1fr; }
  .atelier-hero__graphic { order: -1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-note { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .atelier-topbar__tag { display: none; }
  .intro-cover__card { aspect-ratio: 3 / 4.4; padding: 48px 26px; }
}

/* плавное появление секций при скролле (класс вешает script.js) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .intro-cover__center-panel, .intro-cover__content { opacity: 1; }
}

/* ══════════════════ ПРОЕКТЫ (портфолио) ══════════════════ */
.atelier-hero { display: block; }
.atelier-hero__body { max-width: 780px; }

.paper-section--projects { padding-bottom: 20px; }

.projects-category { margin-bottom: 44px; }
.projects-category__title {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--gold-deep);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--paper-3);
  padding: 20px 22px;
  position: relative;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 44px; height: 2px;
  background: var(--gold);
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.status {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 999px;
  line-height: 1.4;
}
.status--live {
  color: var(--green-soft);
  border-color: var(--green-soft);
  background: rgba(31, 74, 67, 0.08);
}
.status--archive {
  color: var(--brown);
  border-color: var(--line);
  background: rgba(139, 115, 88, 0.08);
}

.project-card__stack {
  font-size: 0.72rem;
  color: var(--brown);
  letter-spacing: 0.02em;
}

.project-card__name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.project-card__link {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.project-card__link:hover { color: var(--green); }

.project-card__muted {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--brown);
}

/* ══════════════════ ЦИФРОВОЙ СЛОЙ ══════════════════ */
/* моноширинный шрифт для «служебного» */
.atelier-kicker,
.atelier-topbar__tag,
.intro-cover__kicker,
.intro-cover__enter,
.action-tag,
.status,
.project-card__stack,
.project-card__link,
.project-card__muted {
  font-family: var(--mono);
}

.project-card__name {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.project-card__name::before {
  content: "▸ ";
  color: var(--gold-deep);
}

.projects-category__title {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--green-soft);
}
.projects-category__title::before {
  content: "// ";
  color: var(--gold);
}

/* терминал-карточка: шапка с тремя «точками» */
.project-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(43, 36, 28, 0.06);
}
.project-card::before {
  content: "";
  display: block;
  position: static;
  top: auto;
  left: auto;
  width: 100%;
  height: 20px;
  flex: none;
  background:
    radial-gradient(circle 3px at 13px 10px, var(--gold-deep) 98%, transparent),
    radial-gradient(circle 3px at 27px 10px, var(--gold) 98%, transparent),
    radial-gradient(circle 3px at 41px 10px, var(--gold-pale) 98%, transparent),
    linear-gradient(rgba(202, 163, 74, 0.10), rgba(202, 163, 74, 0.10));
  border-bottom: 1px solid var(--line-soft);
}

.project-card__shot {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid var(--line-soft);
}

/* живое → фосфорно-зелёный */
.status--live {
  color: #178a4c;
  border-color: #2fbf71;
  background: rgba(47, 191, 113, 0.10);
}
.project-card__link:hover { color: #178a4c; }

/* интро-загрузка */
.intro-cover__boot {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--green-soft);
  margin: 0;
}
.boot-prompt { color: var(--gold-deep); }
.boot-cursor {
  color: var(--phosphor);
  margin-left: 3px;
  animation: bootBlink 1.1s steps(1) infinite;
}
@keyframes bootBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ══════════════════ ФАКТУРЫ (как на tessartatelier.com) ══════════════════ */
/* внешний фон — тёмно-зелёная «папка» */
body {
  background: #0b1714;
  background-image: none;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(8, 8, 8, 0.72), rgba(8, 8, 8, 0.78)),
    url("images/textures/green-vintage-folder-paper.jpg");
  background-size: cover;
  background-position: center;
}

.site-underlay { position: relative; z-index: 1; }

/* интро-обложка — та же «папка» */
.intro-cover-shell {
  background:
    linear-gradient(rgba(8, 8, 8, 0.72), rgba(8, 8, 8, 0.78)),
    url("images/textures/green-vintage-folder-paper.jpg");
  background-size: cover;
  background-position: center;
}
.intro-cover__monogram { color: var(--gold); }
.intro-cover__kicker { color: var(--paper-3); }
.intro-cover__enter { color: var(--paper-3); border-color: var(--gold); }
.intro-cover__enter:hover { background: var(--gold); border-color: var(--gold); color: #1a1510; }
.intro-cover__boot { color: var(--gold-pale); }

/* зелёная «оболочка» — рамка сайта */
.site-shell--framed {
  border-radius: 10px;
  background:
    linear-gradient(rgba(18, 53, 47, 0.82), rgba(23, 68, 61, 0.9)),
    url("images/textures/green-grunge-paper-background.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 42px 110px rgba(6, 10, 8, 0.47), 0 16px 34px rgba(11, 18, 15, 0.25);
  overflow: hidden;
}
.site-shell__line { background: rgba(202, 163, 74, 0.4); }
.site-shell__corner { border-color: var(--gold); }

/* шапка — светлая на зелёном */
.atelier-topbar { border-bottom-color: rgba(202, 163, 74, 0.3); }
.atelier-topbar__wordmark { color: var(--paper-3); }
.atelier-topbar__monogram { color: var(--gold); border-color: var(--gold); }
.atelier-topbar__tag { color: var(--gold-pale); }

/* hero — кремовая панель */
.atelier-hero {
  margin: clamp(28px, 4vw, 48px) 0;
  padding: clamp(26px, 4vw, 46px);
  background-color: #f4ead2;
  background-image: radial-gradient(circle at 50% 30%, rgba(255, 252, 244, 0.86), rgba(255, 252, 244, 0) 62%);
  border: 1px solid rgba(30, 24, 18, 0.5);
  border-radius: 6px;
  box-shadow: 0 18px 30px rgba(13, 14, 11, 0.13);
}

/* кремовые «листы» секций: пиксельная сетка + зерно бумаги */
.paper-section__inner {
  position: relative;
  background-color: #f4ead2;
  background-image:
    linear-gradient(rgba(31, 74, 67, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 74, 67, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, rgba(255, 252, 244, 0.86), rgba(255, 252, 244, 0) 62%);
  background-size: 8px 8px, 8px 8px, 100% 100%;
  border: 1px solid rgba(30, 24, 18, 0.5);
  border-radius: 6px;
  padding: 26px 28px;
  box-shadow: 0 18px 30px rgba(13, 14, 11, 0.13);
}
.paper-section__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("images/textures/vintage-grunge.jpg"),
    url("images/textures/vintage-grunge.jpg");
  background-size: 680px 680px, 680px 680px;
  background-position: 0 0, 340px 340px;
  background-repeat: repeat, repeat;
  opacity: 0.1;
  mix-blend-mode: multiply;
}

/* карточки — кремовые */
.project-card {
  background-color: #f4ead2;
  background-image: radial-gradient(circle at 50% 30%, rgba(255, 252, 244, 0.7), rgba(255, 252, 244, 0) 70%);
  border-color: rgba(30, 24, 18, 0.4);
}

/* футер — светлый на зелёном */
.atelier-footer { border-top-color: rgba(202, 163, 74, 0.3); }
.atelier-footer p { color: var(--gold-pale); }
.atelier-footer__corner { border-color: var(--gold); }

/* логотип (оригинал с tessartatelier.com) */
.intro-cover__logo {
  width: 128px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.atelier-topbar__logo {
  height: 34px;
  width: auto;
  display: block;
}

/* полный логотип — орнаментальный center-panel (золото через маску) */
.intro-cover__emblem {
  position: relative;
  width: min(72%, 560px);
  aspect-ratio: 1.164;
  background: linear-gradient(180deg, #f3d872 0%, #ddb554 45%, #bc8929 100%);
  -webkit-mask-image: url("images/center-panel.svg");
  mask-image: url("images/center-panel.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter: drop-shadow(0 0 10px rgba(248, 230, 165, 0.22)) drop-shadow(0 0 26px rgba(195, 145, 42, 0.14));
  animation: introPanel 0.9s ease 0.55s both;
}

.intro-cover__backing {
  position: absolute;
  inset: 11% 13%;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 245, 220, 0.05), transparent 58%),
    rgba(4, 13, 11, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: introPanel 1s ease 0.4s both;
}

/* эмблема в шапке — самодостаточный логотип (без текста) */
.atelier-topbar__emblem {
  display: block;
  height: 44px;
  width: 51px;
  background: linear-gradient(180deg, #f3d872 0%, #ddb554 45%, #bc8929 100%);
  -webkit-mask-image: url("images/center-panel.svg");
  mask-image: url("images/center-panel.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}



