:root {
  --ink: #101820;
  --ink-soft: #35424b;
  --paper: #f3f1eb;
  --paper-deep: #e4e5df;
  --white: #fbfaf6;
  --line: rgba(16, 24, 32, 0.2);
  --orange: #cb5f28;
  --orange-dark: #a9471b;
  --shell: min(1180px, calc(100% - 48px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 241, 235, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--ink);
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  display: grid;
  line-height: 1.1;
}

.brand-name strong {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.brand-name span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.primary-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--orange-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 104px;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), rgba(16, 24, 32, 0.08) 50%, transparent calc(50% + 1px)),
    var(--paper);
}

.hero::before {
  position: absolute;
  top: 0;
  right: max(24px, calc((100vw - 1180px) / 2));
  width: 11px;
  height: 100%;
  background: var(--orange);
  content: "";
}

.hero-grid {
  display: block;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange-dark);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.3rem, 7.2vw, 6.8rem);
  font-weight: 800;
  line-height: 0.93;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

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

.button-primary {
  background: var(--orange);
  color: var(--white);
}

.button-primary:hover {
  background: var(--orange-dark);
}

.button-quiet {
  border-color: var(--line);
}

.button-quiet:hover {
  border-color: var(--ink);
  background: var(--white);
}

.button-dark {
  margin-top: 10px;
  background: var(--ink);
  color: var(--white);
}

.button-dark:hover {
  background: var(--orange-dark);
}

.hero-record {
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  background: rgba(251, 250, 246, 0.52);
}

.company-record-section {
  padding: 0 0 112px;
  background: var(--paper);
}

.company-record-section .hero-record {
  max-width: 760px;
  margin: 0 auto;
}

.record-topline,
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.record-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.record-rule {
  height: 1px;
  margin: 20px 0 6px;
  background: var(--line);
}

.record-list {
  margin: 0;
}

.record-list > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.record-list dt {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.record-list dd {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-gridline {
  position: absolute;
  right: 0;
  bottom: 26px;
  left: 0;
  height: 1px;
  background: var(--line);
}

.section {
  padding: 112px 0;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 54px;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  font-weight: 800;
  line-height: 0.98;
}

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

.capability {
  min-height: 236px;
  padding: 24px 26px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.capability p {
  max-width: 31ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.5;
}

.projects {
  background: var(--paper-deep);
}

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

.project-card {
  display: flex;
  min-height: 278px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 26px 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.project-card-with-image {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  min-height: 360px;
  padding: 0;
  overflow: hidden;
}

.project-card-image {
  display: block;
  min-height: 100%;
  background: var(--paper-deep);
}

.project-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

.project-card-content {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background: var(--white);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card h3 {
  max-width: 18ch;
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  line-height: 1.02;
}

.project-card-body p {
  max-width: 53ch;
  margin: 0 0 23px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.project-card-body strong {
  color: inherit;
  font-weight: 800;
}

.text-link {
  color: var(--orange-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.project-card-source {
  align-self: flex-start;
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.project-card-source:hover {
  text-decoration: underline;
}

.text-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.contact {
  padding: 86px 0;
  background: var(--orange);
  color: var(--white);
}

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

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 9%;
  align-items: end;
}

.contact h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

.contact-details {
  padding-top: 14px;
  border-top: 1px solid rgba(16, 24, 32, 0.36);
}

.contact-phone {
  display: inline-block;
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.contact-phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-phone-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.contact-phone-icon:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}

.contact-phone-icon svg {
  width: 20px;
  height: 20px;
}

.contact-details p {
  margin-bottom: 0;
  color: rgba(16, 24, 32, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

.site-footer {
  background: var(--ink);
  color: #c7cdd0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 30px;
}

.footer-inner p {
  max-width: 54ch;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 36px, 720px);
  }

  .hero {
    padding: 72px 0 88px;
    background: var(--paper);
  }

  .hero::before {
    right: 0;
    width: 8px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-record {
    max-width: 540px;
    margin-top: 0;
  }

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

  .project-card-with-image {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 18px 0 20px;
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }

  .primary-nav a {
    font-size: 0.82rem;
  }

  .hero {
    padding: 58px 0 72px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

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

  .button {
    width: 100%;
  }

  .section {
    padding: 78px 0;
  }

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

  .project-card-with-image {
    grid-column: auto;
    display: block;
    min-height: 0;
  }

  .project-card-image {
    min-height: 0;
  }

  .project-card-image img {
    height: auto;
    min-height: 0;
    aspect-ratio: 1.35;
  }

  .project-card-content {
    min-height: 320px;
  }

  .capability {
    min-height: auto;
  }

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

  .contact {
    padding: 70px 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
