/*
Theme Name: Ritflow Digital
Theme URI: https://ritflowdigital.co.in/
Author: Ritflow Digital Agency
Author URI: https://ritflowdigital.co.in/
Description: Premium mobile-first full-site editing theme for Ritflow Digital Agency.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ritflow-digital
Tags: portfolio, block-patterns, full-site-editing, custom-logo, featured-images
*/

:root {
  --ink: #0a0c0d;
  --ink-soft: #151817;
  --paper: #f3f1e9;
  --paper-bright: #fbfaf6;
  --muted: #a8aaa4;
  --line: rgba(10, 12, 13, 0.14);
  --lime: #d6ff61;
  --lime-soft: #e8ff9e;
  --violet: #b9a0ff;
  --orange: #ff8e65;
  --max: 1380px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wp-site-blocks,
.wp-site-blocks > * {
  margin-block-start: 0;
}

.wp-site-blocks {
  overflow: clip;
}

.ritflow-main {
  margin: 0;
  padding: 0;
}

.admin-bar .site-header {
  top: 48px;
}

.wp-block-template-part {
  margin: 0;
}

.wp-block-image {
  margin: 0;
}

.wp-block-image img {
  width: 100%;
}

.project-card[hidden] {
  display: none !important;
}

.section-heading .wp-block-group,
.project-meta .wp-block-group {
  margin: 0;
}

.ritflow-empty-page {
  min-height: 70vh;
  padding: 160px max(28px, calc((100vw - var(--max)) / 2)) 100px;
}

.ritflow-empty-page h1 {
  max-width: 880px;
  margin: 0 0 24px;
  font-size: clamp(54px, 8vw, 112px);
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.ritflow-empty-page .wp-block-post-content,
.ritflow-post-list {
  max-width: 860px;
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 56px; }
}

body,
button,
a,
input,
textarea {
  font: inherit;
}

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

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

button {
  color: inherit;
}

svg {
  width: 1.15em;
  height: 1.15em;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 32px), var(--max));
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(14, 16, 16, 0.76);
  color: white;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 1px solid rgba(111, 126, 255, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(67, 93, 255, 0.28);
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 550;
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-links a:hover {
  color: white;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease;
}

.header-cta:hover {
  background: white;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: white;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  min-height: 940px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 48px;
  overflow: hidden;
  padding: 150px max(32px, calc((100vw - var(--max)) / 2)) 154px;
  background:
    radial-gradient(circle at 20% 18%, rgba(185, 160, 255, 0.14), transparent 28%),
    radial-gradient(circle at 85% 70%, rgba(214, 255, 97, 0.1), transparent 30%),
    var(--ink);
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -300px;
  left: -10%;
  height: 390px;
  border-radius: 50% 50% 0 0;
  background: var(--paper);
}

.hero-copy,
.hero-stage,
.hero-metrics {
  position: relative;
  z-index: 2;
}

.hero-copy {
  align-self: center;
  padding-bottom: 56px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(214, 255, 97, 0.1);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 6vw, 106px);
  font-weight: 650;
  letter-spacing: -0.068em;
  line-height: 0.91;
}

.hero h1 em {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-copy > p {
  max-width: 630px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(214, 255, 97, 0.16);
}

.button-primary:hover {
  background: white;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 650;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-left: -7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--violet);
  color: var(--ink);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.avatar-stack i:first-child {
  margin-left: 0;
  background: var(--lime);
}

.avatar-stack i:last-child {
  background: var(--orange);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb-one {
  top: 165px;
  right: 34%;
  width: 220px;
  height: 220px;
  background: rgba(185, 160, 255, 0.1);
  animation: breathe 7s ease-in-out infinite;
}

.hero-orb-two {
  right: 4%;
  bottom: 18%;
  width: 320px;
  height: 320px;
  background: rgba(214, 255, 97, 0.06);
  animation: breathe 9s ease-in-out infinite reverse;
}

.hero-stage {
  min-height: 610px;
  perspective: 1400px;
}

.stage-grid {
  position: absolute;
  inset: -20px -30px;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle, black 20%, transparent 70%);
}

.browser-card,
.phone-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #f7f7f4;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.browser-card {
  border-radius: 13px;
}

.browser-card-main {
  top: 72px;
  right: 10px;
  width: 84%;
  transform: rotateY(-8deg) rotateZ(1.4deg);
  animation: float-main 7s ease-in-out infinite;
}

