:root {
  --paper: #0f1412;
  --paper-soft: #151c19;
  --surface: #1b231f;
  --surface-strong: #222c27;
  --ink: #f3eee6;
  --ink-soft: #b7c1b9;
  --line: rgba(239, 232, 220, .14);
  --white: #fffdf9;
  --green: #4f8a70;
  --green-dark: #16241f;
  --brass: #d4a35b;
  --clay: #d48668;
  --shadow: 0 20px 56px rgba(0, 0, 0, .34);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0, rgba(79, 138, 112, .14), transparent 32%),
    radial-gradient(circle at 90% 8%, rgba(212, 163, 91, .11), transparent 30%),
    var(--paper);
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: rgba(183, 193, 185, .68);
}

button {
  color: inherit;
}

button,
.action-link,
.text-link,
.work-card,
.thumb {
  touch-action: manipulation;
}

a {
  color: inherit;
}

.container {
  width: min(1440px, 100% - 40px);
  margin-inline: auto;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 20, 18, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 210px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brass), var(--green));
  color: #0f1412;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.main-nav a:hover {
  color: var(--ink);
  background: rgba(79, 138, 112, .14);
}

.header-actions,
.hero-actions,
.contact-links,
.viewer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.action-link,
.text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--line);
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
}

.action-link.primary {
  background: var(--green);
  color: #07100d;
  border-color: var(--green);
}

.action-link.whatsapp {
  background: rgba(46, 125, 83, .18);
  color: #8fe0af;
  border-color: rgba(143, 224, 175, .28);
}

.action-link.telegram {
  background: rgba(64, 132, 184, .18);
  color: #9bd2ff;
  border-color: rgba(155, 210, 255, .28);
}

.text-link {
  background: transparent;
  color: var(--green);
  border-color: transparent;
  padding-inline: 0;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: min(780px, calc(100vh - 72px));
  color: var(--white);
  background: #0c100e;
}

.hero-layout {
  position: relative;
  min-height: min(780px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  padding: 78px 0 92px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: 0;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 21, 18, .92) 0%, rgba(16, 21, 18, .72) 42%, rgba(16, 21, 18, .22) 100%),
    linear-gradient(180deg, rgba(16, 21, 18, .2), rgba(16, 21, 18, .74));
}

.hero-media-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  opacity: .9;
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: #2f342f;
}

.hero-media:first-child {
  grid-row: span 2;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.03);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 7vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  margin: 24px 0 0;
  max-width: 610px;
  color: rgba(255, 253, 249, .86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 32px;
}

.hero-actions .action-link {
  min-height: 48px;
  padding-inline: 18px;
}

.hero-facts {
  margin: 42px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 14px;
}

.hero-facts div {
  padding: 14px;
  border: 1px solid rgba(255, 253, 249, .18);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, .08);
  backdrop-filter: blur(8px);
}

.hero-facts dt {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
}

.hero-facts dd {
  margin: 3px 0 0;
  color: rgba(255, 253, 249, .76);
  font-size: 13px;
}

.hero-note {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  z-index: 2;
  width: min(320px, calc(100vw - 32px));
  border: 1px solid rgba(255, 253, 249, .2);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(15, 20, 17, .72);
  backdrop-filter: blur(12px);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  font-size: 14px;
}

.hero-note span {
  margin-top: 4px;
  color: rgba(255, 253, 249, .74);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: 76px 0;
}

.section-head {
  width: min(760px, 100%);
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.service-card,
.work-card,
.process-list article,
.contact-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}

.service-card {
  min-height: 250px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.service-card span,
.process-list span {
  color: var(--clay);
  font-weight: 900;
  font-size: 13px;
}

.service-card h3,
.process-list h3 {
  margin: auto 0 10px;
  font-size: 23px;
  line-height: 1.15;
}

.service-card p,
.process-list p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.portfolio-section {
  background: rgba(21, 28, 25, .86);
}

.portfolio-head {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.portfolio-tools {
  width: min(320px, 100%);
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.search-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(79, 138, 112, .2);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 8px 12px;
  font-weight: 800;
}

.filter-chip.is-active {
  color: #07100d;
  border-color: var(--green);
  background: var(--green);
}

.portfolio-meta {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.work-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.work-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-strong);
  overflow: hidden;
}

.work-card-media img,
.work-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: var(--ink-soft);
  background: linear-gradient(135deg, #202a25, #26352e);
  font-weight: 900;
}

.card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: var(--radius);
  background: rgba(30, 37, 33, .82);
  color: var(--white);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.work-card-body {
  padding: 16px;
}

.work-card-body h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.work-card-body p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card-footer {
  padding: 0 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  padding: 26px;
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
}

.empty-state strong {
  color: var(--ink);
}

.process-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.process-list article {
  min-height: 210px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(79, 138, 112, .2), transparent 50%),
    var(--green-dark);
  color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 34px;
  align-items: center;
}

.contact-layout h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
}

.contact-layout p:not(.eyebrow) {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255, 253, 249, .78);
  font-size: 18px;
  line-height: 1.55;
}

.contact-panel {
  padding: 22px;
  background: var(--surface);
  color: var(--ink);
}

.contact-panel strong,
.contact-panel span {
  display: block;
}

.contact-panel strong {
  font-size: 24px;
}

.contact-panel > span {
  margin-top: 4px;
  color: var(--ink-soft);
}

.contact-links {
  margin-top: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0b0f0d;
}

.policy-page {
  min-height: calc(100vh - 144px);
  padding: 64px 0;
}

