:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #5d625f;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --line: #dfe4dc;
  --teal: #0d7a75;
  --coral: #e95d3f;
  --blue: #315fd8;
  --gold: #d79b1e;
  --green: #2f7d43;
  --medical: #6d58c7;
  --coffee: #7a3f18;
  --energy: #00a7c4;
  --shadow: 0 24px 70px rgba(17, 17, 17, 0.13);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 17, 17, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(247, 248, 244, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand,
.nav-links,
.hero-actions,
.filter-bar,
.project-meta {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  width: 22px;
  height: 22px;
  border: 6px solid var(--ink);
  border-right-color: var(--coral);
  border-bottom-color: var(--teal);
}

.nav-links {
  gap: 6px;
  min-width: 0;
}

.nav-links a {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--ink);
  color: #ffffff;
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  padding: 56px 0 64px;
  gap: 48px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 22px;
  font-size: 4.8rem;
  line-height: 0.95;
}

h2 {
  margin-bottom: 16px;
  font-size: 2.6rem;
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-lede,
.section-heading p,
.project-body p,
.method-item p,
.site-footer {
  color: var(--muted);
}

.hero-lede {
  max-width: 52ch;
  margin-bottom: 28px;
  font-size: 1.12rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
}

.button.primary.dark {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-stats div {
  min-height: 104px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.hero-stats dt {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 590px;
}

.screen {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: top;
}

.screen-large {
  right: 0;
  bottom: 42px;
  width: 78%;
  aspect-ratio: 16 / 11;
}

.screen-small {
  left: 0;
  width: 46%;
  aspect-ratio: 4 / 3;
}

.screen-small.top {
  top: 28px;
}

.screen-small.bottom {
  bottom: 0;
  left: 8%;
  border-color: rgba(233, 93, 63, 0.35);
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 700px;
}

.section-heading p {
  margin-bottom: 0;
}

.filter-bar {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  outline: none;
}

.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: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(17, 17, 17, 0.08);
}

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

.project-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ecefea;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 360ms ease;
}

.project-card:hover .project-media img,
.project-media:focus-visible img {
  transform: scale(1.035);
}

.project-media:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: -3px;
}

.project-body {
  padding: 22px;
}

.project-meta {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: var(--radius);
  color: #ffffff;
}

.tag.growth {
  background: var(--teal);
}

.tag.hospitality {
  background: var(--gold);
  color: var(--ink);
}

.tag.healthcare {
  background: var(--blue);
}

.tag.orthopedic {
  background: var(--medical);
}

.tag.commerce {
  background: var(--green);
}

.tag.cafe {
  background: var(--coffee);
}

.tag.energy {
  background: var(--energy);
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--coral);
  outline: none;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.method-item {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.method-number {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--coral);
  font-weight: 900;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 44px;
  gap: 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
}

.contact-band h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.contact-band .eyebrow {
  color: #ffc04d;
}

.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero,
  .section-heading {
    grid-template-columns: 1fr;
  }

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

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

  h1 {
    max-width: 12ch;
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.1rem;
  }

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

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

  .method-item {
    min-height: 210px;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .nav {
    width: min(1160px, calc(100% - 28px));
    min-height: 66px;
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .nav-links {
    justify-content: flex-end;
    flex: 1;
    gap: 2px;
  }

  .nav-links a {
    padding: 6px 5px;
    font-size: 0.75rem;
  }

  .hero,
  .section,
  .contact-band,
  .site-footer {
    width: min(1160px, calc(100% - 28px));
  }

  .hero-copy {
    min-width: 0;
    max-width: 100%;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-lede {
    max-width: 32ch;
    font-size: 1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: 84px;
  }

  .hero-visual {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .project-body,
  .method-item {
    padding: 20px;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .contact-band {
    padding: 28px 22px;
  }
}

@media (max-width: 430px) {
  .nav-links a {
    padding: 6px 4px;
    font-size: 0.7rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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