:root {
  --ink: #101728;
  --muted: #64748b;
  --soft: #eef4ff;
  --surface: #ffffff;
  --surface-blue: #f7fbff;
  --line: #d8e4f3;
  --brand: #4f7cff;
  --brand-strong: #315ee9;
  --aqua: #12c8d9;
  --violet: #7b61ff;
  --shadow: 0 22px 70px rgba(49, 94, 233, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--base-font-size, 16px);
}

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

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

html[data-text-size="small"] {
  --base-font-size: 14px;
}

html[data-text-size="large"] {
  --base-font-size: 18px;
}

html[data-text-size="larger"] {
  --base-font-size: 20px;
}

html[data-text-size="largest"] {
  --base-font-size: 22px;
}

body {
  margin: 0;
  background: var(--surface-blue);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 228, 243, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(216, 228, 243, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(16, 23, 40, 0.06);
}

.brand img {
  display: block;
  width: clamp(150px, 18vw, 230px);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a {
  padding: 0 18px;
  border-left: 1px solid rgba(100, 116, 139, 0.22);
}

.nav-links a:first-child {
  border-left: 0;
}

.nav-links a:hover {
  color: var(--brand-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.theme-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand-strong);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.theme-toggle-symbol {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.theme-toggle[aria-pressed="true"] {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.text-size-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.text-size-button {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 0;
  color: var(--brand-strong);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.text-size-button + .text-size-button {
  border-left: 1px solid var(--line);
}

.text-size-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.58;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(40px, 7vw, 92px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 72px) clamp(46px, 7vw, 84px);
  background:
    radial-gradient(circle at 16% 12%, rgba(18, 200, 217, 0.22), transparent 31%),
    radial-gradient(circle at 88% 22%, rgba(123, 97, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 76%, #eef5ff 100%);
}

.hero-copy {
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h1 span {
  color: var(--brand-strong);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-strong), #5f46e8);
  box-shadow: 0 16px 36px rgba(79, 124, 255, 0.28);
}

.button-secondary {
  color: var(--brand-strong);
  background: #fff;
  border-color: var(--line);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
}

.phone {
  position: relative;
  width: min(68vw, 310px);
  aspect-ratio: 0.52;
  padding: 18px;
  border: 12px solid #20304a;
  border-radius: 54px;
  background: #0f172a;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone::before {
  position: absolute;
  top: 16px;
  left: 50%;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: #26364f;
  content: "";
  transform: translateX(-50%);
}

.phone-screen {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr 104px;
  gap: 16px;
  padding: 62px 16px 18px;
  border-radius: 34px;
  background: linear-gradient(180deg, #e8f1ff 0%, #d8e7ff 55%, #ffffff 56%);
  overflow: hidden;
}

.map-panel {
  position: relative;
  border: 2px dashed rgba(49, 94, 233, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
    linear-gradient(135deg, #8fc7ff, #c5d6ff);
  background-size: 34px 34px, 34px 34px, auto;
}

.route-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--brand-strong);
  box-shadow: 0 10px 20px rgba(49, 94, 233, 0.28);
}

.route-dot-a {
  top: 22%;
  left: 24%;
}

.route-dot-b {
  top: 50%;
  right: 25%;
}

.route-dot-c {
  bottom: 18%;
  left: 45%;
  background: var(--aqua);
}

.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.app-row span {
  border-radius: 16px;
  background: linear-gradient(135deg, #f7fbff, #d8e7ff);
  box-shadow: inset 0 0 0 1px rgba(49, 94, 233, 0.1);
}

.signal-card {
  position: absolute;
  display: grid;
  min-width: 92px;
  min-height: 54px;
  place-items: center;
  border: 1px solid rgba(216, 228, 243, 0.9);
  border-radius: 14px;
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 46px rgba(16, 23, 40, 0.12);
  font-weight: 900;
}

.signal-card-top {
  top: 19%;
  right: 7%;
}

.signal-card-bottom {
  bottom: 21%;
  left: 3%;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.04;
}

.section-heading h2 {
  color: var(--ink);
}

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

.service-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(16, 23, 40, 0.06);
}

.service-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-strong), #087a8d);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--muted);
}

.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.service-card li {
  padding: 6px 10px;
  border: 1px solid #c9dbf4;
  border-radius: 999px;
  color: #34527a;
  background: #f3f8ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.expertise {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: linear-gradient(135deg, #203a63, #315ee9);
  color: #fff;
}

.expertise .eyebrow,
.expertise p {
  color: #dbeafe;
}

.expertise-copy {
  max-width: 680px;
}

.expertise-copy .button {
  margin-top: 16px;
}

.stats {
  display: grid;
  gap: 14px;
}

.stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.stats strong {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.stats span {
  color: #e0ecff;
  font-weight: 800;
  text-align: right;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  background:
    radial-gradient(circle at 80% 20%, rgba(18, 200, 217, 0.18), transparent 32%),
    #ffffff;
}

.contact-copy {
  max-width: 560px;
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
}

.contact-link-panel {
  display: grid;
  gap: 24px;
  align-content: start;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.96)),
    #f7fbff;
  box-shadow: var(--shadow);
}

.contact-panel-heading {
  display: grid;
  gap: 10px;
}

.contact-link-panel h3 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.contact-link-panel p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.contact-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.76fr);
  gap: clamp(22px, 4vw, 34px);
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-enquiry {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-kicker {
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-action-row .button {
  margin-top: 6px;
  justify-self: start;
}

.contact-address {
  margin: 0;
  padding-left: clamp(20px, 3vw, 32px);
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-style: normal;
}

.contact-address strong {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  color: #34527a;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #c9dbf4;
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 72px);
  color: #dbeafe;
  background: #17233a;
}

.site-footer p {
  margin: 0;
}

.projects-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: end;
  padding: clamp(70px, 10vw, 132px) clamp(20px, 5vw, 72px) clamp(54px, 7vw, 94px);
  background:
    radial-gradient(circle at 14% 18%, rgba(18, 200, 217, 0.2), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(123, 97, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.projects-hero-copy {
  max-width: 860px;
}

.projects-hero h1 {
  max-width: 900px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.projects-hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.projects-summary {
  display: grid;
  gap: 14px;
}

.projects-summary div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(16, 23, 40, 0.06);
}

.projects-summary strong {
  display: block;
  color: var(--brand-strong);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1;
}

.projects-summary span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.project-section {
  background: var(--surface-blue);
}

.previous-project-section {
  background: #ffffff;
}

.expertise-page-hero {
  background:
    radial-gradient(circle at 15% 18%, rgba(18, 200, 217, 0.2), transparent 32%),
    radial-gradient(circle at 82% 16%, rgba(79, 124, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.expertise-detail {
  background: var(--surface-blue);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(16, 23, 40, 0.06);
}

.project-card-featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 2fr);
}

.project-card img {
  display: block;
  width: 100%;
  height: clamp(220px, 28vw, 320px);
  max-height: 320px;
  object-fit: contain;
  padding: 18px;
  background: #f7fbff;
}

.project-card-placeholder {
  display: grid;
  width: 100%;
  height: clamp(220px, 28vw, 320px);
  max-height: 320px;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(3, 55, 96, 0.08), rgba(211, 42, 48, 0.1)),
    #f7fbff;
}

.project-card-placeholder span {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 2px solid rgba(3, 55, 96, 0.22);
  border-radius: 28px;
  color: var(--brand-strong);
  background: #ffffff;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 18px 42px rgba(16, 23, 40, 0.08);
}

.project-card-featured img {
  height: clamp(240px, 28vw, 340px);
  max-height: 340px;
  object-fit: contain;
  padding: 18px;
}

.project-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.project-meta {
  margin-bottom: 12px;
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.project-card p:not(.project-meta),
.project-description p {
  color: var(--muted);
}

.project-description {
  position: relative;
  max-height: 6.6rem;
  overflow: hidden;
}

.project-description.is-expanded {
  max-height: none;
}

.project-description p {
  margin-bottom: 0;
}

.project-description:not(.is-expanded).has-overflow::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 82%);
  content: "";
  pointer-events: none;
}

.read-more-button {
  width: fit-content;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand-strong);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.read-more-button:hover {
  border-color: var(--brand-strong);
}

.project-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  color: var(--brand-strong);
  font-weight: 900;
}

.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.project-card li {
  padding: 7px 11px;
  border: 1px solid #c9dbf4;
  border-radius: 999px;
  color: #34527a;
  background: #f3f8ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.clients-section {
  background: #ffffff;
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.client-groups {
  display: grid;
  gap: 42px;
}

.client-group h3 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.client-grid li {
  display: grid;
  min-height: 116px;
  place-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-strong);
  background: #f7fbff;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 18px 46px rgba(16, 23, 40, 0.06);
}

.client-grid .client-logo-card {
  flex: 1 1 260px;
  max-width: 360px;
  min-height: 132px;
  padding: 24px;
  background: #ffffff;
}

.client-logo {
  display: block;
  width: auto;
  max-width: 82%;
  max-height: 70px;
  object-fit: contain;
}

.client-logo-1map {
  max-width: 190px;
}

.client-logo-afrigis {
  max-width: 230px;
  max-height: 58px;
}

.client-logo-cat {
  max-width: 155px;
  max-height: 74px;
}

.client-logo-28east {
  max-width: 180px;
  max-height: 72px;
}

.client-logo-oltio {
  max-width: 190px;
  max-height: 66px;
}

.client-logo-codefusion {
  max-width: 210px;
  max-height: 76px;
}

.client-logo-waterston {
  max-width: 230px;
  max-height: 86px;
}

.project-timeline {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 72px);
  background: #ffffff;
}

.timeline-copy {
  max-width: 560px;
}

.timeline-copy p:not(.eyebrow) {
  color: var(--muted);
}

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

.timeline-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.timeline-list span {
  grid-row: span 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-strong), #087a8d);
  font-weight: 900;
}

.timeline-list h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.timeline-list p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.is-open {
    position: absolute;
    top: calc(100% + 8px);
    right: clamp(12px, 4vw, 32px);
    left: clamp(12px, 4vw, 32px);
    z-index: 20;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 23, 40, 0.08);
  }

  .nav-links.is-open a {
    min-height: 48px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .nav-links.is-open a:first-child {
    border-top: 0;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .expertise,
  .contact,
  .projects-hero,
  .project-card-featured,
  .project-timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    text-align: center;
  }

  .hero-copy,
  .hero-copy > p:not(.eyebrow),
  .expertise-copy,
  .contact-copy {
    max-width: none;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 440px;
    order: -1;
  }

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

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

  .client-grid .client-logo-card {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand img {
    width: 88px;
  }

  .brand {
    padding: 6px 8px;
  }

  .header-actions {
    gap: 5px;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .theme-toggle-symbol {
    font-size: 1.15rem;
  }

  .text-size-button {
    min-width: 28px;
    min-height: 38px;
    font-size: 0.74rem;
  }

  .menu-button {
    width: 38px;
    height: 38px;
    padding: 7px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-visual {
    min-height: 370px;
  }

  .phone {
    width: min(74vw, 236px);
    border-radius: 42px;
  }

  .signal-card {
    min-width: 74px;
    min-height: 46px;
    font-size: 0.82rem;
  }

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

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

  .stats span {
    text-align: left;
  }

  .button {
    width: 100%;
  }

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

  .contact-address {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .projects-hero {
    padding-top: 48px;
  }

  .project-card img,
  .project-card-placeholder {
    height: 220px;
    max-height: 220px;
  }

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

  .timeline-list span {
    grid-row: auto;
  }
}
