:root {
  color-scheme: light;
  --paper: #f3f2ed;
  --white: #fbfbf7;
  --ink: #222723;
  --muted: #4f594f;
  --line: #cbcfc3;
  --accent: #f0dc54;
  --gutter: clamp(16px, 4.2vw, 64px);
  font: 100%/1.5 Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
html { scroll-padding-top: 18px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #1d5c91; outline-offset: 4px; }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1330px); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 16px; background: var(--accent); z-index: 2; padding: 8px 12px; }
.skip:focus { top: 8px; }

.mast-inner { min-height: 89px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { padding-block: 8px; }
.brand img { object-fit: contain; }
.mast nav { display: flex; align-items: center; gap: clamp(16px, 3.25vw, 46px); }
.mast nav a, .header-phone { text-decoration: none; font-weight: 700; }
.mast nav a { display: block; padding-block: 10px; }
.mast nav a:hover, .header-phone:hover { text-decoration: underline; }

.hero { display: grid; grid-template-columns: 1.04fr 1fr; grid-template-rows: minmax(530px, auto); background: var(--ink); color: var(--white); }
.hero-copy { padding: clamp(30px, 4.8vw, 78px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-label { color: #d9ded2; font-size: clamp(.94rem, 1.3vw, 1.15rem); }
h1 { font-size: clamp(2.75rem, 4.6vw, 4.75rem); line-height: .99; letter-spacing: -.066em; margin-top: 25px; }
.hero-lead { max-width: 35ch; color: #e2e5da; font-size: clamp(1rem, 1.55vw, 1.25rem); margin-top: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 10px 22px; font-weight: 700; text-decoration: none; }
.button-yellow { background: var(--accent); color: var(--ink); margin-top: 34px; }
.button-yellow:hover { background: #fbeb83; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 88% center; min-height: 0; }

.section { padding-block: clamp(54px, 7.2vw, 104px); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 18px 40px; margin-bottom: clamp(28px, 4vw, 50px); }
h2 { font-size: clamp(2.3rem, 5vw, 4.5rem); letter-spacing: -.065em; line-height: 1.02; }
.section-heading p, .contact p { max-width: 40ch; font-size: clamp(1rem, 1.5vw, 1.24rem); }
.section-heading p { color: var(--muted); }
.services { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.services article { border-bottom: 1px solid var(--line); padding: 25px 26px 30px 0; }
.services article:nth-child(odd) { border-right: 1px solid var(--line); }
.services article:nth-child(even) { padding-inline: clamp(20px, 3.1vw, 44px) 0; }
.services h3 { font-size: clamp(1.24rem, 2.2vw, 1.8rem); letter-spacing: -.035em; line-height: 1.15; }
.services p { color: var(--muted); margin-top: 12px; max-width: 50ch; }

.portfolio { background: #e5e7df; }
.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 24px); }
.project { background: var(--white); min-width: 0; }
.project img { width: 100%; height: auto; aspect-ratio: 4 / 4.1; object-fit: cover; object-position: center 52%; background: var(--line); }
.project-copy { padding: 20px clamp(14px, 1.65vw, 24px) 25px; }
.project h3 { font-size: clamp(1.17rem, 1.75vw, 1.53rem); line-height: 1.13; letter-spacing: -.035em; }
.client { color: var(--muted); font-size: .9rem; }
.project .client { margin-top: 10px; }
.project p:last-child { margin-top: 15px; }
.more-projects { margin-top: 20px; }
.more-projects summary { cursor: pointer; font-weight: 700; width: fit-content; padding: 11px 15px; border: 1px solid #818b7a; }
.more-projects summary:hover { background: var(--white); }
.more-projects[open] .projects { margin-top: 20px; }
.rail { display: grid; grid-template-columns: 1.08fr 1fr; background: var(--ink); color: var(--white); margin-top: clamp(35px, 5vw, 72px); }
.rail-copy { padding: clamp(22px, 3.6vw, 52px); }
.rail h3 { font-size: clamp(1.65rem, 3.4vw, 3.25rem); line-height: 1.04; letter-spacing: -.05em; margin-top: 10px; }
.rail .client { color: #e2e6d9; }
.rail dt { font-weight: 700; margin-top: 22px; }
.rail dd { color: #e2e6d9; margin-top: 6px; }
.rail img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 72% center; }
.presentation { display: inline-block; margin-top: 22px; font-weight: 700; padding-block: 8px; }
.presentation span { display: inline-block; margin-inline-start: 8px; font-size: .9rem; font-weight: 400; color: var(--muted); }

.contact { background: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 28px 50px; align-items: start; }
.contact h2 { text-wrap: wrap; }
.contact p { margin-top: 17px; }
.contact address { font-style: normal; }
.contact address a { display: table; font-size: clamp(1.45rem, 2.9vw, 2.6rem); letter-spacing: -.035em; font-weight: 700; }
.contact address a:hover { text-decoration-thickness: 3px; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px 36px; padding-block: 26px; }
.footer-inner a { flex-shrink: 0; }
.reg { color: var(--muted); margin-top: 5px; font-size: .875rem; }
.reg span { display: inline-block; margin-inline-start: 8px; }

@media (max-width: 900px) {
  .hero { grid-template-rows: minmax(430px, auto); }
  .hero-copy { padding-inline: 25px; }
  h1 { font-size: clamp(2.3rem, 5.35vw, 3.5rem); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project img { aspect-ratio: 5 / 4; }
}
@media (max-width: 630px) {
  .mast-inner { min-height: 74px; gap: 10px; }
  .brand img { width: 60px; height: auto; }
  .mast nav { gap: clamp(12px, 4vw, 24px); font-size: .92rem; }
  .header-phone { display: none; }
  .hero, .section-heading, .services, .rail, .contact-grid { grid-template-columns: 1fr; }
  .hero { grid-template-rows: auto auto; }
  .hero-copy { padding: 33px 21px 31px; }
  h1 { font-size: clamp(2.35rem, 10vw, 4rem); margin-top: 17px; }
  .hero-lead { margin-top: 17px; }
  .button-yellow { margin-top: 22px; }
  .hero-photo { aspect-ratio: 1.75; height: auto; object-position: right center; }
  .services article:nth-child(n) { border-right: 0; padding: 19px 0 21px; }
  .services p { margin-top: 8px; }
  .project-copy { padding: 13px 11px 17px; }
  .project p:last-child { font-size: .94rem; margin-top: 10px; }
  .rail img { aspect-ratio: 1.9; height: auto; }
  .footer-inner { flex-direction: column; }
  .reg span { margin-inline: 0 7px; }
}
@media (max-width: 350px) {
  .projects { grid-template-columns: 1fr; }
}
