:root {
  color-scheme: light;
  --surface: #eeeee7;
  --panel: #fffefb;
  --button-bg: #252622;
  --button-fg: #fff;
  --accent-text: #ba421e;
}
.preview-open {
  color: #252622;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191b18;
  --ink: #f1f0e9;
  --muted: #b0b3a7;
  --line: #3b4036;
  --surface: #22261f;
  --panel: #292e25;
  --button-bg: #eceee3;
  --button-fg: #20231b;
  --accent-text: #ff9671;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 76px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.theme-toggle > span:first-child {
  font-size: 19px;
}
.theme-toggle:hover {
  background: var(--surface);
}
.header nav {
  gap: 25px;
}
.dark {
  background: var(--button-bg);
  color: var(--button-fg);
}
.dark:hover {
  background: var(--button-bg);
  filter: brightness(0.9);
}
.orange {
  color: var(--accent-text);
}
.specialties,
.projects-section {
  background: var(--surface);
}
.code-label {
  background: var(--panel);
}
.filter.active {
  background: var(--button-bg);
  color: var(--button-fg);
}
.filter:hover:not(.active) {
  background: var(--surface);
}
.project-list,
.project-row,
.project-icon {
  border-color: var(--line);
}
.project-status {
  background: var(--panel);
}
.contact-section {
  --button-bg: #252622;
  --button-fg: white;
}
.contact-section .theme-toggle {
  color: #252622;
}
.contact-section input,
.contact-section select,
.contact-section textarea {
  color-scheme: light;
}
.contact-section select option {
  color: #252622;
  background: #f7f6f2;
}
.sample-note {
  color: var(--muted);
}
[data-theme="dark"] :focus-visible {
  outline-color: #ffaf89;
}
[data-theme="dark"] .mini-site {
  color-scheme: light;
}
[data-theme="dark"] .objects-site {
  color: #252622;
}
[data-theme="dark"] .objects-content .mini-button {
  color: #252622;
}
.demo-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  font-size: 11px;
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
}
.demo-link:hover {
  color: var(--accent-text);
}
.services-section {
  border-top: 1px solid var(--line);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.service-card {
  padding: 25px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s,
    background 0.25s;
}
.service-card:hover {
  background: var(--surface);
  transform: translateY(-4px);
}
.service-number {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: var(--accent-text);
}
.service-card h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin: 25px 0 14px;
}
.service-card p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 24px;
}
.service-stack {
  font-size: 7px;
  letter-spacing: 0.8px;
  line-height: 1.8;
  margin-top: auto;
}
.service-note {
  font-size: 12px;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.8;
  margin: 25px 0 0;
}
.preview-flow {
  background: #dce4f1;
}
.dashboard-thumb {
  background: #fafcff;
  color: #202c43;
  height: 270px;
  padding: 18px;
}
.thumb-nav {
  font-weight: 700;
  font-size: 12px;
}
.thumb-nav span {
  font-size: 5px;
  float: right;
  padding-top: 5px;
}
.dashboard-thumb h3 {
  font-size: 24px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 24px 0 18px;
}
.thumb-metrics {
  display: flex;
  justify-content: space-between;
}
.thumb-metrics > span {
  font-size: 21px;
}
.thumb-metrics small {
  display: block;
  font-size: 6px;
  margin-top: 5px;
  color: #58657a;
}
.thumb-bars {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 55px;
  margin-top: 15px;
}
.thumb-bars i {
  height: 40%;
  background: #779adb;
  flex: 1;
  border-radius: 3px 3px 0 0;
}
.thumb-bars i:nth-child(2n) {
  height: 70%;
}
.thumb-bars i:nth-child(3n) {
  height: 90%;
}
.preview-stay {
  background: #f1d9ba;
}
.stay-thumb {
  background: #e5a365;
  color: #3c3023;
  height: 270px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.stay-thumb > span {
  font-size: 8px;
  letter-spacing: 2px;
}
.stay-thumb h3 {
  font: 36px/1 var(--serif);
  margin: 30px 0 10px;
  position: relative;
}
.stay-thumb p {
  font-size: 7px;
}
.thumb-sun {
  position: absolute;
  right: -20px;
  top: 55px;
  background: #f8d5a3;
  width: 150px;
  height: 150px;
  border-radius: 50%;
}
.thumb-search {
  position: relative;
  margin-top: 24px;
  background: #fff7e7;
  padding: 13px 7px;
  font-size: 6px;
}
.preview-estate {
  background: #d6e3e1;
}
.estate-thumb {
  background: #f4f6f0;
  color: #29453f;
  height: 270px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.estate-thumb > span {
  font-size: 21px;
  font-weight: 700;
}
.estate-thumb h3 {
  font: 32px/1.06 var(--serif);
  margin: 23px 0;
  position: relative;
  z-index: 1;
}
.thumb-building {
  position: absolute;
  right: 15px;
  top: 65px;
  width: 85px;
  height: 155px;
  background: #7e9c92;
  transform: skewY(-12deg);
  display: flex;
  gap: 8px;
  padding: 12px;
}
.thumb-building i {
  background: #b5c7b8;
  flex: 1;
}
.estate-caption {
  font-size: 6px;
  letter-spacing: 1px;
  position: absolute;
  bottom: 24px;
}
.filter-note {
  display: none;
}
.hero-grid > div {
  min-width: 0;
}
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .header nav {
    gap: 18px;
  }
  .header-actions {
    gap: 10px;
  }
}
@media (max-width: 760px) {
  .header {
    height: auto;
    min-height: 85px;
    flex-wrap: wrap;
    gap: 8px;
    padding-block: 12px;
  }
  .header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid var(--line);
    padding-top: 3px;
    gap: 30px;
  }
  .header nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .header-actions {
    margin-left: auto;
  }
  .services-grid {
    gap: 12px;
  }
  .service-card {
    padding: 20px 16px;
  }
  .service-card h3 {
    font-size: 19px;
  }
  .dashboard-thumb,
  .stay-thumb,
  .estate-thumb {
    height: 310px;
  }
  .dashboard-thumb h3 {
    font-size: 30px;
  }
  .thumb-bars {
    height: 70px;
  }
  .stay-thumb h3 {
    font-size: 45px;
  }
  .estate-thumb h3 {
    font-size: 42px;
  }
  .thumb-building {
    height: 185px;
    width: 100px;
  }
  .contact-section {
    color-scheme: light;
  }
}
@media (max-width: 450px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card h3 {
    margin-top: 18px;
  }
  .service-card p {
    margin-bottom: 18px;
  }
  .header nav {
    gap: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none;
  }
}
