/*
Theme Name: Diwe Agency Clone
Theme URI: https://webdemo2.ltgroups.com
Author: LT Groups
Description: Agency landing page rebuilt for webdemo2.ltgroups.com.
Version: 1.3.1
Text Domain: diwe-agency-clone
*/

:root {
  --red: #df222b;
  --red-dark: #b8111c;
  --orange: #ff7a1a;
  --gold: #ffcf74;
  --cyan: #35d5ff;
  --ink: #151922;
  --muted: #687080;
  --line: #eceff4;
  --cream: #fff7ee;
  --soft: #f7f8fb;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(18, 24, 38, 0.14);
  --section-line: rgba(223, 34, 43, 0.08);
  --radius: 8px;
  --container: min(1400px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", "Montserrat", Arial, sans-serif;
  background: var(--white);
  line-height: 1.55;
}

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

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

.site-shell {
  overflow: hidden;
}

.topbar {
  background: linear-gradient(90deg, var(--red-dark), var(--red), var(--orange));
  color: var(--white);
  font-size: 13px;
}

.topbar-inner,
.nav-inner,
.section-inner {
  width: var(--container);
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 18px;
}

.topbar-note {
  font-weight: 700;
}

.topbar-links {
  display: flex;
  gap: 14px;
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 225, 235, 0.8);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: radial-gradient(circle at 30% 20%, #ffb068, var(--red) 58%, #8e0812);
  box-shadow: 0 12px 34px rgba(223, 34, 43, 0.28);
  animation: brandPulse 3.8s ease-in-out infinite;
}

.brand-name {
  display: grid;
  line-height: 1.05;
}

.brand-name strong {
  font-size: 22px;
}

.brand-name span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-menu a {
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 0.24s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  min-width: max-content;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 16px 34px rgba(223, 34, 43, 0.25);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  overflow: hidden;
}

.btn-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(223, 34, 43, 0.32);
}

.btn:hover::after {
  left: 118%;
}

.btn.secondary {
  background: var(--white);
  color: var(--red);
  border: 1px solid rgba(223, 34, 43, 0.18);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 640px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 18, 30, 0.95) 0%, rgba(26, 16, 20, 0.84) 44%, rgba(223, 34, 43, 0.55) 100%),
    url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1800&q=85") center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -22% -12%;
  height: 250px;
  background: var(--white);
  transform: rotate(-3deg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 78%);
  animation: gridDrift 18s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 42px 0 86px;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  animation: floatIcon 6.5s ease-in-out infinite;
  translate: var(--mx, 0) var(--my, 0);
  transition: translate 0.28s ease-out;
}

.hero-orbit svg,
.animated-icon svg,
.motion-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.orbit-one {
  top: 18%;
  left: 5%;
}

.orbit-two {
  right: 8%;
  top: 20%;
  animation-delay: -1.8s;
}

.orbit-three {
  right: 38%;
  bottom: 18%;
  animation-delay: -3s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ffd4bd;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1 {
  margin: 20px 0 18px;
  max-width: 720px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 950;
}

.hero h1 span {
  display: block;
  color: #ffcf9b;
}

.typed-text {
  min-height: 1.02em;
}

.typed-text::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.86em;
  margin-left: 7px;
  background: var(--gold);
  vertical-align: -0.08em;
  animation: caretBlink 0.82s steps(1) infinite;
}

.hero p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-mini-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.hero-mini-metrics strong {
  color: var(--gold);
}

.hero-card {
  position: relative;
  min-height: 470px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  animation: imageFloat 7s ease-in-out infinite;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-panel {
  position: absolute;
  left: -30px;
  bottom: 32px;
  width: 270px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  animation: panelFloat 5.8s ease-in-out infinite;
}

.hero-widget {
  position: absolute;
  right: -18px;
  top: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  animation: panelFloat 5.4s ease-in-out infinite reverse;
}

.hero-widget strong,
.hero-widget small {
  display: block;
}

.hero-widget small {
  color: var(--muted);
  font-weight: 800;
}

.motion-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 16px 32px rgba(223, 34, 43, 0.28);
  animation: iconSpinPulse 4.2s ease-in-out infinite;
}

