/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333333;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* ===== Fixed Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  height: 70px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}

.site-header.scrolled .nav-name,
.site-header.scrolled .nav-left a,
.site-header.scrolled .nav-right a {
  color: #aaaaaa;
}

.site-header.scrolled .nav-icon svg {
  fill: #aaaaaa;
}

nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 40px;
  height: 100%;
}

/* Centred logo */
.nav-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #333333;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-left a,
.nav-right a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #999999;
  letter-spacing: 0;
  transition: color 0.2s;
}

.nav-left a:hover,
.nav-right a:hover { color: #C2A629; }

.nav-left a.active,
.nav-right a.active { color: #333333; font-weight: 700; }

.nav-icon svg {
  width: 16px;
  height: 16px;
  fill: #333333;
  display: block;
  transition: fill 0.2s;
}

.nav-icon a:hover svg { fill: #C2A629; }

/* ===== Hero / Masthead ===== */
main { padding-top: 70px; }

.masthead {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  height: calc(70vh - 70px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 90px 40px 40px;
  background: #ffffff;
}

.masthead-eyebrow {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #515151;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.masthead-title {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: clamp(32.6px, 4.11vw, 52.8px);
  font-weight: 400;
  line-height: 1.18;
  color: #333333;
  max-width: 800px;
  margin-bottom: 48px;
}

.masthead-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 56px;
}

.masthead-ctas a {
  color: #333333;
  border-bottom: 1px solid #333333;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.masthead-ctas a:hover { color: #C2A629; border-color: #C2A629; }

.masthead-ctas .cta-sep {
  color: #cccccc;
  font-size: 14px;
  font-weight: 300;
  border: none;
}

.masthead-chevron {
  display: flex;
  justify-content: center;
  animation: bounce 2s infinite;
  font-size: 0;
}

.masthead-chevron::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid #C2A629;
  border-bottom: 2px solid #C2A629;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ===== Project Grid ===== */
.project-covers-wrapper {
  position: relative;
  z-index: 2;
  background: #ffffff;
  margin-top: calc(70vh - 70px);
  padding-top: 70px;
}

.project-covers {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.project-cover {
  width: calc(100% / 3);
  display: block;
  position: relative;
  overflow: hidden;
}

/* Fixed aspect ratio per card */
.project-cover-image-wrap {
  position: relative;
  padding-top: 75%; /* 4:3 ratio */
  overflow: hidden;
  background: #e0e0e0;
}

.project-cover-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-cover:hover .project-cover-image-wrap img {
  transform: scale(1.05);
}

/* Hover overlay */
.project-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(194, 166, 41, 0);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 32px;
  transition: background 0.35s ease;
}

.project-cover:hover .project-cover-overlay {
  background: rgba(194, 166, 41, 0.82);
}

.project-cover-overlay-text {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.project-cover:hover .project-cover-overlay-text {
  opacity: 1;
  transform: translateY(0);
}

.overlay-client {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 12px;
}

.overlay-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.overlay-summary {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.1;
}

/* Placeholder when no image */
.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  color: #aaa;
  font-size: 0.8rem;
}

/* ===== Project Page ===== */
.project-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 40px 0;
  text-align: center;
}

.back-link {
  display: block;
  text-align: left;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  color: #999999;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-link:hover { color: #C2A629; }

.project-header h1 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  color: #333333;
  margin-bottom: 20px;
}

.project-header .project-intro {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: #515151;
  line-height: 1.4;
  margin-bottom: 16px;
}

.project-header .project-meta {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #999999;
  margin-bottom: 0;
}

.project-hero-image {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 40px;
}

.project-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 40px 80px;
}

/* In a Nutshell — centred, no image */
.project-section-nutshell {
  text-align: center;
  max-width: 100%;
  margin: 0 0 72px;
}

.project-section-nutshell h2 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: #C2A629;
  margin-bottom: 20px;
}

.project-section-nutshell p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 25px;
  font-weight: 300;
  color: #333333;
  line-height: 1.26;
  margin-bottom: 14px;
}

.project-section-nutshell strong { font-weight: 700; }

/* Challenge / Approach / Impact — 2-col with image */
.project-section-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 80px;
}

/* text left (image-right): flush left, gap on right toward image */
.project-section-image.image-right .project-section-text {
  padding: 0 48px 0 0;
}

/* text right (image-left): gap on left away from image, flush right */
.project-section-image.image-left .project-section-text {
  padding: 0 0 0 48px;
}

.project-section-image .project-section-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.project-section-image h2 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  color: #C2A629;
  margin-bottom: 20px;
}

.project-section-image p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 25px;
  font-weight: 300;
  color: #333333;
  line-height: 1.26;
  margin-bottom: 14px;
}

