:root {
  --ink: #172427;
  --muted: #526164;
  --paper: #ffffff;
  --mist: #eef7f7;
  --blue: #1b78a6;
  --blue-deep: #12587a;
  --coral: #ffad86;
  --line: #cad8d9;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand em { color: var(--blue); font-family: Georgia, serif; font-weight: 400; }

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: italic 1rem Georgia, serif;
}

nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; font-size: .95rem; font-weight: 650; }
nav a:hover, nav a:focus-visible { color: var(--blue); }

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
}

nav .nav-cta:hover, nav .nav-cta:focus-visible { background: var(--blue-deep); color: white; }

.hero {
  width: min(calc(100% - 40px), var(--max));
  margin: 46px auto 110px;
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-deep);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.06; letter-spacing: -.045em; }

h1 {
  margin-bottom: 26px;
  font: 500 clamp(3.3rem, 7vw, 6.7rem)/.93 Georgia, "Times New Roman", serif;
}

h1 span { color: var(--blue); font-style: italic; }

.intro { max-width: 610px; margin: 0; color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.22rem); }

.hero-actions { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary { background: var(--blue); color: white; }
.button-primary:hover, .button-primary:focus-visible { background: var(--blue-deep); }
.text-link { font-weight: 750; text-underline-offset: 5px; }

.hero-gallery {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: 1fr .72fr;
  gap: 14px;
  transform: rotate(1deg);
}

.photo-slot {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 18px;
  color: var(--ink);
  background: var(--mist);
  background-image: linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,0));
}

.photo-slot::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(23, 36, 39, .32);
}

.photo-slot span, .photo-slot p { position: relative; z-index: 1; margin: 0; }
.photo-slot span { font: italic 1.35rem Georgia, serif; }
.photo-slot p { font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.photo-slot.has-photo { padding: 0; background: var(--mist); }
.photo-slot.has-photo::before { display: none; }
.photo-slot.has-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.photo-tall { grid-row: 1 / 3; background-color: #dceff4; }
.photo-small { background-color: var(--coral); }
.photo-wide { background-color: #fde5da; }
.photo-small img { object-position: 62% 57%; }
.photo-wide img { object-position: 50% 57%; }

.approach {
  background: var(--ink);
  color: white;
  padding: 86px max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: .33fr 1fr;
  gap: 50px;
}

.approach-kicker { margin: 8px 0 0; color: var(--coral); font-weight: 800; }
.approach-statement { max-width: 900px; margin: 0; font: 400 clamp(2rem, 4.2vw, 4rem)/1.1 Georgia, serif; letter-spacing: -.03em; }
.approach-statement em { color: var(--coral); }

.services, .portfolio {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading { max-width: 670px; margin-bottom: 55px; }
h2 { margin-bottom: 18px; font: 500 clamp(2.5rem, 5vw, 4.8rem)/1 Georgia, serif; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }

.service-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.service-card { padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); background: white; }
.service-featured { background: var(--mist); border-color: transparent; }
.service-number { color: var(--blue); font: italic 1.35rem Georgia, serif; }
.service-card h3 { max-width: 500px; font: 500 clamp(1.8rem, 3vw, 2.7rem)/1.1 Georgia, serif; }
.service-card > p:not(.service-number) { color: var(--muted); }
.service-card ul { margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.service-card li { padding: 6px 0 6px 24px; position: relative; }
.service-card li::before { content: "+"; position: absolute; left: 0; color: var(--blue); font-weight: 900; }

.portfolio { padding-top: 30px; }
.portfolio-heading { display: grid; grid-template-columns: 1fr; }
.portfolio-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 230px 290px; gap: 14px; }
.portfolio-one { grid-row: 1 / 3; background-color: #dceff4; }
.portfolio-two { background-color: #fde5da; }
.portfolio-three { background-color: var(--coral); }
.portfolio-grid-single { display: block; height: min(70vw, 680px); }
.portfolio-grid-single .portfolio-one { width: 100%; height: 100%; }
.portfolio-grid-single .portfolio-one img { object-position: 50% 53%; }

.contact {
  background: var(--blue);
  color: white;
  padding: 88px max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr .7fr;
  align-items: end;
  gap: 60px;
}

.contact .eyebrow { color: white; }
.contact h2 { margin-bottom: 0; }
.contact-copy { font-size: 1.12rem; }
.contact-copy p { margin-top: 0; }
.contact-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}
.contact-button:hover, .contact-button:focus-visible { background: white; }
.contact-button-secondary {
  background: transparent;
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.85);
}
.contact-button-secondary:hover, .contact-button-secondary:focus-visible { color: var(--ink); }
.contact-email {
  display: block;
  width: fit-content;
  margin-top: 16px;
  color: white;
  font-size: .95rem;
  text-underline-offset: 5px;
}

footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-brand { color: var(--ink); }

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

@media (max-width: 820px) {
  .site-header { min-height: 76px; }
  nav a:not(.nav-cta) { display: none; }
  .hero { margin-top: 32px; grid-template-columns: 1fr; }
  .hero-gallery { min-height: 470px; }
  .approach, .contact { grid-template-columns: 1fr; gap: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-rows: 210px 240px; }
  footer { padding: 30px 0; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header { width: min(calc(100% - 28px), var(--max)); }
  .brand > span:last-child { font-size: .9rem; }
  .brand-mark { width: 36px; height: 36px; }
  .nav-cta { padding: 8px 14px; }
  .hero, .services, .portfolio { width: min(calc(100% - 28px), var(--max)); }
  .hero { margin-bottom: 80px; }
  h1 { font-size: clamp(3.05rem, 17vw, 4.4rem); }
  .hero-gallery { min-height: 420px; grid-template-columns: 1fr 1fr; }
  .photo-slot { padding: 12px; }
  .photo-slot p { font-size: .64rem; }
  .approach { padding-top: 65px; padding-bottom: 65px; }
  .services, .portfolio { padding-top: 82px; padding-bottom: 82px; }
  .portfolio-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 230px); }
  .portfolio-one { grid-row: auto; }
  .portfolio-grid-single { display: block; height: 520px; }
  .contact { padding-top: 65px; padding-bottom: 65px; }
}

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