.floating-panel strong {
  display: block;
  font-size: 34px;
  color: var(--red);
  line-height: 1;
}

section {
  position: relative;
  padding: 0;
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 44%, var(--section-line) 44% 44.35%, transparent 44.35%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent 46%, rgba(255, 255, 255, 0.36));
  opacity: 0.5;
}

section > .section-inner,
.hero > .hero-inner,
.hero > .hero-orbit {
  position: relative;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-head h2,
.split-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 950;
}

.section-head p,
.split-copy p {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 620px;
}

.solution-strip {
  background:
    linear-gradient(180deg, var(--white), #fff9f1 58%, var(--white));
  padding-top: 0;
}

.solution-strip .section-inner,
.about .section-inner,
.services .section-inner,
.partners .section-inner,
.projects .section-inner,
.blog .section-inner {
  padding: 78px 0;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.solution-card,
.service-card,
.project-card,
.post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(19, 28, 44, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.solution-card:hover,
.service-card:hover,
.project-card:hover,
.post-card:hover {
  transform: translateY(-5px);
  border-color: rgba(223, 34, 43, 0.25);
  box-shadow: 0 24px 58px rgba(19, 28, 44, 0.11);
}

.solution-card {
  padding: 24px;
  position: relative;
}

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--red);
  font-weight: 950;
  margin-bottom: 18px;
  position: relative;
  isolation: isolate;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.icon-badge span {
  position: absolute;
  right: -8px;
  bottom: -6px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  border: 2px solid var(--white);
  font-size: 10px;
}

.animated-icon {
  animation: iconBob 3.6s ease-in-out infinite;
}

.solution-card:nth-child(2n) .animated-icon,
.service-card:nth-child(2n) .animated-icon {
  animation-delay: -1.2s;
}

.solution-card:nth-child(3n) .animated-icon,
.service-card:nth-child(3n) .animated-icon {
  animation-delay: -2.1s;
}

.solution-card h3,
.service-card h3,
.project-card h3,
.post-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

.solution-card p,
.service-card p,
.post-card p {
  color: var(--muted);
  margin: 0;
}

.about {
  background:
    linear-gradient(180deg, var(--white), #f7f8fb 50%, #fff4ea);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 58px;
  align-items: center;
}

.image-stack {
  position: relative;
  min-height: 520px;
}

.image-stack img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-stack .main {
  inset: 0 80px 70px 0;
  width: calc(100% - 80px);
  height: calc(100% - 70px);
}

.image-stack .small {
  right: 0;
  bottom: 0;
  width: 46%;
  height: 42%;
  border: 8px solid var(--white);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: #313846;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(223, 34, 43, 0.1);
  color: var(--red);
  font-size: 14px;
}

.covid-band {
  padding: 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(181, 17, 28, 0.94), rgba(255, 122, 26, 0.88)),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1600&q=85") center / cover no-repeat;
}

.covid-band .section-inner {
  padding: 62px 0;
}

.covid-band::before,
.cta::before,
.stats::before {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 18px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent);
  opacity: 0.42;
}

.covid-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.covid-band h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.services {
  background:
    linear-gradient(180deg, var(--white), #fffaf3 44%, #f7f8fb);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card img,
.project-card img,
.post-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.service-media {
  position: relative;
  overflow: visible;
}

.service-media img {
  transition: transform 0.55s ease, filter 0.55s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.service-icon {
  position: absolute;
  right: 18px;
  bottom: -26px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--orange));
  border: 5px solid var(--white);
  box-shadow: 0 18px 36px rgba(223, 34, 43, 0.22);
}

.service-icon svg {
  width: 27px;
  height: 27px;
}

.service-card-content,
.post-card-content {
  padding: 24px;
}

.card-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
}

.text-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  transition: transform 0.22s ease;
}

.text-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link:hover .text-icon {
  transform: translateX(3px);
}

