:root {
  --ink-950: #050505;
  --ink-900: #0b0b0d;
  --ink-800: #191615;
  --blue-600: #ff5a00;
  --blue-500: #ff7a1a;
  --cyan-400: #ff5a00;
  --green-400: #f5f3ef;
  --white: #ffffff;
  --paper: #f7f4f0;
  --paper-2: #ede7df;
  --line: rgba(255, 90, 0, 0.16);
  --muted: #6f6862;
  --shadow: 0 24px 60px rgba(5, 5, 5, 0.28);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  color: var(--ink-950);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(5, 5, 5, 0.78);
  border: 1px solid rgba(255, 90, 0, 0.22);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.94);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand img,
.footer-brand img {
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255, 90, 0, 0.26), 0 0 24px rgba(255, 90, 0, 0.2);
}

.brand span,
.footer-brand span {
  display: grid;
  line-height: 1.1;
}

.brand strong,
.footer-brand strong {
  font-size: 1rem;
}

.brand small,
.footer-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 6px;
  font-size: 0.93rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.site-nav .nav-cta {
  margin-left: 6px;
  color: var(--white);
  background: var(--cyan-400);
  font-weight: 800;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--ink-950);
  background: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 84svh;
  overflow: hidden;
  color: var(--white);
  background-color: var(--ink-950);
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.82) 46%, rgba(5, 5, 5, 0.62)),
    radial-gradient(circle at 78% 28%, rgba(255, 90, 0, 0.32), transparent 30%),
    url("../img/fundo.png");
  background-position: center;
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
}

@supports (background-image: image-set(url("../img/fundo.webp") 1x)) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.82) 46%, rgba(5, 5, 5, 0.62)),
      radial-gradient(circle at 78% 28%, rgba(255, 90, 0, 0.32), transparent 30%),
      image-set(url("../img/fundo.webp") type("image/webp"), url("../img/fundo.png") type("image/png"));
  }
}

#tech-canvas,
.hero-grid,
.hero-orbit {
  position: absolute;
  inset: 0;
}

#tech-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.hero-grid {
  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: 58px 58px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 74%, transparent);
}

.hero-orbit {
  border: 1px solid rgba(255, 90, 0, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit-a {
  inset: auto -12vw -34vw auto;
  width: 58vw;
  height: 58vw;
}

.hero-orbit-b {
  inset: 18vh auto auto -16vw;
  width: 32vw;
  height: 32vw;
  border-color: rgba(255, 255, 255, 0.16);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  width: min(calc(100% - 32px), var(--max));
  min-height: 84svh;
  margin: 0 auto;
  padding: clamp(112px, 15vh, 170px) 0 clamp(52px, 8vh, 86px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-400);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.03rem, 1.8vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, #ff4a00, #ff7a1a);
  box-shadow: 0 18px 40px rgba(255, 90, 0, 0.28);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 0.86rem;
}

.hero-system {
  position: relative;
  min-height: 430px;
}

.system-panel {
  position: absolute;
  color: var(--white);
  background: rgba(8, 8, 8, 0.78);
  border: 1px solid rgba(255, 90, 0, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-main {
  inset: 32px 0 auto auto;
  width: min(100%, 430px);
  min-height: 300px;
  overflow: hidden;
}

.panel-top {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan-400);
}

.panel-top span:nth-child(2) {
  background: var(--green-400);
}

.panel-top span:nth-child(3) {
  background: var(--blue-500);
}

.panel-body {
  padding: 22px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.metric-row strong {
  font-size: 1rem;
}

.metric-row span {
  color: var(--green-400);
  font-size: 1.8rem;
  font-weight: 900;
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 10px;
  height: 122px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.chart-bars i {
  display: block;
  height: var(--h);
  min-height: 24px;
  background: linear-gradient(180deg, var(--white), var(--blue-600));
  border-radius: 6px 6px 2px 2px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.flow-list span {
  padding: 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  font-size: 0.75rem;
}

.panel-code {
  left: 0;
  top: 0;
  display: grid;
  gap: 8px;
  width: 255px;
  padding: 16px;
  transform: translateY(16px);
}

.panel-code code {
  color: var(--green-400);
  font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
  font-size: 0.82rem;
}

.panel-mini {
  right: 18px;
  bottom: 26px;
  width: 225px;
  padding: 18px;
}

.panel-mini span {
  color: var(--cyan-400);
  font-size: 0.82rem;
  font-weight: 900;
}

.panel-mini strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
}

.trust-band strong {
  display: block;
  color: var(--blue-600);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.trust-band span {
  display: block;
  max-width: 260px;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-light {
  background: var(--white);
}

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

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 90, 0, 0.18), transparent 28%),
    linear-gradient(135deg, var(--ink-950), var(--ink-800));
}

.section-heading {
  width: min(calc(100% - 32px), 800px);
  margin: 0 auto clamp(34px, 5vw, 54px);
  text-align: center;
}

.section-heading.align-left {
  width: auto;
  margin: 0;
  text-align: left;
}

.section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.section-dark .section-heading p:not(.eyebrow),
.section-dark .solution-list span {
  color: rgba(255, 255, 255, 0.76);
}

.service-grid,
.process-grid,
.portfolio-grid {
  display: grid;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  gap: 18px;
}

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

.service-card,
.process-grid article,
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card {
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 0, 0.34);
  box-shadow: 0 18px 44px rgba(5, 5, 5, 0.12);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--blue-600);
  background: linear-gradient(135deg, rgba(255, 90, 0, 0.16), rgba(255, 255, 255, 0.8));
  border-radius: 6px;
}

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

.service-card h3,
.process-grid h3,
.project-card h3 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.service-card p,
.process-grid p,
.project-card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: clamp(36px, 7vw, 92px);
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.solution-list {
  display: grid;
  gap: 16px;
}

.solution-list div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.solution-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan-400);
  font-size: 1.1rem;
}

