:root {
  color-scheme: light;
  --blue: #4090d7;
  --ink: #181818;
  --muted: #454545;
  --rule: #d3d3d3;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; text-underline-offset: .25em; overflow-wrap: anywhere; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: .25rem; }
.wrap { width: min(94%, 82rem); margin-inline: auto; }
.masthead { min-height: 6.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--rule); }
.logo { display: block; width: 10rem; height: auto; }
.masthead p { font-size: .88rem; font-weight: 700; text-transform: uppercase; text-align: right; }

.hero { display: grid; grid-template-columns: .87fr 1.13fr; min-height: 31rem; padding-block: .8rem; }
.hero-copy { align-self: center; padding: 2.6rem 1.5rem 2.6rem 0; }
h1 { font-size: clamp(2.65rem, 5.4vw, 5rem); line-height: 1.03; letter-spacing: -.055em; font-weight: 800; max-width: 13ch; }
.hero-copy p { margin-top: 1.65rem; padding-top: 1.35rem; max-width: 28ch; font-size: clamp(1.1rem, 2vw, 1.5rem); position: relative; }
.hero-copy p::before { content: ""; position: absolute; top: 0; left: 0; height: .3rem; width: 4rem; background: var(--blue); }
.hero-media { min-width: 0; width: 100%; position: relative; display: block; }
.hero-media img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 60% 50%; }

.services { padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--rule); }
h2 { font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 780; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.3rem; gap: 1.8rem; }
.service-grid article + article { border-inline-start: 1px solid #bbb; padding-inline-start: 1.8rem; }
h3 { font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.15; margin-bottom: .65rem; letter-spacing: -.045em; }
.service-grid p { color: var(--muted); max-width: 37ch; }
.portfolio { padding-block: clamp(2.5rem, 5vw, 4.5rem); background: #f1f1f3; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.2rem; }
.project-grid img { width: 100%; height: auto; display: block; aspect-ratio: 720 / 484; object-fit: cover; }
figcaption { padding-top: .65rem; font-size: 1.1rem; font-weight: 700; letter-spacing: -.025em; }
.portfolio-note { margin-top: 1.6rem; max-width: 79ch; color: var(--muted); }

.contact { background: var(--ink); color: #fff; padding-block: 2.8rem; }
.contact h2 { border-bottom: .18rem solid var(--blue); padding-bottom: .8rem; }
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; padding-top: 1.4rem; align-items: start; }
.contact-grid > div + div { border-inline-start: 1px solid #aaa; padding-inline-start: 2rem; }
.contact-email { min-width: 0; font-size: clamp(1.15rem, 2.4vw, 2.1rem); font-weight: 700; letter-spacing: -.035em; }
address { font-style: normal; }
.social { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .6rem; }
.site-reference { font-size: .875rem; margin-top: 2rem; color: #dedede; }

@media (max-width: 680px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { min-height: 4.8rem; gap: .8rem; }
  .logo { width: 7rem; }
  .masthead p { font-size: .7rem; max-width: 22ch; }
  .hero, .service-grid, .project-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 1.8rem 0 2rem; }
  h1 { max-width: 15ch; font-size: clamp(2.65rem, 10.8vw, 4rem); }
  .hero-media { min-height: 17rem; aspect-ratio: auto; }
  .service-grid { gap: 1.5rem; margin-top: 1.6rem; }
  .service-grid article + article { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
  .service-grid p { max-width: none; }
  .project-grid { gap: 1.8rem; margin-top: 1.6rem; }
  .contact-grid { gap: 1.5rem; }
  .contact-grid > div + div { border-inline-start: 0; padding-inline-start: 0; }
}
