:root {
  --bg: #f6f8f4;
  --panel: #ffffff;
  --panel-2: #eef5f2;
  --text: #16201d;
  --muted: #61706a;
  --line: rgba(22, 32, 29, 0.14);
  --cyan: #008fb3;
  --green: #145c3f;
  --green-soft: rgba(20, 92, 63, 0.12);
  --green-line: rgba(20, 92, 63, 0.28);
  --amber: #d69a00;
  --coral: #ee5e50;
  --ink: #f7fbf6;
  --max: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: "Assistant", system-ui, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(22, 32, 29, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 32, 29, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 15% 10%, rgba(0, 143, 179, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 55%, rgba(20, 92, 63, 0.1), transparent 28rem),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
  line-height: 1.55;
  animation: pageIn 620ms ease both, gridDrift 24s linear infinite;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10%;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(20, 92, 63, 0.08) 50%, transparent 58%),
    linear-gradient(70deg, transparent 0 48%, rgba(0, 143, 179, 0.08) 55%, transparent 64%);
  transform: translate3d(0, 0, 0) rotate(0.001deg);
  animation: lightSweep 16s ease-in-out infinite alternate;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 16px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(40, 60, 50, 0.12);
  animation: slideDown 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand,
.nav,
.hero-actions,
.contact-actions,
.studio-badges {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--green-line);
  border-radius: 6px;
  color: var(--green);
  background: var(--green-soft);
}

.nav {
  justify-content: center;
  gap: clamp(12px, 2.8vw, 34px);
  color: var(--muted);
  font-weight: 700;
}

.nav a,
.language-switch,
.header-cta,
.project-card a,
.primary-button,
.secondary-button {
  text-decoration: none;
}

.nav a:hover,
.project-card a:hover {
  color: var(--green);
}

.header-cta,
.language-switch,
.primary-button,
.secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
}

.language-switch {
  min-width: 48px;
  padding: 0 14px;
  border: 1px solid var(--green-line);
  color: var(--green);
  background: var(--green-soft);
}

.header-cta {
  padding: 0 18px;
  color: var(--ink);
  background: var(--green);
  box-shadow: 0 10px 24px rgba(20, 92, 63, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-cta:hover,
.language-switch:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-3px) translateZ(24px);
  box-shadow: 0 18px 34px rgba(20, 92, 63, 0.2);
}

.hero {
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(100vh - 126px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding: 42px 0 56px;
  perspective: 1400px;
}

.hero-copy {
  max-width: 600px;
  animation: revealRight 880ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 7.3rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  will-change: clip-path;
  animation: rtlType 1500ms steps(24) 180ms both, caretFade 1500ms steps(1) 180ms both;
  border-left: 0.08em solid var(--green);
}

html[dir="ltr"] h1 {
  font-size: clamp(3rem, 6vw, 5.45rem);
  line-height: 0.95;
}

html[dir="ltr"] h1 span {
  animation: revealUp 700ms ease both;
  border-left: 0;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.hero-panel {
  position: relative;
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 143, 179, 0.12), transparent 45%),
    linear-gradient(0deg, var(--green-soft), transparent 42%),
    rgba(255, 255, 255, 0.78);
  box-shadow: 0 32px 90px rgba(55, 83, 72, 0.16);
  transform-style: preserve-3d;
  animation: floatPanel3d 8s ease-in-out infinite;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(20, 92, 63, 0.1);
  border-radius: 6px;
  transform: translateZ(-24px);
}

.hero-panel:hover {
  transform: rotateX(4deg) rotateY(-6deg) translateY(-8px);
  box-shadow: 0 46px 120px rgba(55, 83, 72, 0.22);
}

.hero-panel p {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
}

.hero-metrics,
.studio-badges,
.stage-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-metrics span,
.studio-badges span,
.stage-caption span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(0, 143, 179, 0.24);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  animation: chipFloat 5.4s ease-in-out infinite;
}

.hero-metrics span:nth-child(2) {
  animation-delay: 160ms;
}

.hero-metrics span:nth-child(3) {
  animation-delay: 320ms;
}

.hero-metrics span:nth-child(4) {
  animation-delay: 480ms;
}

.primary-button,
.secondary-button {
  padding: 0 24px;
}

