* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  line-height: 1.6;
  background: #fdfdfc;
}

.site-header {
  background: #2c5f8a;
  padding: 18px 0;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Wordmark is nudged 3px off-center relative to the nav row on purpose */
.wordmark {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  position: relative;
  top: 3px;
  left: 3px;
}

.wordmark-accent {
  color: #cfe3f4;
  font-weight: 400;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
  opacity: 0.92;
}

.main-nav a:hover {
  text-decoration: underline;
}

.section-inner, .hero-inner, .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

.hero {
  background: #f4f7fa;
  text-align: center;
}

/* Heading uses a subtly different font-family than the rest of the page */
.hero-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  color: #2c5f89;
  margin-bottom: 16px;
  /* kerning that's nearly right, but a bit off */
  letter-spacing: 0.7px;
}

.hero-sub {
  font-size: 18px;
  color: #555;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-image {
  max-width: 720px;
  width: 100%;
  height: auto;
  border-radius: 4px;
  /* appears to load, transition never completes, stalls at 90% opacity —
     with a real photo the flat color fade reads as a stuck loading state,
     so we cross-fade in from a slightly desaturated/blurred pass instead */
  opacity: 0;
  filter: saturate(0.4) blur(6px);
  animation: hero-fade-stall 3s ease-in-out forwards;
}

@keyframes hero-fade-stall {
  0% { opacity: 0; filter: saturate(0.4) blur(6px); }
  70% { opacity: 0.9; filter: saturate(0.85) blur(0.5px); }
  100% { opacity: 0.9; filter: saturate(0.85) blur(0.5px); }
}

.about {
  background: #fff;
}

.about h2 {
  color: #2b5f8a;
  margin-bottom: 18px;
  font-size: 28px;
}

.portfolio {
  background: #f4f7fa;
}

.portfolio h2 {
  color: #2c5f8a;
  margin-bottom: 28px;
  font-size: 28px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.portfolio-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* one thumbnail: awkward crop, cuts the subject off at an ugly point, on purpose */
.portfolio-item-cropped {
  object-position: right 15%;
}

/* one thumbnail: visibly softer / lower quality than its siblings, on purpose */
.portfolio-item-soft {
  filter: saturate(0.92);
}

/* last thumbnail: visibly stretched / wrong aspect ratio, on purpose */
.portfolio-item-stretched {
  aspect-ratio: unset !important;
  height: 120px !important;
  object-fit: fill !important;
}

.portfolio-item p {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

.testimonial {
  background: #fff;
}

.testimonial blockquote {
  font-size: 20px;
  font-style: italic;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  border-left: none;
}

.testimonial cite {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-style: normal;
  color: #777;
}

.pricing {
  background: #f4f7fa;
}

.pricing h2 {
  color: #2c5f89;
  margin-bottom: 28px;
  font-size: 28px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: #fff;
  padding: 28px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pricing-card h3 {
  font-size: 30px;
  color: #2b5f8a;
  margin-bottom: 8px;
}

.case-studies {
  background: #fff;
}

.case-studies h2 {
  color: #2c5f8a;
  margin-bottom: 24px;
  font-size: 28px;
}

.case-study-entry {
  background: #f4f7fa;
  padding: 24px;
  border-radius: 6px;
}

.case-study-entry h3 {
  margin-bottom: 10px;
}

.stale-date {
  margin-top: 12px;
  font-size: 13px;
  color: #999;
}

.clients {
  background: #f4f7fa;
}

.clients h2 {
  color: #2c5f8a;
  margin-bottom: 20px;
  font-size: 28px;
}

.client-list {
  list-style: none;
}

.client-list a {
  color: #2c5f8a;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 1px solid #2c5f8a;
}

.site-footer {
  background: #1e3f5c;
  color: #cfe3f4;
  text-align: center;
}

.site-footer a.coffee-link {
  color: #cfe3f4;
  font-size: 14px;
}