.policy-layout {
  display: grid;
  gap: 28px;
}

.policy-layout h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.policy-content {
  display: grid;
  gap: 12px;
}

.policy-content article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.policy-content h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.policy-content p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-inner a {
  text-decoration: none;
  font-weight: 800;
  color: var(--brass);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  background: rgba(15, 18, 16, .96);
  color: var(--white);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(176, 122, 56, .14), transparent 34%),
    rgba(10, 12, 11, .88);
}

.icon-button {
  border: 1px solid rgba(255, 253, 249, .2);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, .1);
  color: var(--white);
  cursor: pointer;
}

.viewer-topbar {
  position: fixed;
  left: 18px;
  right: 18px;
  top: 14px;
  z-index: 5;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.viewer-close {
  min-height: 44px;
  border: 1px solid rgba(255, 253, 249, .18);
  border-radius: var(--radius);
  background: rgba(34, 44, 39, .94);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .26);
}

.viewer-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 72px 84px 96px;
  touch-action: pan-y;
}

.viewer-stage img,
.viewer-stage video {
  max-width: 100%;
  max-height: calc(100vh - 112px);
  object-fit: contain;
}

.viewer-stage iframe {
  width: min(100%, 1180px);
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}

.viewer-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 50px;
  height: 58px;
  transform: translateY(-50%);
  font-size: 34px;
  backdrop-filter: blur(10px);
}

.viewer-nav.prev {
  left: 16px;
}

.viewer-nav.next {
  right: 436px;
}

.viewer-info {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  overflow: auto;
  padding: 86px 24px 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .28);
}

.viewer-counter {
  margin: 0;
  color: rgba(255, 253, 249, .78);
  font-size: 13px;
  font-weight: 900;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 253, 249, .16);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, .08);
  padding: 7px 10px;
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.viewer-info h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.viewer-info > p:not(.viewer-counter) {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.viewer-actions {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.thumbs {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.thumb {
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-soft);
  cursor: pointer;
  padding: 0;
}

.thumb.is-active {
  border-color: var(--green);
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

@media (min-width: 1680px) {
  .container {
    width: min(1680px, 100% - 72px);
  }

  .hero-copy h1 {
    font-size: clamp(64px, 5vw, 96px);
  }

  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }

  .process-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .viewer-stage {
    min-height: 58vh;
    padding: 66px 58px 18px;
  }

  .viewer-stage img,
  .viewer-stage video {
    max-height: 50vh;
  }

  .viewer-info {
    min-height: 0;
    max-height: 42vh;
    padding: 20px;
    box-shadow: none;
  }

  .viewer-nav.next {
    right: 16px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, 1440px);
  }

  .header-inner {
    min-height: auto;
    padding: 10px 0;
    align-items: center;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .header-actions .action-link {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .header-actions .action-link:not(.primary) {
    display: none;
  }

  .hero-section,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    align-items: start;
    padding: 42px 0 156px;
  }

  .hero-media-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
  }

  .hero-media:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .hero-copy h1 {
    font-size: clamp(31px, 11vw, 48px);
    line-height: 1.03;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-facts div {
    padding: 10px 12px;
  }

  .hero-note {
    right: 12px;
    bottom: 14px;
    width: min(360px, calc(100vw - 24px));
  }

  .section {
    padding: 54px 0;
  }

  .portfolio-head {
    display: grid;
  }

  .portfolio-tools {
    width: 100%;
  }

  .service-grid,
  .gallery,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-list article {
    min-height: 0;
  }

  .service-card h3,
  .process-list h3 {
    margin-top: 34px;
  }

  .footer-inner {
    min-height: auto;
    padding: 18px 0;
    display: grid;
  }

  .lightbox {
    display: block;
    background: #050706;
  }

  .lightbox-backdrop {
    background: #050706;
  }

  .viewer-stage {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
      calc(64px + env(safe-area-inset-top))
      0
      calc(24px + env(safe-area-inset-bottom));
    touch-action: pan-y;
  }

  .viewer-stage img,
  .viewer-stage video {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: none;
    object-fit: contain;
  }

  .viewer-stage iframe {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }

  .viewer-nav {
    width: 48px;
    height: 64px;
    font-size: 30px;
    border-color: rgba(255, 253, 249, .14);
    background: rgba(5, 7, 6, .6);
  }

  .viewer-nav.prev {
    left: 8px;
  }

  .viewer-nav.next {
    right: 8px;
  }

  .viewer-info {
    display: none;
  }

  .viewer-topbar {
    left: 12px;
    right: 12px;
    top: calc(10px + env(safe-area-inset-top));
  }

  .viewer-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    position: relative;
    padding: 0;
    color: transparent;
    font-size: 0;
  }

  .viewer-close::before,
  .viewer-close::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    top: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
  }

  .viewer-close::before {
    rotate: 45deg;
  }

  .viewer-close::after {
    rotate: -45deg;
  }

  .viewer-counter {
    min-height: 36px;
    background: rgba(5, 7, 6, .68);
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 18px, 1440px);
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 11px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .hero-actions,
  .contact-links,
  .viewer-contact {
    align-items: stretch;
  }

  .hero-actions .action-link,
  .contact-links .action-link,
  .viewer-contact .action-link {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .viewer-topbar {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .viewer-close {
    min-height: 40px;
    padding-inline: 12px;
  }

  .viewer-counter {
    min-height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .work-card,
  .filter-chip,
  .action-link {
    transition: none;
  }
}