.browser-card-left {
  bottom: 38px;
  left: -30px;
  width: 55%;
  transform: rotateY(8deg) rotateZ(-4deg);
  animation: float-left 6s ease-in-out infinite;
}

.browser-bar {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: #f2f1ed;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.browser-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8c7c0;
}

.browser-bar b {
  margin-left: auto;
  margin-right: auto;
  color: #8a8a84;
  font-size: 7px;
  font-weight: 600;
}

.browser-card img,
.project-browser img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

.phone-card {
  right: 1%;
  bottom: 1px;
  width: 24%;
  min-width: 150px;
  padding: 7px;
  border: 4px solid #2a2d2d;
  border-radius: 28px;
  transform: rotate(5deg);
  animation: float-phone 5.6s ease-in-out infinite;
}

.phone-card img {
  width: 100%;
  height: 300px;
  border-radius: 18px;
  object-fit: cover;
  object-position: top;
}

.phone-notch {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 50%;
  width: 34%;
  height: 12px;
  border-radius: 10px;
  background: #171919;
  transform: translateX(-50%);
}

.performance-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(20, 23, 22, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.performance-chip span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.performance-chip strong {
  color: var(--lime);
  font-size: 19px;
}

.performance-chip-one {
  top: 35px;
  left: 3%;
}

.performance-chip-two {
  right: 5%;
  bottom: 130px;
}

.hero-metrics {
  position: absolute;
  right: max(32px, calc((100vw - var(--max)) / 2));
  bottom: 90px;
  left: max(32px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metrics div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 22px 0;
}

.hero-metrics div + div {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-metrics strong {
  color: var(--lime);
  font-size: clamp(22px, 2.3vw, 38px);
  letter-spacing: -0.04em;
}

.hero-metrics span {
  max-width: 110px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--lime);
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 38px;
  animation: marquee 24s linear infinite;
}

.marquee span {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.marquee i {
  font-style: normal;
}

.section {
  padding: 130px max(28px, calc((100vw - var(--max)) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 70px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-heading h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(44px, 5.4vw, 84px);
  font-weight: 620;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading > p {
  margin: 0 0 6px;
  color: #656762;
  font-size: 15px;
  line-height: 1.7;
}

.services-section {
  background: var(--paper);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 260ms ease, color 260ms ease, transform 260ms ease;
}

.service-card:hover {
  z-index: 2;
  background: var(--ink);
  color: white;
  transform: translateY(-5px);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #777a73;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-top b {
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 750;
}

.service-card h3 {
  max-width: 290px;
  margin: 70px 0 15px;
  font-size: clamp(25px, 2.3vw, 36px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.service-card p {
  max-width: 350px;
  margin: 0;
  color: #6e706b;
  font-size: 13px;
  line-height: 1.65;
  transition: color 260ms ease;
}

.service-card:hover p,
.service-card:hover .service-top {
  color: rgba(255, 255, 255, 0.58);
}

.service-card > a {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.service-card:hover > a {
  border-color: transparent;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-35deg);
}

.service-card-ugc {
  grid-column: 1 / -1;
  min-height: 285px;
  background: linear-gradient(125deg, rgba(185, 160, 255, 0.16), rgba(214, 255, 97, 0.12));
}

.service-card-ugc h3 {
  max-width: 620px;
  margin-top: 48px;
}

.service-card-ugc p {
  max-width: 720px;
}

.work-section {
  background: var(--ink);
  color: white;
}

.light-heading > p {
  color: rgba(255, 255, 255, 0.52);
}

.filter-row {
  display: flex;
  gap: 8px;
  margin: -25px 0 42px;
}

.filter-row button {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.filter-row button:hover,
.filter-row button.is-active {
  background: var(--lime);
  color: var(--ink);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 58px 24px;
}

.project-card:nth-child(3n) {
  grid-column: span 2;
}

.project-card:nth-child(3n) .project-visual {
  min-height: 650px;
}

.project-card:nth-child(3n) .project-browser {
  width: 76%;
}

.project-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
}

.project-emerald .project-visual { background: #123f34; }
.project-rose .project-visual { background: #c9a7b3; }
.project-pink .project-visual { background: #e5b7ca; }
.project-ruby .project-visual { background: #74283c; }
.project-gold .project-visual { background: #aa7f2e; }

.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.28), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 45%);
}

.project-browser {
  position: relative;
  z-index: 2;
  width: 84%;
  overflow: hidden;
  border-radius: 10px;
  background: white;
  box-shadow: 0 34px 85px rgba(0, 0, 0, 0.32);
  transform: rotate(-1.4deg);
  transition: transform 500ms cubic-bezier(.2,.7,.2,1), box-shadow 500ms ease;
}

.project-card:nth-child(even) .project-browser {
  transform: rotate(1.4deg);
}

.project-card:hover .project-browser {
  transform: rotate(0deg) scale(1.035);
  box-shadow: 0 44px 110px rgba(0, 0, 0, 0.4);
}

.project-index {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: -20px;
  color: rgba(255, 255, 255, 0.12);
  font-size: 120px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 2px 0;
}

.project-meta span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-meta h3 {
  margin: 7px 0 0;
  font-size: 27px;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.project-meta > a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.project-meta > a:hover {
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-35deg);
}

.mini-cta {
  display: grid;
  place-items: center;
  padding: 140px 28px;
  text-align: center;
  background: var(--lime);
}

.mini-cta > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mini-cta h2 {
  max-width: 850px;
  margin: 24px auto 34px;
  font-size: clamp(42px, 6.2vw, 88px);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.button-dark {
  background: var(--ink);
  color: white;
}

.button-dark:hover {
  background: white;
  color: var(--ink);
}

.results-section {
  background: var(--paper-bright);
}

.results-intro {
  max-width: 1040px;
  margin-bottom: 70px;
}

.results-intro h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 630;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.results-intro h2 em {
  color: #6f735f;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.results-intro p {
  max-width: 670px;
  margin: 30px 0 0 auto;
  color: #62655e;
  font-size: 16px;
  line-height: 1.7;
}

.proof-collage {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: 16px;
}

.proof-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.proof-card-tall {
  grid-row: span 2;
}

.proof-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 3px 14px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-label b {
  color: #8a8d85;
  font-weight: 650;
}

.proof-card img {
  width: 100%;
  height: calc(100% - 28px);
  min-height: 215px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
}

.proof-card-tall img {
  min-height: 520px;
}

.proof-statement {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 18px;
  background: var(--lime);
}

.proof-statement strong {
  font-size: clamp(58px, 7vw, 104px);
  letter-spacing: -0.08em;
}

.proof-statement span {
  max-width: 180px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  text-transform: uppercase;
}

.proof-note {
  margin: 20px 0 0;
  color: #8b8e87;
  font-size: 10px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.7fr);
  gap: 70px 120px;
  background: #d9d8cf;
}

.about-title h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(50px, 6.3vw, 96px);
  font-weight: 620;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.about-copy {
  padding-top: 36px;
}

.about-copy p {
  margin: 0 0 18px;
  color: #595c56;
  font-size: 14px;
  line-height: 1.75;
}

.about-copy .about-lead {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.55;
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.industry-list span {
  padding: 10px 13px;
  border: 1px solid rgba(10, 12, 13, 0.2);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-metrics {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(10, 12, 13, 0.2);
}

.about-metrics div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 180px;
  padding: 30px 36px 20px 0;
}

.about-metrics div + div {
  padding-left: 36px;
  border-left: 1px solid rgba(10, 12, 13, 0.2);
}

.about-metrics span {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-metrics strong {
  font-size: clamp(68px, 9vw, 140px);
  font-weight: 650;
  letter-spacing: -0.08em;
  line-height: 0.7;
}

.process-section {
  background: var(--paper);
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-list article {
  display: grid;
  grid-template-columns: 70px 0.65fr 1fr 48px;
  align-items: center;
  gap: 30px;
  min-height: 118px;
  border-bottom: 1px solid var(--line);
  transition: padding 250ms ease, background 250ms ease;
}

.process-list article:hover {
  padding: 0 18px;
  background: var(--lime);
}

.process-list article > span {
  color: #898c85;
  font-size: 10px;
  font-weight: 750;
}

.process-list h3 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 630;
  letter-spacing: -0.04em;
}

.process-list p {
  margin: 0;
  color: #656861;
  font-size: 13px;
  line-height: 1.6;
}

.process-list i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-style: normal;
}

.expertise-band {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 50px 90px;
  padding: 95px max(28px, calc((100vw - var(--max)) / 2));
  background: var(--lime);
}

.expertise-band h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(46px, 5.5vw, 82px);
  font-weight: 630;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.expertise-band > p {
  align-self: end;
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 1.7;
}

.expertise-pills {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(10, 12, 13, 0.2);
}

.expertise-pills span {
  padding: 13px 17px;
  border: 1px solid rgba(10, 12, 13, 0.25);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 90px;
  min-height: 780px;
  background: var(--ink);
  color: white;
}

.testimonial-copy {
  align-self: center;
}

.testimonial-copy h2 {
  margin: 0;
  font-size: clamp(50px, 6vw, 86px);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.testimonial-copy > p {
  max-width: 490px;
  margin: 28px 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.7;
}

.dark-text-link {
  color: white;
}

.testimonial-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 20px;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 190px 190px 20px 20px;
  background: #282b29;
}

.video-card-offset {
  margin-top: 120px;
}

.video-card > img {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.03);
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 400ms ease;
}

.video-card:hover > img {
  transform: scale(1.045);
  filter: saturate(1);
}

.video-card > div {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: rgba(8, 10, 10, 0.78);
  backdrop-filter: blur(12px);
}

.play-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
}

.video-card p {
  margin: 0;
}

.video-card b,
.video-card small {
  display: block;
}

.video-card b {
  font-size: 12px;
}

.video-card small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 9px;
}

.why-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  background: var(--paper-bright);
}

.why-panel h2 {
  max-width: 700px;
  margin: 0 0 48px;
  font-size: clamp(46px, 5.2vw, 78px);
  font-weight: 620;
  letter-spacing: -0.065em;
  line-height: 0.97;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.reason-grid div {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reason-grid span {
  color: #999c95;
  font-size: 9px;
}

.reason-grid strong {
  max-width: 180px;
  font-size: 15px;
  line-height: 1.3;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 200ms ease, background 200ms ease;
}

.faq-list details[open] summary span {
  background: var(--lime);
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 620px;
  margin: -3px 45px 24px 0;
  color: #686b64;
  font-size: 13px;
  line-height: 1.7;
}

.contact-section {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 100px;
  overflow: hidden;
  padding: 140px max(28px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: white;
}

.contact-glow {
  position: absolute;
  top: -280px;
  left: -200px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: rgba(214, 255, 97, 0.1);
  filter: blur(20px);
}

.contact-copy,
.lead-form {
  position: relative;
  z-index: 2;
}

.contact-copy h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(58px, 6.4vw, 96px);
  font-weight: 620;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.contact-copy > p {
  max-width: 520px;
  margin: 30px 0 44px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 15px;
  line-height: 1.7;
}

.contact-direct {
  display: grid;
  gap: 12px;
}

.contact-direct a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-direct span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-direct strong {
  font-size: 13px;
}

.lead-form {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.lead-form label {
  display: block;
  margin-bottom: 18px;
}

.lead-form label > span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  font-size: 13px;
  transition: border-color 180ms ease, background 180ms ease;
}

.lead-form input,
.lead-form select {
  height: 52px;
  padding: 0 14px;
}

.lead-form textarea {
  padding: 14px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--lime);
  background: rgba(255, 255, 255, 0.09);
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.lead-form option {
  color: var(--ink);
}

.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-status {
  display: none;
  margin: 12px 0 0;
  color: var(--lime);
  font-size: 11px;
}

.form-status.is-visible {
  display: block;
}

.lead-form > small {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
  text-align: center;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 80px max(28px, calc((100vw - var(--max)) / 2)) 30px;
  background: #050606;
  color: white;
}

.footer-brand > p {
  max-width: 460px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 13px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-links span {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.32);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes float-main {
  0%, 100% { transform: rotateY(-8deg) rotateZ(1.4deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateZ(1deg) translateY(-12px); }
}

@keyframes float-left {
  0%, 100% { transform: rotateY(8deg) rotateZ(-4deg) translateY(0); }
  50% { transform: rotateY(6deg) rotateZ(-3deg) translateY(10px); }
}

@keyframes float-phone {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-14px); }
}

@media (max-width: 1120px) {
  .nav-links { gap: 18px; }
  .hero {
    min-height: 1100px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding-top: 155px;
  }
  .hero-copy { max-width: 850px; padding-bottom: 0; }
  .hero-stage { width: 86%; min-height: 500px; margin-left: auto; }
  .hero-metrics { bottom: 76px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-section { grid-template-columns: 0.8fr 1.2fr; gap: 50px; }
  .why-section { gap: 60px; }
  .contact-section { gap: 55px; }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(14,16,16,.98);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 15px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(3n) { grid-column: auto; }
  .project-card:nth-child(3n) .project-visual { min-height: 500px; }
  .project-card:nth-child(3n) .project-browser { width: 84%; }
  .about-section,
  .testimonial-section,
  .why-section,
  .contact-section { grid-template-columns: 1fr; }
  .about-metrics { grid-column: auto; }
  .testimonial-copy { max-width: 700px; }
  .testimonial-videos { max-width: 700px; }
  .contact-copy { max-width: 740px; }
  .expertise-band { grid-template-columns: 1fr; }
  .expertise-pills { grid-column: auto; }
}

@media (max-width: 680px) {
  .site-header { top: 10px; width: calc(100% - 20px); height: 64px; border-radius: 16px; }
  .brand img { width: 36px; height: 36px; }
  .hero {
    min-height: 990px;
    display: block;
    padding: 124px 20px 210px;
  }
  .hero h1 { font-size: clamp(52px, 15vw, 72px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .button { width: 100%; }
  .hero-note { align-items: flex-start; }
  .hero-stage { width: 100%; min-height: 360px; margin-top: 58px; }
  .browser-card-main { top: 20px; width: 92%; }
  .browser-card-left { bottom: 16px; left: -12px; width: 58%; }
  .phone-card { right: -2px; bottom: 0; min-width: 104px; width: 29%; border-radius: 20px; }
  .phone-card img { height: 190px; border-radius: 13px; }
  .performance-chip { padding: 9px 10px; gap: 8px; }
  .performance-chip strong { font-size: 15px; }
  .performance-chip-one { top: 2px; left: 0; }
  .performance-chip-two { right: 0; bottom: 78px; }
  .hero-metrics {
    right: 20px;
    bottom: 56px;
    left: 20px;
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-metrics div { gap: 8px; padding: 14px 0; }
  .hero-metrics div + div { padding-left: 12px; }
  .hero-metrics div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .hero-metrics div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.12); }
  .hero-metrics strong { font-size: 23px; }
  .hero-metrics span { font-size: 8px; }
  .section { padding: 92px 20px; }
  .section-heading { margin-bottom: 46px; }
  .section-heading h2 { font-size: clamp(39px, 12vw, 58px); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 300px; }
  .service-card h3 { margin-top: 55px; }
  .filter-row { overflow-x: auto; padding-bottom: 5px; }
  .filter-row button { white-space: nowrap; }
  .projects-grid { gap: 46px; }
  .project-visual,
  .project-card:nth-child(3n) .project-visual { min-height: 310px; }
  .project-browser,
  .project-card:nth-child(3n) .project-browser { width: 90%; }
  .project-index { font-size: 80px; }
  .mini-cta { padding: 100px 20px; }
  .proof-collage { grid-template-columns: 1fr; grid-template-rows: auto; }
  .proof-card-tall { grid-row: auto; }
  .proof-card-tall img { min-height: 250px; }
  .proof-statement { grid-column: auto; }
  .about-section { gap: 48px; }
  .about-metrics { grid-template-columns: 1fr; }
  .about-metrics div { min-height: 130px; padding: 24px 0; }
  .about-metrics div + div { padding-left: 0; border-top: 1px solid rgba(10,12,13,.2); border-left: 0; }
  .process-list article {
    grid-template-columns: 40px 1fr 36px;
    gap: 12px;
    min-height: 126px;
  }
  .process-list p { grid-column: 2 / 4; margin-top: -20px; padding-bottom: 16px; }
  .expertise-band { padding: 76px 20px; gap: 28px; }
  .testimonial-section { min-height: auto; }
  .testimonial-videos { gap: 10px; }
  .video-card { border-radius: 100px 100px 15px 15px; }
  .video-card-offset { margin-top: 54px; }
  .video-card > div { right: 7px; bottom: 7px; left: 7px; padding: 8px; }
  .play-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .video-card b { font-size: 10px; }
  .why-section { gap: 80px; }
  .reason-grid { grid-template-columns: 1fr; }
  .contact-section { padding: 100px 20px; }
  .contact-copy h2 { font-size: clamp(52px, 14vw, 72px); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .lead-form { padding: 22px 16px; }
  footer { grid-template-columns: 1fr; padding: 64px 20px 26px; }
  .footer-bottom { grid-column: auto; align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