.primary-button {
  color: var(--ink);
  background: var(--green);
  box-shadow: 0 12px 28px rgba(20, 92, 63, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.intro-band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.intro-band p {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  text-align: center;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
  animation: revealUp 700ms ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 22%;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.clients .section-heading {
  max-width: none;
}

#clients-title {
  white-space: nowrap;
}

.expertise {
  padding-bottom: 24px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.expertise-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 42px rgba(55, 83, 72, 0.08);
  transform: perspective(900px) rotateX(0) rotateY(0) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.expertise-grid article:hover,
.process-grid article:hover,
.testimonial-card:hover {
  transform: perspective(900px) rotateX(4deg) rotateY(-4deg) translateY(-7px);
  border-color: var(--green-line);
  box-shadow: 0 20px 48px rgba(55, 83, 72, 0.12);
}

.expertise-grid svg {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  fill: var(--cyan);
}

.expertise-grid h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.expertise-grid p {
  color: var(--muted);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.site-pair-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 38px);
  perspective: 2200px;
}

.site-pair {
  --rx: 0deg;
  --ry: 0deg;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(55, 83, 72, 0.1);
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transform-style: preserve-3d;
  translate: 0 0;
  animation: cardFloat 8s ease-in-out infinite;
  transition: transform 260ms ease, translate 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
  will-change: transform;
}

.site-pair:nth-child(2n) {
  animation-delay: -2.2s;
}

.site-pair:nth-child(3n) {
  animation-delay: -4.4s;
}

.site-pair::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.36) 50%, transparent 62%);
  opacity: 0;
  transform: translateX(42%);
  transition: opacity 220ms ease, transform 520ms ease;
}

.pair-images {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, 0.25fr);
  gap: 16px;
  align-items: center;
  padding: clamp(16px, 1.5vw, 22px);
  background:
    linear-gradient(135deg, rgba(0, 143, 179, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.72);
  transform: translateZ(28px);
  animation: imageBreath 7s ease-in-out infinite;
}

.pair-images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 14px 36px rgba(22, 32, 29, 0.12);
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.desktop-uncut {
  border-radius: 6px;
}

.desktop-uncut {
  aspect-ratio: 16 / 10;
}

.mobile-uncut {
  aspect-ratio: 390 / 844;
  justify-self: center;
  max-width: 172px;
  padding: 8px;
  border: 1px solid rgba(22, 32, 29, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(#f9fbf8 0 18px, #fff 18px),
    #fff;
  object-fit: contain;
  transform: translateZ(34px);
}

.site-pair:hover {
  translate: 0 -14px;
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  border-color: var(--green-line);
  box-shadow: 0 26px 70px rgba(55, 83, 72, 0.16);
}

.site-pair:hover::before {
  opacity: 1;
  transform: translateX(-52%);
}

.site-pair:hover .desktop-uncut {
  transform: translateZ(40px) scale(1.015);
  filter: saturate(1.03) contrast(1.02);
}

.site-pair:hover .mobile-uncut {
  transform: translateZ(70px) translateY(-6px) rotateY(8deg);
}

.portfolio-copy {
  position: relative;
  z-index: 3;
  min-height: 126px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  transform: translateZ(44px);
}

.portfolio-copy p:not(.project-tag),
.portfolio-copy a {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 220ms ease, opacity 220ms ease, margin-top 220ms ease;
}

.site-pair:hover .portfolio-copy p:not(.project-tag),
.site-pair:focus-within .portfolio-copy p:not(.project-tag) {
  max-height: 86px;
  margin-top: 4px;
  opacity: 1;
}

.site-pair:hover .portfolio-copy a,
.site-pair:focus-within .portfolio-copy a {
  max-height: 32px;
  margin-top: 10px;
  opacity: 1;
}

.portfolio-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 1.5vw, 1.55rem);
}

.portfolio-copy p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.project-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.portfolio-copy a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.site-pair {
  cursor: pointer;
}

.site-pair:focus-visible {
  outline: 3px solid rgba(18, 99, 66, 0.38);
  outline-offset: 6px;
}

.modal-open {
  overflow: hidden;
}

.site-modal[hidden] {
  display: none;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 26px);
}

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 143, 179, 0.16), transparent 34%),
    rgba(9, 22, 18, 0.66);
  backdrop-filter: blur(14px);
}

.site-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, 100%);
  max-height: calc(100dvh - clamp(24px, 4vw, 52px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(238, 250, 247, 0.96), rgba(255, 255, 255, 0.96) 36%, rgba(245, 251, 247, 0.98)),
    #fff;
  box-shadow: 0 38px 110px rgba(7, 22, 17, 0.34);
  animation: modalIn 320ms ease both;
}

.site-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2.6vw, 34px) 14px;
  border-bottom: 1px solid rgba(22, 32, 29, 0.08);
}

.site-modal-eyebrow {
  margin-bottom: 6px;
}

