:root {
  --ink: #f4efe6;
  --paper: #eee9df;
  --muted: rgba(244, 239, 230, 0.66);
  --muted-dark: #74716b;
  --black: #08090b;
  --black-2: #111216;
  --line: rgba(244, 239, 230, 0.16);
  --line-dark: rgba(8, 9, 11, 0.12);
  --orange: #ff6a1f;
  --gold: #c9a76d;
  --glass: rgba(244, 239, 230, 0.08);
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  color: var(--ink);
  background: var(--black);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--black);
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 50;
  display: grid;
  width: min(1240px, calc(100% - 28px));
  min-height: 72px;
  transform: translateX(-50%);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.46);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.site-header.scrolled {
  background: rgba(8, 9, 11, 0.86);
  border-color: rgba(244, 239, 230, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
  padding-left: 8px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-logo {
  width: 54px;
  height: 46px;
  object-fit: contain;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  gap: 4px;
}

.brand-grid span {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--ink);
}

.brand-name {
  font-size: clamp(1.35rem, 1.7vw, 1.8rem);
  font-weight: 780;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a,
.header-cta,
.header-phone,
.button,
.filter {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 680;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  min-width: auto;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  color: rgba(244, 239, 230, 0.78);
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.site-nav a::after {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--orange);
  content: "";
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  min-width: 150px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--black);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone {
  min-width: 132px;
  padding: 0 14px;
  border: 1px solid rgba(244, 239, 230, 0.18);
  color: rgba(244, 239, 230, 0.82);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 96svh;
  overflow: hidden;
  background: var(--black);
}

.hero-media,
.hero-overlay,
.grain {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 114%;
  object-fit: cover;
  transform: translateY(var(--parallax, 0));
  filter: saturate(0.72) contrast(1.12) brightness(0.72);
  will-change: transform;
}

.hero-overlay {
  background:
    radial-gradient(circle at 70% 42%, rgba(255, 106, 31, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(8, 9, 11, 0.88) 0%, rgba(8, 9, 11, 0.62) 54%, rgba(8, 9, 11, 0.34) 100%),
    linear-gradient(0deg, rgba(8, 9, 11, 0.9), rgba(8, 9, 11, 0.1) 58%);
}

.grain {
  z-index: 1;
  pointer-events: none;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1240px, calc(100% - 40px));
  min-height: 96svh;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(34px, 7vw, 86px);
  margin: 0 auto;
  padding: 132px 0 42px;
}

.hero-content {
  max-width: 940px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 1080px;
  font-size: clamp(3.7rem, 9vw, 9.2rem);
  font-weight: 620;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 690px;
  margin: 26px 0 0;
  color: rgba(244, 239, 230, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.hero-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 9, 11, 0.42);
  backdrop-filter: blur(18px);
}

.hero-info article {
  min-height: 150px;
  padding: 22px;
  border-right: 1px solid rgba(244, 239, 230, 0.12);
}

.hero-info article:last-child {
  border-right: 0;
}

.hero-info span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-info strong {
  display: block;
  color: var(--ink);
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-weight: 560;
  line-height: 0.9;
}

.hero-info p {
  max-width: 280px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
.filter {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

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

.button-primary {
  background: var(--orange);
  color: var(--black);
  box-shadow: 0 0 42px rgba(255, 95, 24, 0.34);
}

.button-ghost {
  border-color: rgba(244, 239, 230, 0.24);
  background: rgba(244, 239, 230, 0.06);
  color: var(--ink);
}

.scope-strip {
  border-block: 1px solid var(--line);
  background: var(--black);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scope-grid article {
  min-height: 180px;
  padding: 44px 22px 28px;
  border-right: 1px solid var(--line);
}

.scope-grid article:last-child {
  border-right: 0;
}

.scope-grid span {
  display: block;
  margin-bottom: 48px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 680;
}

.scope-grid h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
}

.scope-grid p {
  max-width: 250px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(74px, 10vw, 142px) 0;
}

.intro {
  background: var(--paper);
  color: var(--black);
}

.intro-grid,
.values-grid,
.process-grid,
.developer-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 90px);
}

.section-label {
  display: grid;
  align-content: start;
  gap: 12px;
  color: var(--muted-dark);
  font-weight: 680;
  text-transform: uppercase;
}

.section-label span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}

.section-label p {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

h2 {
  max-width: 980px;
  font-size: clamp(2.2rem, 4.8vw, 5.8rem);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.intro-copy p,
.section-head > p,
.visual-panel p,
.values-list p,
.step p,
.developer-copy p,
.contact-copy p,
.footer p {
  color: var(--muted-dark);
  font-size: 1.05rem;
  line-height: 1.75;
}

.intro-copy p {
  max-width: 760px;
  margin-top: 28px;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 28px;
  align-items: end;
  margin-bottom: 44px;
}

.dark .section-head > p,
.dark .service-card p,
.dark .project-card p,
.dark .developer-copy p {
  color: var(--muted);
}

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

.service-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  min-height: 590px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.07), rgba(244, 239, 230, 0.02)),
    var(--black-2);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(180deg, rgba(255, 95, 24, 0.18), rgba(244, 239, 230, 0.03)),
    var(--black-2);
}

