:root {
  --ink: #41423D;
  --paper: #f5f3ef;
  --surface: #e9e4df;
  --line: #d2ccc3;
  --grey: #98988b;
  --muted: #818176;
  --hover: #942304;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 48px, 900px);
  margin-left: 3vw;
}

header {
  padding: clamp(48px, 5vw, 62px) 0;
  /* padding: clamp(36px, 6vw, 72px) 0 36px; */
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.98;

  font-family: var(--serif);
  margin: 0;
  /* font-size: clamp(2.2rem, 5vw, 3.4rem); */
  line-height: 0.98;
  font-weight: 400;
}

h3 {
  /* font-family: var(--serif); */
  font-weight: 400;
}


.role {
  margin: 22px 0 30px;
  color: var(--muted);
  max-width: 82ch;
  display: none;
   /* font-size: clamp(1rem, 2vw, 1.1rem); */
}
.name{
  margin: clamp(8px, 1.5vw, 14px) 0 clamp(48px, 8vw, 96px);
  padding-bottom: 10px;
  color: var(--grey);
  letter-spacing: 0.005em;
  font-weight: 300;
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  /* border-bottom: 1px solid var(--line); */
}

.name span {
  padding-inline: 0.25em;
  /* color: var(--hover); */
}

.role span {
  padding-inline: 0.25em;
  /* color: var(--hover); */
}

.specialisms {
  max-width: 82ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  /* font-weight: 600; */
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.separator {
  display: inline-block;
  margin-inline: clamp(0.25em, .5vw, 0.45em);
}

.specialisms .separator::after {
  color: var(--accent);
  content: "·";
}

.links {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.links a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

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

section {
  padding: 62px 0;
}

section p:last-child{
  margin-bottom: 0;
}

.about {
  background: var(--surface);
}

.intro {
  max-width: 82ch;
}


.section-heading {
  margin-bottom: 38px;
}

h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading p {
  margin: 18px 0 0;
  max-width: 82ch;
  color: var(--muted);
  font-size: 15px;
}

.projects-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.projects-list li:first-child .project-card{
  border-top: 1px solid var(--line);
}

.project-card {
  padding-block: clamp(28px, 4vw, 38px) ;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.project-card__header{
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin: 0 0 10px 0;
}

.project-card__link {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: nowrap;
  position: absolute;
  opacity: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.project-card:has(.project-card__link)::after {
  content: '';
  position: absolute;
  top: 45px;
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid var(--muted);
  border-right: 1.5px solid var(--muted);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.project-card:has(.project-card__link)::before {
  content: '';
  position: absolute;
  top: 45px;
  right: 5px;
  width: 17px;
  border-top: 1.5px solid var(--muted);
  opacity: 0;
  transform: rotate(-45deg) translate(-3px, 3px);
  transform-origin: right center;
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.project-card:has(.project-card__link):hover::after,
.project-card:has(.project-card__link):focus-within::after {
  opacity: 1;
  transform: translate(0, 0);
}

.project-card:has(.project-card__link):hover::before,
.project-card:has(.project-card__link):focus-within::before {
  opacity: 1;
}

.project-card__title {
  font-size: 20px;
  margin: 0 0 3px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.project-card__details {
  margin-bottom: 6px;
  display: block;
  color: var(--muted);
}

.project-card__content {
  min-width: 0;
}

.project-card__description {
  max-width: 72ch;
  margin: 0 0 15px;
  color: #4f504a;
  font-size: 15px;
}

.project-card__tech,
.project-card__agency {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.project-card__agency {
  margin-top: 10px;
}

.project-card__agency::before{
  content: 'Agency:';
  display: inline-block;
  margin-right: .5em;
  color: var(--muted);
  opacity: .65;
}

.projects-list > li:last-child .project-card {
  border-bottom: 0;
}

footer {
  padding: 48px 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.means {
  font-family: var(--serif);
  font-size: 16px;
}

.copy {
  font-size: 12px;
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 40px, 900px);
  }

  section {
    padding: 48px 0 64px;
  }

  .project-card, 
  .project-card__header{
    display: block;
  }

  .project-card__link {
    justify-self: start;
  } 

  .project-card:has(.project-card__link)::after,
  .project-card:has(.project-card__link)::after {
    opacity: 1;
    transform: translate(0, 0);
  }

  .project-card:has(.project-card__link)::before,
  .project-card:has(.project-card__link)::before {
    opacity: 1;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