.solution-list span {
  display: block;
}

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

.process-grid article {
  padding: 24px;
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.process-grid span {
  color: var(--blue-600);
  font-size: 0.86rem;
  font-weight: 900;
}

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

.project-card {
  overflow: hidden;
}

.project-card h3,
.project-card p,
.project-link {
  padding-inline: 22px;
}

.project-card p {
  padding-bottom: 0;
}

.project-visual,
.project-link {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin: 18px 22px 24px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 90, 0, 0.92);
  border: 1px solid rgba(255, 90, 0, 0.28);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-link:hover,
.project-link:focus-visible {
  background: var(--ink-950);
  transform: translateY(-2px);
}

.project-visual {
  position: relative;
  display: block;
  width: 100%;
  height: 190px;
  padding: 0;
  overflow: hidden;
  background: var(--ink-900);
  border: 0;
  text-align: left;
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 48%, rgba(5, 5, 5, 0.38));
  pointer-events: none;
}

.project-visual picture,
.project-visual img {
  width: 100%;
  height: 100%;
}

.project-visual picture {
  display: block;
}

.project-visual img {
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

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

.project-visual:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: -3px;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  pointer-events: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(12px);
}

.project-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: clamp(18px, 3vw, 34px);
  width: min(1080px, 100%);
  max-height: min(86svh, 780px);
  overflow: auto;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 90, 0, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(31, 18, 12, 0.98));
  border: 1px solid rgba(255, 90, 0, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.project-modal-panel figure {
  min-height: 100%;
  margin: 0;
  background: var(--ink-950);
}

.project-modal-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: top center;
}

.project-modal-copy {
  align-self: center;
  padding: clamp(26px, 4vw, 44px) clamp(22px, 4vw, 44px) clamp(26px, 4vw, 44px) 0;
}

.project-modal-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.project-modal-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.03rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: rgba(255, 90, 0, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--white);
  color: var(--ink-950);
}

.video-popup[hidden],
.cookie-banner[hidden],
.terms-modal[hidden] {
  display: none;
}

.video-popup {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: grid;
  place-items: center;
  padding: 24px;
}

.video-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(12px);
}

.video-popup-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  align-items: center;
  gap: clamp(20px, 4vw, 42px);
  width: min(1120px, 100%);
  max-height: min(88svh, 760px);
  overflow: auto;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 90, 0, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(6, 6, 6, 0.98), rgba(35, 18, 9, 0.98));
  border: 1px solid rgba(255, 90, 0, 0.34);
  border-radius: var(--radius);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.52);
}

.video-popup-copy {
  padding: clamp(28px, 5vw, 52px) 0 clamp(28px, 5vw, 52px) clamp(24px, 5vw, 52px);
}

.video-popup-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

.video-popup-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.03rem;
}

.video-popup-cta {
  margin-top: 24px;
}

.video-frame {
  padding: clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px) clamp(18px, 3vw, 34px) 0;
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  background: var(--ink-950);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.video-popup-close {
  top: 16px;
  right: 16px;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 70;
  display: grid;
  gap: 18px;
  width: min(440px, calc(100% - 36px));
  padding: 18px 20px 16px;
  color: var(--white);
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 90, 0, 0.3), transparent 28%),
    rgba(9, 9, 9, 0.96);
  border: 1px solid rgba(255, 90, 0, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.cookie-banner-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.cookie-banner-copy a {
  color: var(--white);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--blue-600);
  text-underline-offset: 3px;
}