.service-card span,
.values-list span,
.step span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--orange);
  font-weight: 680;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
}

.service-card h3 {
  font-size: clamp(1.28rem, 1.52vw, 1.62rem);
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.service-card p {
  margin: 22px 0 0;
  line-height: 1.65;
  overflow-wrap: normal;
  word-break: normal;
}

.service-card-expand {
  display: grid;
  grid-template-rows: 150px 112px 1fr;
}

.service-details {
  padding-top: 0;
}

.service-details-title {
  display: flex;
  min-height: 42px;
  align-items: center;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-details summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(244, 239, 230, 0.14);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

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

.service-details summary::after {
  content: "+";
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 50%;
  color: var(--orange);
  font-size: 1rem;
  line-height: 1;
}

.service-details[open] summary::after {
  content: "-";
}

.service-details ul {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  color: var(--muted);
  line-height: 1.55;
  list-style: none;
}

.service-details li {
  position: relative;
  padding-left: 16px;
}

.service-details li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.offer-cta {
  padding: clamp(44px, 7vw, 82px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 106, 31, 0.16), transparent 38%),
    var(--black-2);
  color: var(--ink);
}

.offer-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.62fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
}

.offer-cta h2 {
  font-size: clamp(2rem, 4vw, 4.8rem);
}

.offer-cta-copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.offer-cta-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.visual-break {
  position: relative;
  min-height: 64svh;
  overflow: hidden;
  background: var(--black);
}

.visual-break img {
  width: 100%;
  height: 64svh;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.7);
}

.visual-break::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.82), transparent 55%),
    linear-gradient(0deg, rgba(8, 9, 11, 0.9), transparent 55%);
}

.visual-panel {
  position: absolute;
  left: max(20px, calc((100vw - 1240px) / 2));
  bottom: 42px;
  z-index: 2;
  width: min(720px, calc(100% - 40px));
}

.visual-panel h2 {
  font-size: clamp(2rem, 4vw, 4.6rem);
}

.visual-panel p {
  color: rgba(244, 239, 230, 0.72);
}

.values-section {
  background: var(--paper);
  color: var(--black);
}

.client-section {
  background: #f6f0e6;
  color: var(--black);
}

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

.client-card {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(140deg, rgba(255, 106, 31, 0.08), transparent 46%),
    #eee9df;
}

.client-card span {
  display: block;
  margin-bottom: 74px;
  color: var(--orange);
  font-weight: 680;
}

.client-card p {
  margin: 20px 0 0;
  color: var(--muted-dark);
  line-height: 1.7;
}

.values-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.value-list-expanded {
  grid-template-columns: 1fr;
}

.values-list article {
  display: grid;
  grid-template-columns: 70px minmax(180px, 0.5fr) minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  background: var(--paper);
}

.value-list-expanded article {
  grid-template-columns: 70px minmax(220px, 0.44fr) minmax(0, 1fr);
}

.values-list span {
  margin: 0;
  padding-left: 24px;
}

.values-list p {
  margin: 0;
  padding-right: 24px;
}

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

.filters {
  margin: -12px 0 34px;
}

.filter {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.filter.active {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--black);
}

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

.project-card {
  display: grid;
  min-height: 520px;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--black-2);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.project-card-featured {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.86fr);
  grid-template-rows: 1fr;
  min-height: 560px;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 95, 24, 0.56);
}

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

.project-image {
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.02), rgba(8, 9, 11, 0.32)),
    linear-gradient(135deg, rgba(255, 95, 24, 0.4), rgba(201, 167, 109, 0.08)),
    url("assets/pam-development-hero.png") center/cover;
  filter: saturate(0.72) contrast(1.12);
  transition: transform 0.4s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.project-card p:first-child,
.project-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 10px 0 12px;
}

.project-card-featured h3 {
  max-width: 760px;
  font-size: clamp(2rem, 3.2vw, 4rem);
  line-height: 0.98;
}