button.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.stats {
  padding: 0;
  background:
    linear-gradient(135deg, #131722, #20171b 46%, #3b151c),
    linear-gradient(90deg, transparent, rgba(53, 213, 255, 0.16));
  color: var(--white);
}

.stats .section-inner {
  padding: 72px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s ease;
}

.stat-card.is-visible::after {
  transform: scaleX(1);
}

.stat-card strong {
  display: block;
  font-size: 46px;
  line-height: 1;
  color: #ffbd87;
}

.partners {
  background:
    linear-gradient(180deg, #f7f8fb, #fff8ef);
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.logo-item {
  height: 76px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #a0a7b5;
  transition: transform 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.logo-item:hover {
  transform: translateY(-4px);
  color: var(--red);
  box-shadow: 0 18px 40px rgba(19, 28, 44, 0.09);
}

.projects {
  background:
    linear-gradient(180deg, var(--white), #fff8ef 48%, var(--white));
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.tabs span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--muted);
}

.tabs span:first-child {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  position: relative;
  min-height: 280px;
}

.project-card img {
  height: 280px;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.07);
}

.project-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 18px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, rgba(21, 25, 34, 0.94), rgba(223, 34, 43, 0.84));
}

.project-info h3 {
  margin: 0 0 6px;
}

.project-info p {
  margin: 0;
  opacity: 0.84;
}

.blog {
  background:
    linear-gradient(180deg, #f7f8fb, #ffffff 52%, #fff7ee);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cta {
  padding: 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 22, 35, 0.95), rgba(223, 34, 43, 0.86)),
    url("https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=1700&q=85") center / cover no-repeat;
}

.cta .section-inner {
  padding: 72px 0;
}

.cta .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.cta h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #0f121b;
  padding: 54px 0 24px;
}

.footer-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr;
  gap: 30px;
}

.site-footer h3 {
  color: var(--white);
  margin: 0 0 16px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.68);
}

.footer-bottom {
  width: var(--container);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}

.consult-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.consult-modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 22, 0.72);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  width: min(920px, calc(100vw - 28px));
  margin: 7vh auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.modal-art {
  min-height: 520px;
  color: var(--white);
  padding: 34px;
  background:
    linear-gradient(160deg, rgba(181, 17, 28, 0.95), rgba(255, 122, 26, 0.72)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=900&q=85") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.modal-art h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.08;
}

.modal-form {
  padding: 34px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 18, 27, 0.08);
  cursor: pointer;
  font-size: 22px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 900;
  color: #343b49;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #dfe4ec;
  border-radius: var(--radius);
  min-height: 46px;
  padding: 12px 14px;
  font: inherit;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.notice {
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-weight: 800;
}

.notice.success {
  color: #075d34;
  background: #dff8e8;
}

.notice.error {
  color: #8f101b;
  background: #ffe4e7;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@keyframes caretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes brandPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 12px 34px rgba(223, 34, 43, 0.28); }
  50% { transform: scale(1.06); box-shadow: 0 18px 44px rgba(223, 34, 43, 0.42); }
}

@keyframes floatIcon {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(12px, -18px, 0) rotate(8deg); }
}

@keyframes imageFloat {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-12px); }
}

@keyframes panelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes iconBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(4deg); }
}

@keyframes iconSpinPulse {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.08); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 88px 88px, 88px 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

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

  .hero-inner,
  .split,
  .modal-dialog {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 420px;
  }

  .solution-grid,
  .service-grid,
  .stats-grid,
  .project-grid,
  .post-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-cloud {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .topbar-inner,
  .section-head,
  .covid-band .section-inner,
  .cta .section-inner,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-inner {
    min-height: 68px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 34px 0 72px;
  }

  .hero h1 {
    font-size: 42px;
  }

  section {
    padding: 0;
  }

  .solution-strip .section-inner,
  .about .section-inner,
  .services .section-inner,
  .partners .section-inner,
  .projects .section-inner,
  .blog .section-inner,
  .stats .section-inner,
  .cta .section-inner,
  .covid-band .section-inner {
    padding: 54px 0;
  }

  .solution-grid,
  .service-grid,
  .stats-grid,
  .project-grid,
  .post-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .logo-cloud {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-stack {
    min-height: 430px;
  }

  .floating-panel {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .modal-art {
    min-height: 260px;
  }
}