.site-modal-title {
  margin: 0;
  font-size: clamp(1.65rem, 3.1vw, 3rem);
  line-height: 1.02;
}

.site-modal-description {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.45;
}

.site-modal-close {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(18, 99, 66, 0.32);
  border-radius: 999px;
  color: var(--green);
  background: #fff;
  box-shadow: 0 14px 30px rgba(18, 99, 66, 0.16);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-modal-close:hover,
.site-modal-close:focus-visible {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
  transform: translateY(-2px);
}

.site-modal-preview {
  min-height: 0;
  margin: 0 clamp(14px, 2vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(22, 32, 29, 0.12);
  border-radius: 8px;
  background: #eff8f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.site-modal-browser {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(22, 32, 29, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.site-modal-browser span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.site-modal-browser span:nth-child(1) {
  background: #e55e4f;
}

.site-modal-browser span:nth-child(2) {
  background: #d49a00;
}

.site-modal-browser span:nth-child(3) {
  background: var(--green);
}

.site-modal-scroll {
  display: grid;
  gap: 18px;
  height: min(62vh, 680px);
  overflow-y: auto;
  padding: clamp(14px, 2vw, 24px);
  overscroll-behavior: contain;
  background:
    linear-gradient(rgba(18, 99, 66, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 99, 66, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbfa, #eef8f6);
  background-size: 42px 42px, 42px 42px, auto;
  scrollbar-color: var(--green) rgba(22, 32, 29, 0.08);
}

.site-modal-scroll img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(22, 32, 29, 0.08);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(22, 32, 29, 0.12);
}

.site-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 2.6vw, 34px) clamp(18px, 2.2vw, 26px);
  color: var(--muted);
  font-weight: 700;
}

.site-modal-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(18, 99, 66, 0.22);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.site-modal-live:hover,
.site-modal-live:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(18, 99, 66, 0.28);
}

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

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

.process-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  transform-style: preserve-3d;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.process-grid span {
  color: var(--amber);
  font-weight: 800;
}

.process-grid h3 {
  margin: 16px 0 8px;
  font-size: 1.6rem;
}

.process-grid p {
  color: var(--muted);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  perspective: 1600px;
}

.testimonial-card {
  margin: 0;
  min-width: 0;
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--green-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--green-soft), transparent 44%),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(55, 83, 72, 0.1);
  transform-style: preserve-3d;
  animation: testimonialDrift 9s ease-in-out infinite;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.testimonial-feature {
  grid-column: span 2;
}

.testimonial-card:nth-child(2n) {
  animation-delay: -2s;
}

.testimonial-card:nth-child(3n) {
  animation-delay: -4s;
}

.testimonial-card p {
  color: var(--text);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
}

.testimonial-feature p {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.testimonial-card cite {
  display: block;
  margin-top: 24px;
  color: var(--text);
  font-size: 1rem;
  font-style: normal;
  font-weight: 800;
}

.contact {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 28px;
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 143, 179, 0.14), transparent 46%),
    rgba(255, 255, 255, 0.72);
  transform-style: preserve-3d;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.contact:hover {
  transform: perspective(1200px) rotateX(2deg) translateY(-5px);
  box-shadow: 0 26px 72px rgba(55, 83, 72, 0.14);
}

.contact p {
  max-width: none;
  color: var(--muted);
  white-space: nowrap;
}

.contact-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-weight: 700;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

.legal-page {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) 0 64px;
}

.legal-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 143, 179, 0.1), transparent 38%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(55, 83, 72, 0.12);
}

.legal-card h1 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 8vw, 5.8rem);
}

.legal-updated {
  margin-bottom: 34px;
  color: var(--muted);
  font-weight: 700;
}

.legal-card section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-card section:first-of-type {
  border-top: 0;
}

.legal-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.legal-card ul {
  margin: 0;
  padding-inline-start: 22px;
}

