/* rndrx.com — static rebuild */
:root {
  --bg: #171717;
  --bg-2: #1e1e1e;
  --card: #1c1c1c;
  --line: #2a2a2a;
  --text: #fafaff;
  --muted: #b0b0b0;
  --dim: #a0a0a0;
  --accent: #7b6cf6;
  --accent-2: #b46cf6;
  --head: "Assistant", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
  --inter: "Inter", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.1; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: #fff; color: #000; padding: 8px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.container.narrow { max-width: 860px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(23, 23, 23, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header.is-overlay { position: fixed; inset: 0 0 auto 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.logo img { width: 40px; height: auto; }
.nav-inline ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-inline a { font-size: 16px; position: relative; padding: 6px 0; opacity: .9; transition: opacity .2s; }
.nav-inline a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .3s; }
.nav-inline a:hover, .nav-inline a[aria-current] { opacity: 1; }
.nav-inline a:hover::after, .nav-inline a[aria-current]::after { right: 0; }

.menu-btn { display: none; align-items: center; gap: 12px; font-size: 15px; position: relative; z-index: 60; }
.burger { display: grid; gap: 5px; width: 22px; }
.burger i { display: block; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.menu-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-open .site-header { z-index: 70; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .nav-inline { visibility: hidden; }

/* home: always the "Menu" button like the original */
.home .nav-inline { display: none; }
.home .menu-btn { display: inline-flex; }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(10, 10, 12, .96);
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center;
  padding: var(--header-h) calc(var(--pad) * 2) var(--pad);
  opacity: 0; transition: opacity .35s;
}
.menu[hidden] { display: none; }
.menu.is-visible { opacity: 1; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; }
.menu nav a {
  display: inline-block; font: 800 clamp(44px, 7vw, 96px)/1.05 var(--head); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.6);
  transform: translateY(100%); transition: transform .5s cubic-bezier(.2,.7,.2,1), color .25s;
}
.menu.is-visible nav a { transform: none; }
.menu li:nth-child(2) a { transition-delay: .05s; }
.menu li:nth-child(3) a { transition-delay: .1s; }
.menu li:nth-child(4) a { transition-delay: .15s; }
.menu nav a:hover, .menu nav a[aria-current] { color: var(--text); -webkit-text-stroke-color: var(--text); }
.menu-info h2 { font: 700 28px var(--head); margin-bottom: 14px; }
.menu-info p { margin: 4px 0; color: var(--muted); }
.menu-info a:hover { color: var(--text); }

.socials { display: flex; gap: 14px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--text); border-color: var(--text); }
.socials a:hover svg { fill: var(--bg); }
.socials svg { width: 16px; height: 16px; fill: var(--text); }

/* ---------- Home slider ---------- */
.home { overflow: hidden; }
.slider { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; touch-action: pan-y; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s 1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; z-index: 2; }
.slide-bg { position: absolute; inset: 0; }
.slide-bg > * { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s ease-out; }
.slide.is-active .slide-bg > * { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.75) 100%); }
.slide-content {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 13vh;
  text-align: center; padding: 0 var(--pad);
}
.slide-title {
  font: 800 clamp(48px, 9vw, 132px)/.95 var(--head); text-transform: uppercase; letter-spacing: -.01em;
  text-shadow: 0 4px 40px rgba(0,0,0,.4);
  transform: translateY(40px); opacity: 0; transition: transform .9s cubic-bezier(.2,.7,.2,1) .2s, opacity .9s .2s;
}
.slide-link {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 26px;
  font: 700 14px var(--head); letter-spacing: .12em; text-transform: uppercase;
  transform: translateY(20px); opacity: 0; transition: transform .9s cubic-bezier(.2,.7,.2,1) .4s, opacity .9s .4s;
}
.slide-link .line { width: 36px; height: 1px; background: currentColor; transition: width .3s; }
.slide-link:hover .line { width: 60px; }
.slide.is-active .slide-title, .slide.is-active .slide-link { transform: none; opacity: 1; }

.slider-ui {
  position: absolute; z-index: 5; left: var(--pad); right: var(--pad); bottom: 32px;
  display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.slider-ui > * { pointer-events: auto; }
.counter { display: flex; align-items: center; gap: 12px; font: 700 14px var(--head); letter-spacing: .1em; }
.counter .sep { width: 40px; height: 1px; background: rgba(255,255,255,.5); }
.counter .tot { opacity: .55; }
.dots { display: flex; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .3s, transform .3s; padding: 0; }
.dot.is-active { background: #fff; transform: scale(1.3); }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.arrows button:hover { background: rgba(255,255,255,.12); }
.arrows svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; }
.slider-progress { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.1); }
.slider-progress i { display: block; height: 100%; width: 0; background: #fff; }
.slider-progress i.run { width: 100%; transition: width linear; }

/* ---------- Page hero / eyebrow ---------- */
.page-hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: 32px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 16px var(--head); margin-bottom: 18px; }
.eyebrow span { width: 22px; height: 2px; background: currentColor; display: inline-block; }
.page-hero h1, .project-head h1 { font: 800 clamp(40px, 6vw, 56px)/1 var(--head); text-transform: uppercase; }
.page-hero p { margin: 14px 0 0; font-size: 16px; }