.project-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.project-scope li {
  padding: 8px 10px;
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
}

.project-meta {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.project-meta span {
  display: block;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
}

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

.process-grid {
  align-items: start;
}

.process-sticky {
  position: sticky;
  top: 112px;
}

.process-sticky h2 {
  margin-bottom: 26px;
  font-size: clamp(2.3rem, 4.6vw, 5.2rem);
}

.process-sticky p:not(.eyebrow) {
  max-width: 420px;
  margin: 0 0 26px;
  color: var(--muted-dark);
  font-size: 1.04rem;
  line-height: 1.75;
}

.cooperation-flow {
  display: grid;
  gap: 14px;
}

.prep-card {
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #f7f1e7;
}

.prep-card .eyebrow {
  margin-bottom: 18px;
}

.prep-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
  padding: 0;
  color: var(--muted-dark);
  line-height: 1.6;
  list-style: none;
}

.prep-card li {
  position: relative;
  padding-left: 18px;
}

.prep-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  padding: 26px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(255, 95, 24, 0.1), transparent 42%),
    #f7f1e7;
}

.step span {
  margin-bottom: 24px;
}

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

.local-seo {
  background: #f6f0e6;
  color: var(--black);
}

.local-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.local-copy {
  display: grid;
  gap: 18px;
}

.local-copy p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 1.05rem;
  line-height: 1.75;
}

.developer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.developer-tags span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 680;
  text-transform: uppercase;
}

.contact {
  padding: clamp(74px, 10vw, 142px) 0;
  background: var(--paper);
  color: var(--black);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(520px, 0.85fr) minmax(560px, 1.15fr);
  gap: clamp(40px, 5vw, 82px);
  align-items: start;
}

.contact-copy .eyebrow {
  color: var(--orange);
}

.contact-copy h2 {
  max-width: 760px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.contact-copy p {
  max-width: 620px;
  color: var(--muted-dark);
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  font-weight: 680;
}

.contact-promise {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-promise article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid rgba(8, 9, 11, 0.12);
}

.contact-promise span {
  color: var(--orange);
  font-weight: 680;
}

.contact-promise p {
  margin: 0;
  color: var(--muted-dark);
  line-height: 1.55;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(8, 9, 11, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 9, 11, 0.86);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(244, 239, 230, 0.76);
  font-size: 0.8rem;
  font-weight: 680;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wide {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 6px;
  background: rgba(244, 239, 230, 0.08);
  color: var(--ink);
  outline: none;
}

.contact-form input,
.contact-form select {
  min-height: 48px;
  padding: 0 12px;
}

.contact-form textarea {
  min-height: 136px;
  padding: 12px;
  resize: vertical;
}

.contact-form option {
  color: var(--black);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 95, 24, 0.18);
}

.footer {
  padding: 64px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 34px;
}

.footer-brand {
  padding-left: 0;
  margin-bottom: 18px;
}

.footer h2 {
  margin: 0 0 16px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.footer p,
.footer a,
.footer span {
  color: var(--muted);
}

.footer a,
.footer span {
  display: block;
  margin: 10px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.reveal {
  transform: translateY(24px);
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(8, 9, 11, 0.96);
  }

  .nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .section-head,
  .intro-grid,
  .values-grid,
  .process-grid,
  .developer-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .client-grid {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
    grid-template-rows: 260px 1fr;
  }

  .offer-cta-grid,
  .local-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .process-sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .container,
  .hero-layout {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 18px);
  }

  .brand-name {
    font-size: 1.04rem;
  }

  .brand-logo {
    width: 40px;
    height: 34px;
  }

  .hero-layout {
    padding-top: 96px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 5.7rem);
    line-height: 0.94;
  }

  .hero-info,
  .scope-grid {
    grid-template-columns: 1fr;
  }

  .hero-info article,
  .scope-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 239, 230, 0.12);
  }

  .hero-info article:last-child,
  .scope-grid article:last-child {
    border-bottom: 0;
  }

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

  .prep-card ul {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .project-grid,
  .values-list article,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 260px;
  }

  .values-list article {
    padding: 24px;
  }

  .value-list-expanded article {
    grid-template-columns: 1fr;
  }

  .values-list span,
  .values-list p {
    padding: 0;
  }

  .visual-break,
  .visual-break img {
    min-height: 68svh;
    height: 68svh;
  }

  .project-card {
    min-height: 520px;
  }

  .project-card-featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
    grid-template-rows: 240px 1fr;
    min-height: 620px;
  }

  .project-card-featured h3 {
    font-size: clamp(1.7rem, 8vw, 2.6rem);
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}