.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cookie-btn {
  min-height: 52px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.96rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-cookie {
  color: var(--white);
  background: var(--blue-600);
  border: 1px solid var(--blue-600);
}

.ghost-cookie {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  transform: translateY(-1px);
}

.primary-cookie:hover,
.primary-cookie:focus-visible {
  color: var(--ink-950);
  background: var(--white);
  border-color: var(--white);
}

.ghost-cookie:hover,
.ghost-cookie:focus-visible {
  border-color: var(--blue-600);
  background: rgba(255, 90, 0, 0.16);
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 5, 5, 0.74);
  backdrop-filter: blur(12px);
}

.terms-card {
  position: relative;
  width: min(780px, 100%);
  max-height: min(86svh, 780px);
  overflow: auto;
  padding: clamp(24px, 4vw, 34px);
  color: var(--ink-950);
  background: var(--white);
  border: 1px solid rgba(255, 90, 0, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.terms-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--blue-600);
  border: 1px solid rgba(255, 90, 0, 0.18);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.terms-close:hover,
.terms-close:focus-visible {
  color: var(--ink-950);
  background: var(--paper);
}

.terms-card h2 {
  margin: 0 46px 18px 0;
  color: var(--ink-950);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.08;
}

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

.terms-content h3 {
  margin: 10px 0 0;
  color: var(--blue-600);
  font-size: 1rem;
}

.terms-content p {
  margin: 0;
  color: var(--muted);
}

.terms-content a {
  color: var(--blue-600);
  font-weight: 900;
}

.terms-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.tech-strip {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(34px, 6vw, 76px);
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 46px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(5, 5, 5, 0.96), rgba(32, 17, 10, 0.94)),
    radial-gradient(circle at 82% 20%, rgba(255, 90, 0, 0.24), transparent 32%),
    var(--ink-900);
  border-radius: var(--radius);
}

.tech-strip h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.1;
}

.tech-strip ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-strip li {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.faq-list {
  display: grid;
  gap: 12px;
  width: min(calc(100% - 32px), 880px);
  margin: 0 auto;
}

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

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink-950);
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(34px, 6vw, 82px);
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 118px) 0;
}

.contact-direct {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-direct a {
  color: var(--blue-600);
  font-weight: 900;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink-900);
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--ink-950);
  background: var(--white);
  border: 1px solid rgba(255, 90, 0, 0.18);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.14);
}

.contact-form .button {
  width: 100%;
  border: 0;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px max(16px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink-950);
  border-top: 1px solid rgba(255, 90, 0, 0.22);
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer a {
  color: var(--cyan-400);
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero-inner,
  .split,
  .tech-strip,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .project-modal-panel {
    grid-template-columns: 1fr;
  }

  .project-modal-copy {
    padding: 0 clamp(22px, 5vw, 34px) clamp(26px, 5vw, 34px);
  }

  .video-popup-panel {
    grid-template-columns: 1fr;
  }

  .video-popup-copy {
    padding: clamp(28px, 5vw, 44px) clamp(22px, 5vw, 34px) 0;
  }

  .video-frame {
    padding: 0 clamp(22px, 5vw, 34px) clamp(24px, 5vw, 34px);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 124px;
  }

  .hero-system {
    min-height: 360px;
  }

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

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

  .trust-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 76px 10px auto 10px;
    display: none;
    padding: 12px;
    background: rgba(5, 5, 5, 0.97);
    border: 1px solid rgba(255, 90, 0, 0.18);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a,
  .site-nav .nav-cta {
    margin: 0;
    padding: 13px 12px;
  }

  .hero-inner,
  .section-heading,
  .service-grid,
  .process-grid,
  .portfolio-grid,
  .split,
  .tech-strip,
  .faq-list,
  .contact-section {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero-inner {
    padding-top: 108px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .hero-proof span {
    width: 100%;
  }

  .hero-system {
    min-height: 318px;
  }

  .panel-main {
    right: 0;
    left: 0;
    width: 100%;
  }

  .panel-code {
    display: none;
  }

  .panel-mini {
    right: 12px;
    bottom: 0;
    width: 190px;
  }

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

  .service-grid,
  .process-grid,
  .portfolio-grid,
  .tech-strip ul {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
    justify-items: start;
  }

  .site-footer p {
    text-align: left;
  }

  .project-modal {
    padding: 12px;
  }

  .project-modal-panel {
    max-height: 88svh;
  }

  .project-modal-panel img {
    min-height: 250px;
  }

  .modal-close {
    width: 38px;
    height: 38px;
  }

  .video-popup {
    padding: 12px;
  }

  .video-popup-panel {
    max-height: 88svh;
  }

  .video-popup-copy h2 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .video-frame iframe {
    min-height: 210px;
  }

  .cookie-banner {
    left: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px;
  }

  .cookie-actions {
    gap: 10px;
  }

  .cookie-btn {
    min-height: 50px;
  }

  .terms-modal {
    padding: 12px;
  }

  .terms-card {
    max-height: 88svh;
    padding: 22px;
  }

  .terms-actions .button {
    width: 100%;
  }
}

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