.filters {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 44px;
  padding: 6px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line);
}
.filters button { padding: 8px 14px; border-radius: 7px; font-size: 14px; color: var(--muted); transition: background .2s, color .2s; }
.filters button:hover { color: var(--text); }
.filters button.is-active { background: var(--accent); color: #fff; }

/* ---------- Portfolio grid ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 36px; padding-top: 32px; padding-bottom: 100px; }
.card { transition: opacity .35s, transform .35s; }
.card.is-hidden { display: none; }
.card-tags { margin: 0 0 6px; font: 500 12px var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.card h3 { font: 700 clamp(19px, 2vw, 24px)/1.15 var(--inter); text-transform: uppercase; margin-bottom: 16px; min-height: 2.3em; }
.card-media { overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 9; background: var(--bg-2); }
.card-media > * { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card a:hover .card-media > * { transform: scale(1.05); }

/* ---------- Project page ---------- */
.project-head { padding-top: clamp(32px, 5vw, 60px); padding-bottom: 32px; }
.project-head .eyebrow { color: var(--dim); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.project-media { display: grid; gap: 24px; padding-bottom: 80px; }
.project-media.layout-grid2 { grid-template-columns: repeat(2, 1fr); }
.project-media.layout-grid3 { grid-template-columns: repeat(3, 1fr); }
.media { margin: 0; background: #000; border-radius: 6px; overflow: hidden; }
.media video, .media img { width: 100%; height: auto; }

.next-project { position: relative; display: grid; place-items: center; min-height: 46vh; overflow: hidden; text-align: center; }
.next-bg { position: absolute; inset: 0; }
.next-bg > * { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: grayscale(.4); transition: opacity .5s, transform 1s, filter .5s; }
.next-project:hover .next-bg > * { opacity: .6; transform: scale(1.04); filter: none; }
.next-inner { position: relative; padding: 40px var(--pad); }
.next-inner h3 { font: 700 16px var(--head); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.next-inner h2 { font: 800 clamp(32px, 5vw, 64px)/1 var(--head); text-transform: uppercase; }

/* ---------- Services ---------- */
.services-hero { text-align: center; padding-top: clamp(50px, 8vw, 90px); padding-bottom: 50px; }
.gradient {
  font: 700 clamp(44px, 6vw, 56px)/1.1 var(--head);
  background: linear-gradient(135deg, #8f86ff 0%, #6c5ce7 50%, #a36cf6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.services-hero p { color: var(--muted); font-size: 18px; margin: 26px auto 0; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1100px; padding-bottom: 90px; }
.service {
  background: linear-gradient(145deg, #1d1d1d, #151515); border: 1px solid var(--line); border-radius: 18px;
  padding: 40px 32px; transition: transform .35s, border-color .35s, box-shadow .35s;
}
.service:hover { transform: translateY(-6px); border-color: #3a3550; box-shadow: 0 20px 50px rgba(108, 92, 231, .12); }
.service-icon { font-size: 36px; line-height: 1; margin-bottom: 26px; }
.service h3 { font: 500 24px var(--head); margin-bottom: 14px; }
.service p { color: var(--muted); margin: 0 0 30px; }
.service h5 { font: 600 11px var(--body); letter-spacing: .14em; text-transform: uppercase; color: #6f6f6f; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 13.6px; color: var(--dim); background: #1a1a1a; border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px; }

.cta { text-align: center; padding-bottom: 110px; }
.cta h2 { font: 700 clamp(32px, 4vw, 44px) var(--head); }
.cta p { color: var(--muted); margin: 16px 0 30px; }
.btn {
  display: inline-block; padding: 14px 34px; border-radius: 30px; font-weight: 600;
  background: linear-gradient(135deg, #6c5ce7, #a36cf6); color: #fff;
  transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(108, 92, 231, .35); }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-top: clamp(30px, 6vw, 70px); padding-bottom: 120px; }
.contact h1 { font: 800 clamp(36px, 5vw, 56px)/1.05 var(--head); text-transform: uppercase; }
.contact h2 { font: 700 26px var(--head); margin: 22px 0 14px; }
.contact p { margin: 6px 0; font-size: 15px; }
.contact-lines { margin-top: 22px !important; line-height: 1.8; }
.contact-lines a:hover { color: var(--accent); }
.contact .socials { justify-content: center; margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px var(--pad); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer .socials { margin: 0; }
.site-footer p { margin: 0; color: #777; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .project-media.layout-grid3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .nav-inline { display: none; }
  .menu-btn { display: inline-flex; }
  .menu { grid-template-columns: 1fr; align-content: center; gap: 40px; padding: var(--header-h) var(--pad) var(--pad); }
  .grid-cards, .services-grid, .project-media.layout-grid2, .project-media.layout-grid3 { grid-template-columns: 1fr; }
  .card h3 { min-height: 0; }
  .dots { display: none; }
  .slide-content { bottom: 18vh; }
  .filters { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