.project-section-image strong { font-weight: 700; }

/* Content links — grey with gold hover */
.project-section-image a,
.project-section-nutshell a {
  color: #999999;
  text-decoration: underline;
  transition: color 0.2s;
}

.project-section-image a:hover,
.project-section-nutshell a:hover {
  color: #C2A629;
}

/* Small text (~prefix) — same size as bullets */
.project-section-image .small-text,
.project-section-nutshell .small-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #333333;
  line-height: 1.44;
  margin-bottom: 8px;
}

.project-section-image .small-text strong,
.project-section-nutshell .small-text strong {
  font-weight: 700;
}

/* Arrow bullet list (> prefix) */
.project-section-image ul,
.project-section-nutshell ul {
  margin: 12px 0 16px;
  padding-left: 0;
  list-style: none;
}

.project-section-image ul li,
.project-section-nutshell ul li {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #333333;
  line-height: 1.44;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.project-section-image ul li::before,
.project-section-nutshell ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: #333333;
  font-size: 14px;
}

/* ===== About Page ===== */
.about-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 40px 100px;
}

.about-intro {
  max-width: 680px;
  margin: 0 auto 40px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #333333;
  text-align: center;
}

.about-intro strong {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
}

.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 80px;
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.about-block.reverse .about-block-image { order: 2; }
.about-block.reverse .about-block-text  { order: 1; }

.about-block-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #f0f0f0;
}

.about-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.about-block-text {
  padding: 0 48px;
}

@media (max-width: 768px) {
  .about-block-text {
    padding: 32px 24px;
  }
}

.about-block-text h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 30px;
  color: #333333;
  margin-bottom: 16px;
}

.about-block-text p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #515151;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid #eeeeee;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.footer-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  color: #999999;
  transition: color 0.2s;
}

.footer-links a:hover { color: #C2A629; }

.footer-links .nav-icon svg { fill: #999999; width: 16px; height: 16px; }
.footer-links .nav-icon a:hover svg { fill: #C2A629; }

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #aaaaaa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  transition: background 0.2s;
  z-index: 50;
}

.back-to-top:hover { background: #C2A629; }

/* ===== Hamburger / Mobile menu ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333333;
  transition: background 0.2s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0; right: 0;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 24px 24px 28px;
  z-index: 99;
}

.mobile-menu.open { display: block; }

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.mobile-menu-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #999999;
  transition: color 0.2s;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active { color: #333333; }

.mobile-menu-links a.active { font-weight: 700; }

.mobile-menu-icons {
  display: flex;
  gap: 20px;
}

.mobile-menu-icons svg {
  width: 16px;
  height: 16px;
  fill: #999999;
  display: block;
  transition: fill 0.2s;
}

.mobile-menu-icons a:hover svg { fill: #C2A629; }

/* ===== Footer copyright ===== */
.footer-copyright {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  color: #999999;
}

/* ===== Responsive ===== */
@media (max-width: 932px) {
  .project-cover { width: 50%; }
  .project-covers { max-width: 100%; }
  .masthead-title { font-size: 42.8px; }
}

@media (max-width: 768px) {
  .about-block { grid-template-columns: 1fr; }
  .about-block.reverse .about-block-image,
  .about-block.reverse .about-block-text { order: unset; }
}

@media (max-width: 600px) {
  nav { padding: 0 24px; }
  .nav-name { font-size: 22px; }
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .masthead { padding: 40px 24px; min-height: auto; padding-top: 60px; }
  .masthead-title { font-size: 32.6px; }
  .masthead-eyebrow { font-size: 15px; }
  .masthead-ctas { flex-direction: column; gap: 12px; }
  .masthead-ctas .cta-sep { display: none; }
  .project-cover { width: 100%; }

  /* Persistent full overlay on mobile */
  .project-cover-overlay {
    inset: auto 0 0 0;
    background: rgba(0, 0, 0, 0.55);
    padding: 24px;
    justify-content: center;
  }
  .project-cover-overlay-text {
    opacity: 1;
    transform: none;
  }
  .overlay-title { font-size: 20px; }
  .overlay-summary { font-size: 16px; }
  .project-header, .project-content, .project-hero-image {
    padding-left: 24px; padding-right: 24px;
  }
  .about-section { padding-left: 24px; padding-right: 24px; }
  .project-section-image { grid-template-columns: 1fr; }
  .project-section-image .project-section-text,
  .project-section-image.image-right .project-section-text,
  .project-section-image.image-left .project-section-text { padding: 24px 0 0 0; }
  .project-section-image.image-left .project-section-img { order: 1; }
  .project-section-image { margin-bottom: 40px; }
  footer { padding: 24px; flex-wrap: wrap; }
}
