:root {
  --paper: #ECE9E2;
  --ink: #191714;
  --muted: #7A7566;
  --line: #D9D4C8;
  --signal: #3D5AFE;
  --max: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

ul { list-style: none; margin: 0; padding: 0; }

p { margin: 0; }

/* Header */

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

.mark {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Shared section rhythm */

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.hero {
  border-top: none;
  padding-top: 48px;
  padding-bottom: 88px;
  max-width: var(--max);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--ink);
}

.hero-role {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: 24px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 17px;
}

.cta {
  display: inline-block;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.cta:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.section-heading {
  font-size: 26px;
  margin-bottom: 48px;
}

/* Client logo strip */

.clients {
  padding: 40px 0 56px;
}

.clients-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.client-logos li {
  display: flex;
  align-items: center;
}

.client-logos img {
  height: 24px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.client-logos img:hover {
  opacity: 0.85;
}

@media (max-width: 720px) {
  .client-logos {
    gap: 28px;
  }
  .client-logos img {
    height: 20px;
  }
}

/* Work */

.case-study {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 28px;
  margin-bottom: 64px;
}

.case-study:last-of-type {
  margin-bottom: 40px;
}

.case-number {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  padding-top: 4px;
}

.case-visual {
  grid-column: 2;
  aspect-ratio: 16 / 9;
  background: #DEDAD0;
  border: 1px solid var(--line);
  overflow: hidden;
}

.case-visual-inner {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      #DEDAD0,
      #DEDAD0 22px,
      #D3CEC2 22px,
      #D3CEC2 24px
    );
}

.case-visual-inner.alt {
  background:
    repeating-linear-gradient(
      45deg,
      #DEDAD0,
      #DEDAD0 22px,
      #D3CEC2 22px,
      #D3CEC2 24px
    );
}

.case-content {
  grid-column: 2;
  margin-top: 24px;
  max-width: 56ch;
}

.case-content h3 {
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.case-content p {
  color: var(--muted);
  font-size: 15px;
}

.case-tags {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.case-tags li::before {
  content: "";
}

.case-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.case-link:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.view-all {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.view-all:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* About */

.about {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
}

.about-portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #DEDAD0;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--muted);
}

.about-copy p {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 18px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Services */

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-list li {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.service-list h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.service-list p {
  color: var(--muted);
  font-size: 14px;
}

/* Contact */

.contact {
  padding-bottom: 96px;
}

.contact-line {
  color: var(--muted);
  margin-top: 12px;
}

.contact-email {
  display: inline-block;
  margin-top: 24px;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-email:hover {
  color: var(--signal);
  border-color: var(--signal);
}

/* Footer */

.site-footer {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  transition: color 0.15s ease;
}

.social-links a:hover {
  color: var(--ink);
}

/* Responsive */

@media (max-width: 720px) {
  .site-header {
    padding: 20px 20px;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
  }

  main {
    padding: 0 20px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .hero::before {
    left: -20px;
  }

  section {
    padding: 56px 0;
  }

  .case-study {
    grid-template-columns: 1fr;
  }

  .case-number,
  .case-visual,
  .case-content {
    grid-column: 1;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    width: 96px;
    height: 96px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