.legal-card a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    width: calc(100% - 32px);
    gap: 14px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    gap: 8px;
    width: 100%;
    padding-top: 4px;
    text-align: center;
  }

  .nav a {
    min-width: 0;
    padding: 8px 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.42);
    line-height: 1.15;
  }

  .hero,
  .contact {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
  }

  #clients-title,
  .contact p {
    white-space: normal;
  }

  .hero {
    min-height: auto;
  }

  .site-pair-gallery,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

  .testimonial-feature {
    grid-column: auto;
  }

  .section,
  .site-footer,
  .intro-band p {
    width: calc(100% - 32px);
  }

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

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 18px);
    margin-top: 8px;
    padding: 8px;
    gap: 10px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 1rem;
  }

  .language-switch {
    min-height: 40px;
    min-width: 44px;
    padding: 0 10px;
    font-size: 0.95rem;
  }

  .brand {
    gap: 8px;
    font-size: 1.15rem;
  }

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

  .nav {
    gap: 6px;
    font-size: 0.98rem;
  }

  .nav a {
    padding: 8px 2px;
  }

  .hero,
  .section,
  .contact,
  .site-footer,
  .intro-band p {
    width: calc(100% - 24px);
  }

  .hero {
    min-height: auto;
    padding: 30px 0 40px;
    gap: 24px;
  }

  .hero-copy {
    order: -1;
    max-width: none;
  }

  h1 {
    font-size: clamp(3rem, 14.6vw, 4.35rem);
    line-height: 0.96;
  }

  html[dir="ltr"] h1 {
    font-size: clamp(2.75rem, 12.2vw, 3.65rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.03;
  }

  .lead,
  .intro-band p {
    font-size: 1.15rem;
    line-height: 1.55;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 50px;
    padding-inline: 14px;
  }

  .hero-panel {
    padding: 22px;
  }

  .hero-panel p {
    font-size: clamp(1.65rem, 9vw, 2.4rem);
    line-height: 1.05;
  }

  .section {
    padding: 58px 0;
  }

  .expertise {
    padding-bottom: 10px;
  }

  .expertise-grid,
  .process-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .expertise-grid article,
  .process-grid article {
    padding: 22px 20px;
  }

  .expertise-grid h3,
  .process-grid h3 {
    font-size: 1.45rem;
    line-height: 1.12;
  }

  .expertise-grid p,
  .process-grid p {
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 10px 14px;
  }

  .pair-images {
    grid-template-columns: minmax(0, 1fr) minmax(82px, 0.32fr);
    gap: 8px;
    padding: 10px;
  }

  .contact {
    padding: 28px 18px;
  }

  .contact p {
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .legal-page {
    width: calc(100% - 24px);
    padding: 42px 0 48px;
  }

  .legal-card {
    padding: 24px 18px;
  }

  .portfolio-copy {
    position: static;
    max-width: none;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .portfolio-copy p:not(.project-tag),
  .portfolio-copy a {
    max-height: none;
    opacity: 1;
  }

  .site-modal {
    padding: 10px;
  }

  .site-modal-panel {
    max-height: calc(100dvh - 20px);
  }

  .site-modal-header {
    gap: 12px;
    padding: 16px 16px 12px;
  }

  .site-modal-title {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .site-modal-description {
    font-size: 0.98rem;
  }

  .site-modal-close {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }

  .site-modal-preview {
    margin-inline: 10px;
  }

  .site-modal-scroll {
    height: min(58vh, 560px);
    gap: 12px;
    padding: 12px;
  }

  .site-modal-footer {
    display: grid;
    padding: 12px 16px 16px;
    font-size: 0.92rem;
  }

  .site-modal-live {
    width: 100%;
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gridDrift {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 56px 56px, -56px 56px, 0 0, 0 0, 0 0;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-24px) rotateX(-8deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(32px) translateZ(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateZ(0);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

@keyframes imageBreath {
  0%,
  100% {
    filter: saturate(1) contrast(1);
  }
  50% {
    filter: saturate(1.06) contrast(1.03);
  }
}

@keyframes rtlType {
  from {
    clip-path: inset(0 0 0 100%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes caretFade {
  0%,
  88% {
    border-left-color: var(--green);
  }
  100% {
    border-left-color: transparent;
  }
}

@keyframes floatPanel3d {
  0%,
  100% {
    transform: rotateX(0deg) rotateY(0deg) translateY(0);
  }
  50% {
    transform: rotateX(3deg) rotateY(-4deg) translateY(-12px);
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0) translateZ(0);
  }
  50% {
    transform: translateY(-5px) translateZ(12px);
  }
}

@keyframes testimonialDrift {
  0%,
  100% {
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: perspective(1200px) rotateX(1.4deg) rotateY(-1.6deg);
  }
}

@keyframes lightSweep {
  from {
    transform: translate3d(-3%, -2%, 0) rotate(0.001deg);
  }
  to {
    transform: translate3d(3%, 2%, 0) rotate(0.001deg);
  }
}

@keyframes revealUp {
  from {
    opacity: 0.25;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: perspective(1200px) translateY(28px) rotateX(-5deg) scale(0.98);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) translateY(0) rotateX(0deg) scale(1);
  }
}

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